Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Takes the collection 'david' and gives a unique array of the keys used.
0
915
posted 13 years ago by lemcoe9
I am having a bit of trouble figuring out what goes where in my application. I guess this is something of a fundamental lack of understanding I have, and I'm hoping somebody might be able to clear things up. This is all very much pseudo code.
In...
0
731
posted 13 years ago by shoelessone
There seems to be no easy way to insert a key and value at the beginning of an array, as array_unset does not allow you to specify a key. This is not a very efficient way to do it, but it works.
Pretend the array is currently: array("a"=>"b", "c"...
0
1188
posted 13 years ago by lemcoe9
I tried to create a little jQuery method to notify events to the user just as in facebook.
EXAMPLE: http://claudiobonifazi.com/snippets/fb_like_notifications/
1- Link this little plugin to your page (or paste it into your files as you wish)...
0
830
posted 13 years ago by claudiowebdesign
After giving a try with the Windows 8 Developer Preview i asked myself if i could reproduce the on click effect of the metro UI in a webpage.
Sadly, for what i know at this time CSS3 3d transformations works only on webkit browsers, so this is not...
0
871
posted 13 years ago by claudiowebdesign
Transform $_GET or $_POST in a string to add to an URL and send variables and values.
Argument: Receive an $_GET O $_POST array function.
Returns: variables concatenation to add to the URL.
0
932
posted 13 years ago by alberomo
ComScore previously had a BrightCove plugin which now no longer works with the updated BrightCove players. Here I used the GoogleAnalytics plugin code BrightCove provided and piggy-backed the ComScore code onto it. Using the Advertising Module API in...
0
753
posted 13 years ago by leongaban
Snippet to verify whether or not a key exists in a python dictionary.
0
636
posted 13 years ago by denakitan