Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I wanted to pass a form submission (array) as a JSON object to another function.
Some form field were created with JS, to identify them their names have been concatenated with unique IDs, etc.
In order to access values of that JSON obj I needed to...
1
2364
posted 15 years ago by iroybot
I wanted to pass a form submission (array) as a JSON object to another function.
Some form field were created with JS, to identify them their names have been concatenated with unique IDs, etc.
In order to access values of that JSON obj I needed to...
0
2217
posted 15 years ago by iroybot
**Use this line to anonymize IP adresses in Google Analytics:**
_gaq.push(['_gat._anonymizeIp']);
0
1650
posted 15 years ago by JonasDoebertin
The following script will easily allow you to resize images using PHP.
3
2353
posted 15 years ago by enkas
There are a lot of recursive glob functions out there but they don't build a tree, they build a 1 dimensional array...This function builds a directory tree.
1
2056
posted 15 years ago by danoph
If you declare "preferExternal", you request that your application be installed on the external storage, but the system does not guarantee that your application will be installed on the external storage. If the external storage is full, the system wi...
0
1824
posted 15 years ago by ashsa
replaced taxonomy = 'category' with taxonomy = '".myTAXONOMY."'
add lines 51, 52, 93 - 123
0
2694
posted 15 years ago by Ijaas
I have to migrate from my old Drupal 5 site, that had multiple authors assigned to one node, and this is the solution for __Drupal 7__.
First of all you will need to download [__References__](http://drupal.org/project/references) module and ena...
1
2015
posted 15 years ago by Turek
Hopefully this covers just about everything. This code has far more lines than htmlify.js but seems to work ok.
(I just remembered that " // Loop through the clear text " has no loop breaker - will post a fix, but it's not a show-stopper for mo...
0
3498
posted 15 years ago by jm1248
Example of loading thickbox and syntaxhighlighter conditionally from the functions.php of a wordpress theme.
2
1673
posted 15 years ago by zac
Until recently, playing video files in a web page was notoriously complicated. The user requires a Flash or Silverlight plug-in and even the simplest HTML is a confusing mess.
Few HTML5 features excite developers more than native audio and video....
1
4623
posted 15 years ago by blueocto