Welcome To Snipplr


Everyone's Recent Snippets



1 ... 493 494 495 496 497 ... 553
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 1680 posted 18 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 1555 posted 18 years ago by arunpjohny
*"Only the elements which are are selected through the $ selector will get the extra DOMAssistant methods added to it."
0 1224 posted 18 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 1164 posted 18 years ago by webStruck_
This function can validate and parse UK postcode like SW1A 1AA in to formated array.
2 2187 posted 18 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 2671 posted 18 years ago by localhorst
This spring context configures a simple hibernate session (for annotated classes).
4 1955 posted 18 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 2043 posted 18 years ago by neal_grosskopf
0 1441 posted 18 years ago by iTony
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 1708 posted 18 years ago by localhorst
Following a
2 1481 posted 18 years ago by cczona
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 1845 posted 18 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 1542 posted 18 years ago by cczona
3 1707 posted 18 years ago by picale
URI objects can be opened directly by open-uri
0 1665 posted 18 years ago by cczona
0 1401 posted 18 years ago by f0vela
0 1515 posted 18 years ago by f0vela
1 1524 posted 18 years ago by f0vela
0 1674 posted 18 years ago by f0vela
adds a header to a myspace page right at the top. looks pretty cool.
0 1394 posted 18 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 1471 posted 18 years ago by cczona
Beware of requiring 'CGI'. There's trouble in them thar hills/
1 980 posted 18 years ago by cczona
Forces a recalcitrant port to install by *uninstalling* it completely first
0 1075 posted 18 years ago by cczona
1 ... 493 494 495 496 497 ... 553