Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A little function used to set cookies as arrays of values instead of single combinations key->value. Note that it saves values as a stack.
1
1889
posted 15 years ago by claudiowebdesign
simple bash script to kill apache childs with status "Gracefully finishing" or "G" status. you may put it at cron
0
1739
posted 15 years ago by randompage
Original custom fields code based on Wefunction's code here: http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/ enhanced to add support for uploading images.
1
1903
posted 15 years ago by simnor
This little trick will prevent line breaks on your links. I recommend using this with long text to avoid having links break into 2 lines.
0
1992
posted 15 years ago by blueocto
Textareas in IE have vertical scrollbar visible by default. If you want those removed (I know I do) use this line.
0
2000
posted 15 years ago by blueocto
With this line of code you can control places where you want your pages to break when printing a document.
0
1981
posted 15 years ago by blueocto
This will remove dotted outline from focused or active links.
0
1760
posted 15 years ago by blueocto
the following code can be used to create a table with a dynamic name
0
2040
posted 15 years ago by gtaking
Use as follow in you style.less file :
<pre>
.example{
.linearGradient(0, #fff, 50%, #ccc, 100%, #fff);
}
</pre>
1
2206
posted 15 years ago by kanouf
Quick and easy javascript in_array function. It's not perfect, but if you need something quick, this is it.
1
1702
posted 15 years ago by cornellsteven
ReflectionToStringBuilder wraps a class and outputs a string describing its attributes, more or less similar to var_dump in PHP
1
7472
posted 15 years ago by miceno
There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file...
1
2599
posted 15 years ago by SoN9ne
This is a simple and effective way yo make sure people are actually filing out a form before submitting it. If you need to verify content it should be done server side (so that if you come across the odd person with javascript turned off it wont brea...
0
2172
posted 15 years ago by FatFolderDesigner