Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 386 387 388 389 390 ... 552
Name the source duplicate_remove.perl and open Terminal.app in the same directory, and write: perl duplicate_remove.perl <file-to-be-convertet>
0 1777 posted 17 years ago by gerhardsletten
0 3663 posted 17 years ago by traeregan
The canvas drawImage size default is 300 x 150, so it's using the CSS to resize the canvas. Example posted at http://pastebin.me/76aed7005b1b413ea3c479287f4dbd59
0 2383 posted 17 years ago by Motty
Get the ID of the root (oldest ancestor, parent without parents) page relative to the current page in a WordPress page template. Can be helpful for use with wp\_list\_pages() to create navigation markup.
1 2347 posted 17 years ago by cyberhobo
Select the first and last item in an unordered list. As an example, I add a CSS class to each. In WordPress, it's not so easy to get wp\_list\_pages() to generate these classes. jQuery provides an easy out for javascript-enabled clients.
0 2258 posted 17 years ago by cyberhobo
This line can be added to 'backend', 'frontend', 'listen' directives in the HAProxy config. It will redirect all requests for /books/mysql to /books.php?title=mysql
0 2721 posted 17 years ago by alexwilliams
Checks if value is an e-mail.
1 1720 posted 17 years ago by NyX
Outputs MySQL server stats : uptime, threads, questions, slow queries, opens, flush tables, open tables, queries per sec (avg).
2 1579 posted 17 years ago by NyX
Include this in any page you want to track for Google bot crawls. Adapt it to your needs (eg: MySQL log instead of e-mail announcement, etc).
9 3035 posted 17 years ago by NyX
There's no has\_children() function in WP 2.8.4, but get\_children() returns false if the post/page has no children, so it can serve the same purpose in a page template. Outside a page template you'd have to add a global declaration for the $post...
2 2212 posted 17 years ago by cyberhobo
How to fix MySQL Query Browser socket connection problem
0 1678 posted 17 years ago by armandoalves
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 1887 posted 17 years ago by rengber
inspired by boagworld.com
1 1739 posted 17 years ago by cfleschhut
Save/Load or.. Write/Read or.. Store/Retrieve Private Key/Public Key to/from disk/file :D
0 13068 posted 17 years ago by geekiuscaesar
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1 2265 posted 17 years ago by deepsoul
`\mathbf` does not put operators and greek characters in bold face. This macro does.
1 4095 posted 17 years ago by deepsoul
0 1956 posted 17 years ago by renatoelias
find great websites by scraping links from delicious.com
0 1747 posted 17 years ago by halotis
lookup the google page rank of a website from python. Uses the same interface that the Google Toolbar uses to get the value.
0 2313 posted 17 years ago by halotis
prints out the RSS reach, circulation, and hits for a feedburner feed.
0 1593 posted 17 years ago by halotis
A Functional quick sort (Java imperative version seems to be quicker).
0 2243 posted 17 years ago by narkisr
As with screen style sheets, you use the <link> element to define the print style sheet your Web page should use: <link> The only difference between this link element and the link to your screen style sheet is the attribute: media="print" Most...
0 1799 posted 17 years ago by thesmu
from activestate. not complete or tested but good ref
0 1633 posted 17 years ago by atr000
1 1534 posted 17 years ago by webstic
Encrypts traffic between host port 5900 and client port 5921 (view the forwarded traffic at `vnc://localhost:5921`).
0 1626 posted 17 years ago by iblis
1 ... 386 387 388 389 390 ... 552