Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
To be placed in template.php preprocess_page function.\\r\\n\\r\\nBreaks stylesheets into 2 style tags with limit of 30 @imports each. IE has a limitation of 31 @imports or 31 style tags. (source: [http://john.albin.net/ie-css-limits/single-style-tes...
1
725
posted 14 years ago by resting
Get the latest 5 titles from the Tumblr API using jquery
0
906
posted 14 years ago by morningcatmedia
Why? So that your class can be used with collection classes.
// basic class
Every object has a GetHashCode() and Equals() method by default which it inherits from Object. Unfortunately these methods are useless as they stand because they say no...
1
774
posted 14 years ago by mark4asp
A custom class for retrieving deliminated data from a (custom) MyString string.
0
685
posted 14 years ago by trusktr
This is a very useful piece of code (html, css, jquery) to have a nice animated floating menu on your page. I totally love it.
I used it with jquery 1.3.2 and up
3
877
posted 14 years ago by e11world
This one worked for me and I thought I'd share it with the rest of you!
2
1143
posted 14 years ago by e11world
This is a modification of the Sun tutorial code that initializes the text editor to accept words that are not part of the auto-complete list. In the terms of the implementation, it is referred to as "not strict".
1
905
posted 14 years ago by studioevoque
An example to make myself remember how powerful Java enums are!
1
2599
posted 14 years ago by studioevoque
Don't forget the nifty event properties to detect double-click !
0
762
posted 14 years ago by studioevoque
A rough "it works" way to delete elements from an array given the array of indices to delete. A new array is created by copying over the remaining elements.
Any suggestions on how to make this more efficient appreciated :)
0
822
posted 14 years ago by studioevoque
This is my fairly easy to use MySQL database class, I use this on my Experiment framework BlahFramework, anyways I thought someone else may find this useful or just study the code to get an awesome idea of there own. Enjoy.
3
1008
posted 14 years ago by Cory