Welcome To Snipplr


Everyone's Recent Snippets



1 ... 37 38 39 40 41 ... 554
A simple way of displaying a random list item. Could be used to randomly display anything. Demo: jsfiddle.net/uRd6N/ (keep clicking run)
0 1629 posted 10 years ago by i-am-andy
How to get a query based on case/when sintax, on WHERE statement (Treated as boolean expresion)
0 467 posted 10 years ago by keidash
Open your function.php of your active Theme. Copy your code insert and call the new Site URL. After delete the code snippet.
0 824 posted 10 years ago by WMSchneider
This extension allows Magento based store owners to give their visitors an advance feature of creating gift registry for their upcoming wedding, engagement or birthday party. The registry creator can share the link of the wish-list on its social netw...
0 633 posted 10 years ago by simonwalker
This extension has been developed by Fme for Magento store owners. This extension enables store owners to post FAQ in separate page as well as under each product page. The customers can post questions, rate, like or comment on existing questions. The...
0 724 posted 10 years ago by simonwalker
0 658 posted 10 years ago by roboninjapiratejesus
I came across a permission issue when using the standard Directory.Exists() method, so I came up with another way to check if a Directory exists avoiding those permission issues. This works very well. It can be converted to C'#.
0 1046 posted 10 years ago by nimblebits
Change the generic class to whatever class you wish. JSON arrays, types etc, are not handled, you should do that. Purpose of this snippet is to deserialize only needed JSON keys with respect to the class members of your class.
0 1009 posted 10 years ago by mindinmotionmkd
method to convert int to float in ObjC
0 1419 posted 10 years ago by pecta
This snippet will produce an alpha-numeric 16 character password
1 601 posted 10 years ago by mralexjuarez
This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
0 794 posted 10 years ago by rickygri
jQuery Validate is used in ASP.Net MVC 4. As it is checking only en-US as a default you may have problems with different cultures for decimal inputs and dates (I had to try for minutes to find a accepted date format. I don't want to see how my custom...
0 702 posted 10 years ago by SnipplrSlush
Commands to dump and load a database in django
0 1088 posted 10 years ago by erichlotto
This snippet is used to set some wordpress directories / paths directly to the server name.
0 765 posted 10 years ago by mralexjuarez
mount vmware share folder in linux guest
0 569 posted 10 years ago by tzvio
поиск значения в многомерном массиве
0 440 posted 10 years ago by noganno
Example to change the selected item in a ComboBox, in code behind. For VB.Net
0 715 posted 10 years ago by keidash
This meta tag in the head with proper configuration shows the appstore app equivalent of the website. When the user is visits the website and it has a App in the appstore, then a small preview is shown on the top by iOS saying the app is availabl...
0 613 posted 10 years ago by carbonr
This will create a table, create an update trigger to add current datetime to modify_date field, do 2 inserts, 1 update and display the results.
0 620 posted 10 years ago by kidmizere
I want to extract the numbers from a string that contains numbers and letters like
0 989 posted 10 years ago by satie83
Show alternative views of your page, depending on a hashtag
0 534 posted 10 years ago by jbernus
This is a custom field handler for a Drupal view. Sometimes you have two or more fields in a content type and you want to do a test on them to see if both are empty or both full or exclusive and return that as a field. There are probably ways to d...
0 624 posted 10 years ago by brownrl
How to obtain all the commits that occurred between two dates
0 863 posted 10 years ago by satie83
Create a bash alias for a SSH command, e.g. sshToWork
1 690 posted 10 years ago by adamokruhlicaeu
This handy tool takes raw CSS and finds all relative URLs for background images and injects the absolute path. After which all the background images are displayed on the page. This is useful if you need a quick way to save all background images at on...
0 698 posted 10 years ago by pussard
From a local computer to a server with a public/private key pair.
0 630 posted 10 years ago by adamokruhlicaeu
Sanitize database inputs
0 430 posted 10 years ago by mrglazzz
How to replace the tab ASCII characters ( ) of the text.
0 804 posted 10 years ago by keidash
1 ... 37 38 39 40 41 ... 554