Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1617
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
1909
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
1520
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
1383
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
1084
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
1044
posted 17 years ago by webStruck_
This function can validate and parse UK postcode like SW1A 1AA in to formated array.
2
2041
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
2359
posted 17 years ago by localhorst
This spring context configures a simple hibernate session (for annotated classes).
4
1762
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
1867
posted 17 years ago by neal_grosskopf
Creating a horizontal row of objects that are equidistant from each other is another one of those things in web design that is much more difficult than it should be. This can be a very useful thing to do, especially in fluid width layouts when you ar...
1
1525
posted 17 years ago by localhorst
This will always show the correct date... so it'll say "Copyright 2008 Comapany Name" now, and at exactly midnight on 1st January 2009, it'll say "Copyright 2009 Company Name". Simple!
2
1695
posted 17 years ago by tigercore
This is handy for testing, when you need to simulate an open file or open URI. Why, and the Pickaxe book, have better examples
1
1389
posted 17 years ago by cczona
adds a header to a myspace page right at the top. looks pretty cool.
0
1247
posted 17 years ago by rodreegez
You can turn off warnings for a section of your code by setting $VERBOSE to nil. Even better is to codify this in a method. Since this method takes a block as its parameter, you can now pass it arbitrary chunks of code to execute without warnings.
1
1303
posted 17 years ago by cczona