Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
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
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
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