Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A simple way of displaying a random list item. Could be used to randomly display anything.
Demo: jsfiddle.net/uRd6N/ (keep clicking run)
0
2002
posted 11 years ago by i-am-andy
How to get a query based on case/when sintax, on WHERE statement (Treated as boolean expresion)
0
642
posted 11 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
1066
posted 11 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
812
posted 11 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
923
posted 11 years ago by simonwalker
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
1464
posted 11 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
1296
posted 11 years ago by mindinmotionmkd
This snippet will produce an alpha-numeric 16 character password
1
764
posted 11 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
1045
posted 11 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
889
posted 11 years ago by SnipplrSlush
This snippet is used to set some wordpress directories / paths directly to the server name.
0
978
posted 11 years ago by mralexjuarez
поиÑк Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð² многомерном маÑÑиве
0
588
posted 11 years ago by noganno
Example to change the selected item in a ComboBox, in code behind. For VB.Net
0
976
posted 11 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
793
posted 11 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
775
posted 11 years ago by kidmizere
I want to extract the numbers from a string that contains numbers and letters like
0
1282
posted 11 years ago by satie83
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
801
posted 11 years ago by brownrl
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
890
posted 11 years ago by pussard
From a local computer to a server with a public/private key pair.
0
798
posted 11 years ago by adamokruhlicaeu