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
1492
posted 15 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
2329
posted 15 years ago by adrianparr
The Android ID (a unique 64-bit value) as a hex string. It is null on the emulator.
0
1250
posted 15 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
1854
posted 15 years ago by alessio2
Put in a .vncloc to create a clickable link to a VNC host.
Opens up in Screen Sharing.app
1
1731
posted 15 years ago by oskarhagberg
A light-weight solution for x-browser rounded corners solution, degrades gracefully back to square corners
0
1342
posted 15 years ago by simon87ainley
Here's a handy (relatively undocumented) tip. PHP supports the following method of assigning strings (borrowed from Perl)
0
1195
posted 15 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
1921
posted 15 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
1964
posted 15 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
1403
posted 15 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
1687
posted 15 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
1605
posted 15 years ago by adamcoulombe
in Rails 2, use `include ActionController::UrlWriter` instead.
1
3560
posted 15 years ago by insanedreamer
Put this in `test_helper.rb` and call with `show(object1, object2, etc.)`
0
3580
posted 15 years ago by insanedreamer
ÐœÐµÐ½Ñ Ñ‡Ð°Ñто Ñпрашивают как Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ CodeIgniter получить доÑтуп к $_GET параметрам. Ð”Ð»Ñ Ñтого нужна вÑего лишь одна Ñтрочка кода в контроллере:...
1
1543
posted 15 years ago by stancox