Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This worked on the limo site. I need to change the form action for it to work with another project.
0
753
posted 14 years ago by gera3d
This code uses Senocular SWFReader class to get the modification (publish) date of the SWF, and then displays it as a right-click menu item. You need to make sure that your SWF includes the XMP metadata. In the Flash IDE you can turn this on by going...
2
1214
posted 14 years ago by adrianparr
The Android ID (a unique 64-bit value) as a hex string. It is null on the emulator.
0
644
posted 14 years ago by Kingcron
* Creates thumbnail from image
* thumbnail dimensions can be set as parameters
* accepts JPG, JPEG, GIF, PNG
* preserves transparency for GIF and PNG on thumbnails
* call function like this: createthumb(images/original.jpg, thumbs/thumb.j...
3
804
posted 14 years ago by alessio2
Put in a .vncloc to create a clickable link to a VNC host.
Opens up in Screen Sharing.app
1
760
posted 14 years ago by oskarhagberg
A light-weight solution for x-browser rounded corners solution, degrades gracefully back to square corners
0
781
posted 14 years ago by simon87ainley
Here's a handy (relatively undocumented) tip. PHP supports the following method of assigning strings (borrowed from Perl)
0
647
posted 14 years ago by Snaver
Please note that background colour, font sizes, font family, border style, border collapse, padding, td style flip horizontal or vertical and whether object intended to be flipped is a word or pic indicated by url is merely arbitrary, as code may be...
0
1024
posted 14 years ago by Hercolena
Related Categories: jQuery, Tips
We've all heard the best practices recommendation to load jQuery (or other JavaScript libraries) from a CDN, such as Google's for performance reasons. But what happens if, in the rare chance, Google's network is do...
2
936
posted 14 years ago by stancox
Just a funny, yet usefull fixture for testing users in a rails app.
Using "somewhat real" fixtures, will keep testing both fun and realistic.
Knowing that "Crabbe_ugly_nick" failed, is a lot easier to communicate then knowing "user_t_x01 failed"
0
722
posted 14 years ago by berkes
Save the source provided to /app/view/helpers/timezone_select.php
To use the below helper, just put this code into your view:
echo $timezoneSelect->select('timezone', 'Please select your timezone', 'Europe/London');
Also, don't forget to...
1
819
posted 14 years ago by richt
see demo at http://adamcoulombe.info/lab/as3/stripes.html.
This demonstrates the use of k-lib, Kuler API library for AS3. As well as Traer Physics for to handle the springiness.
1
834
posted 14 years ago by adamcoulombe