Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 263 264 265 266 267 ... 554
allows for variable length arguments - something similar as python func(*args, **kw)
0 901 posted 14 years ago by silviud
0 886 posted 14 years ago by BeardyOne
Yes, my code sucks, but I hope it will be useful... :-)
1 931 posted 14 years ago by ksaver
How to use pygments in PyGTK textview
0 878 posted 14 years ago by vkolev
0 962 posted 14 years ago by vkolev
0 956 posted 14 years ago by apro2000
This function trims a string and removes empty entries in a comma delimited list, removes extra commas from the beginning and end and also remove extra space characters between words.
1 1414 posted 14 years ago by adrianparr
I needed to trim a simple numerical array that might have duplicate values into an array with no duplicates. I came up with this before finding array_unique(). D\'oh.
0 1130 posted 14 years ago by beneberle
0 697 posted 14 years ago by yoyoparis
This PHP code snippet searches a value in an array. Depending on use, one or all matching values and their belonged keys are removed.
3 1065 posted 14 years ago by DADU
0 766 posted 14 years ago by rkumar
have it as bookmark - clicking on it will validate the current page
1 753 posted 14 years ago by silviud
Set a cookie that expires at midnight.
1 2693 posted 14 years ago by jonkemp
0 849 posted 14 years ago by oznek
The cookie expires the number of days from the time it is set.
0 877 posted 14 years ago by jonkemp
0 916 posted 14 years ago by jonkemp
Thankfully, Sjoerd Visscher mentioned an interesting technique that could be used to force IE to use the specified CSS styling. Specifically, once you create a new DOM element (of the same name as the one in the document) all styling is applied. [.....
0 1080 posted 14 years ago by stephcode
0 1000 posted 14 years ago by Groove
0 1099 posted 14 years ago by Groove
This script let you back up your servers at once from a central backup server. First you must copy the central server ssh public key into the servers to backup (without password). After that you can install this script with a cron.
0 901 posted 14 years ago by eusonlito
Script to backup all MySQL databases and delete copies after X days
1 933 posted 14 years ago by eusonlito
Returns the page object of the parent of the current page.
0 1161 posted 14 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 3520 posted 14 years ago by levinet
0 800 posted 14 years ago by paulstraw
This TS creates a title vertically.
0 941 posted 14 years ago by typo3
1 ... 263 264 265 266 267 ... 554