Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 192 193 194 195 196 ... 553
0 3653 posted 15 years ago by avioli
0 1331 posted 15 years ago by silentpro
This trigger returns a resultset that includes last inserted record's guid info (uniqueidentifier) If your column is uniqueidentifier and its default value is newid() , you can't get last record id (guid) with @@identity . So, I write a trigger...
1 1265 posted 15 years ago by emregulcan
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 1903 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 1776 posted 15 years ago by iroybot
**Use this line to anonymize IP adresses in Google Analytics:** _gaq.push(['_gat._anonymizeIp']);
0 1277 posted 15 years ago by JonasDoebertin
0 1960 posted 15 years ago by arpit
local.xml snippet
0 1250 posted 15 years ago by nico65
The following script will easily allow you to resize images using PHP.
3 1948 posted 15 years ago by enkas
template catalog->layer->view.phtml
0 1493 posted 15 years ago by nico65
1 1767 posted 15 years ago by Savio
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 1608 posted 15 years ago by danoph
0 1049 posted 15 years ago by harmdewit
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 1439 posted 15 years ago by ashsa
replaced taxonomy = 'category' with taxonomy = '".myTAXONOMY."' add lines 51, 52, 93 - 123
0 2318 posted 15 years ago by Ijaas
This is a sample JTextArea with a custom background image.
0 1600 posted 15 years ago by lethalwire
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 1616 posted 15 years ago by Turek
Reminder of the assertions possible with jstestdriver
0 1002 posted 15 years ago by ddubyah17
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 3009 posted 15 years ago by jm1248
#ImageMagick must be installed on server for this operation
6 3082 posted 15 years ago by alessio2
3 1713 posted 15 years ago by batamire
Add a list of recent comments from the wordpress database
1 1141 posted 15 years ago by zac
1 ... 192 193 194 195 196 ... 553