Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This was used to accomplish a deferent background on a secondary page within the website.
0
848
posted 15 years ago by gera3d
This worked on the limo site. I need to change the form action for it to work with another project.
0
1006
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
1466
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
844
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
1086
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
1040
posted 15 years ago by oskarhagberg
A light-weight solution for x-browser rounded corners solution, degrades gracefully back to square corners
0
986
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
857
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
1318
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
1251
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
950
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
1060
posted 15 years ago by richt