Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A snippet that will centre an image within a container. The image also has a hover and background element 'on' the image.
0
3577
posted 12 years ago by brontus
I was studying Japanese adjectives and ye olde paper and pen wasn't enough so I made this. Basic as the basic can be
0
13708
posted 12 years ago by hamittou
Aliases command "go!" to starting AND restarting rails server for a project from anywhere in the filesystem. Replace PROJECT_HOME with the path to your project.
Place in config.fish
0
1978
posted 12 years ago by Epigene
his simple patch solves the problem when building on windows with usernames with non-ascii letters.
0
4281
posted 12 years ago by composite
Thanks to Tom McFarlin for this.
http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1
3289
posted 12 years ago by adambundy
A simple find function on an email string to identify of the string is a correctly formatted email address.
1
4617
posted 12 years ago by dreamstarter
Uses javascript to create a hidden iframe which downloads the file
0
5307
posted 12 years ago by jakob101
This example shows you how to log errors to a file, and prevent showing them to the user. Make sure that the file exists and you're able to write to it.
0
3396
posted 12 years ago by apphp-snippets
Here you may find some useful snippets for calculating relative time for different purposes: to get info from a column within certain date, like the latest 7 days, to get time interval etc.
0
2156
posted 12 years ago by apphp-snippets
Add an image to the email, must be linked not embedded ie in thunderbird mail moz-do-not-send attribute must be set true.
any requests for this gif image will be redirected through display which will log the request and serve up the stored t.gif i...
0
2284
posted 12 years ago by stiva71
This is a class to encapsulate rabbit mq sending and receiving.
0
1909
posted 12 years ago by ryantxr
for Cron:
# run
$ crontab -e
# then add this
*/1 * * * * export DISPLAY=:0.0 && /home/username/path/to/script.py > /dev/null
# then save.
# This cron job will run every minute
0
4341
posted 12 years ago by pantuts
Remove Wordpress empty paragraphs form the_content() function.
0
4096
posted 12 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1
3234
posted 12 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0
2116
posted 12 years ago by razvanstavila
A template for a javascript object with a object.create shiv to condense into object prototypes
0
2261
posted 12 years ago by rickygri
This snippet shows you how to reload the UIAppearance of an application after changes made on the proxies. This is required because iOS nativaly only load appearance proxies on "applicationDidFinishLaunching".
0
5847
posted 12 years ago by Nibli
The favicon is much normality in our days. Here the "apple-touch-icon" definition which is used when you save a bookmark to your home screen on an apple touch devices such as an iPad or iPhone. The interesting thing is that Android also supports its...
0
4408
posted 12 years ago by apphp-snippets