Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 81 82 83 84 85 ... 552
Thank you marcg for posting this on Snipplr http://stackoverflow.com/questions/1379994/detect-when-a-specific-image-has-finished-loading
0 2055 posted 14 years ago by focal55
// quick function to cut back on the length of content
0 1956 posted 14 years ago by rliverman
Relies on "trunCate" a truncating function.
2 3189 posted 14 years ago by rliverman
0 2118 posted 14 years ago by inky76
0 1989 posted 14 years ago by inky76
0 1861 posted 14 years ago by inky76
0 1803 posted 14 years ago by inky76
Thank you Jonathan Sampson for posting this on http://stackoverflow.com/questions/2050789/php-search-a-string-for-a-email-address
0 2668 posted 14 years ago by focal55
I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
0 3131 posted 14 years ago by JonnyCraze
This piece of code will read a hex argument such as: ff or ab from your command line and stores it as a integer
0 6137 posted 14 years ago by vdevos
A crude script to query the GitHub API for a given Organisation, and backup its repositories and associated members forks.
0 3541 posted 14 years ago by slinky
Groovy Swing Recurse Components
0 4069 posted 14 years ago by laurenceosx
To be added to all Landing Pages and other new works
0 1711 posted 14 years ago by jburcsik
default theme perfect menu
0 1835 posted 14 years ago by webtechdev
Simular submit al hacer enter y tener un boton type="button"
0 1845 posted 14 years ago by rickyslow
Add the "no-js" class to your topmost html element, so you can use CSS to style JavaScript-free pages. This snippet will then replace that tag with "js", allowing you to style pages with JavaScript. The excellent [HTML5 Boilerplate](http://html5bo...
0 5076 posted 14 years ago by EvanHahn
Here's how to use this: * To access something in the local storage, type `Evan.local('name')`. You may need to use `JSON.parse()` on this result. Returns `null` if nothing's there. * To assign something in the local storage, type `Evan.local('nam...
1 1889 posted 14 years ago by EvanHahn
This prepends a `#` if it's not already there. Useful when doing jQuery selectors.
0 1630 posted 14 years ago by EvanHahn
`Object.create(null)` is a more memory-efficient way to make objects, but it's not supported in all versions of JavaScript, so you can do the "old-fashioned" `{}` if that function isn't available.
0 2404 posted 14 years ago by EvanHahn
Just came across pure css3 soothing clouds, looks awesome, checkout!
0 2913 posted 14 years ago by jimmy101
Writing an PHP array in a javascript file with json_encode.
0 2732 posted 14 years ago by Narayon
Use: <script> $(document).ready(function(){ $("#input").forceNumeric(); }); </script>
1 2047 posted 14 years ago by itsmeameer
This snippet will exclude the featured image from the attached images (gallery)
0 1823 posted 14 years ago by nerdsane
0 2655 posted 14 years ago by errata
0 2624 posted 14 years ago by errata
Easily breaks a string into an array of words. *If your string has special characters such as latin, add those characters to the r var. Just like var r:RegExp = /[^\wçàáâãèéêìíîòóôõùúûüÀÁÇÂÃÈÉÊÌÍÎÒÓÔÕÙÚÛÜ¡]+/...
0 4840 posted 14 years ago by izaiasdotcom
This is a very simple way of highlighting the current page of a menu. It uses javascipt to take the current url and cross checks it against any URLs that match in the menu. If one matches then add an ‘active’ class to it. Be careful with #’s t...
1 2143 posted 14 years ago by soup
1 ... 81 82 83 84 85 ... 552