Welcome To Snipplr


Everyone's Recent Snippets



1 ... 493 494 495 496 497 ... 554
https://www.chrisjmendez.com/2008/03/23/mysql-commands-i-wish-i-could-remember/
9 1034 posted 17 years ago by chrisaiv
Use this to start of new python applications.
1 1003 posted 17 years ago by kangell
[directory] ├index.php //this snippet ├imageA.jpg ├imageB.gif └imageC.png This snipet displays the thumbnail of the picture file that exists in the same directory. When the thumbnail image is clicked, the original size image is...
6 1038 posted 17 years ago by kyokutyo
I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.
1 1176 posted 17 years ago by neal_grosskopf
IE7 and IE8 support “No Add-ons Mode,” a troubleshooting mode. When you run IE this way, no 3rd party code runs... You can start No Add-ons Mode in a few ways: (To exit No Add-ons Mode, simply close that browser window.)
0 981 posted 17 years ago by cczona
Add this arg code plus set first argument as "OG: Group nid(s)"
2 1087 posted 17 years ago by metareason
this is not the ultimate secure way, but it's at least not displaying the email link
3 902 posted 17 years ago by iTony
1 869 posted 17 years ago by kangell
It gets images randomly from folder that you've pointed.
4 1217 posted 17 years ago by skywalker
1 902 posted 17 years ago by imhugo
Useful when trying to cleanup a large repo to see where you've made the most changes
1 1601 posted 17 years ago by JacobSingh
Sometimes i forget to remove firebug console commands when debuging, which makes IE and some other browsers fail / cry. To stop this happening use the below script from firebugx.js on the firebug lite homepage.
3 916 posted 17 years ago by 1man
I know what you think - no discussion about this needless piece of code to prevent copying texts/images from websites, but there are customers outside that are advising resistant and so I use this code to scare off their potential clienteles.
2 1210 posted 17 years ago by localhorst
I use these main import statements for the begaining of all my Actionscript 3 projects. The last two are custom classes that I use for tweening. One class is called Tweener and the other is called TweenLite.
2 1029 posted 17 years ago by mswallace
The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.
0 920 posted 17 years ago by arunpjohny
*"Only the elements which are are selected through the $ selector will get the extra DOMAssistant methods added to it."
0 724 posted 17 years ago by cczona
Are you looking for the RSS feed of your/someone else's DeviantArt Journal? Follow the tutorial on the link above. I used this pattern since the given pattern (above) was linking to a wrong page. Compared to the original pattern extraction, I used...
0 727 posted 17 years ago by webStruck_
This function can validate and parse UK postcode like SW1A 1AA in to formated array.
2 1554 posted 17 years ago by naz
This is a little trick I came up with to add outerHTML functionality in Firefox. For those who aren't familiar with outerHTML, it is an IE addition to the DOM that will return the element's HTML PLUS it's innerHTML. Is it really needed? No, but it ca...
1 1733 posted 17 years ago by localhorst
This spring context configures a simple hibernate session (for annotated classes).
4 1094 posted 17 years ago by narkisr
Often times it is nice to add some text after a link on your website to let your users know whether the link goes to a PDF and how large that PDF file is. I've found that manually doing this works but after awhile when that PDF file get updated, the...
2 1271 posted 17 years ago by neal_grosskopf
0 806 posted 17 years ago by iTony
1 ... 493 494 495 496 497 ... 554