Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This rule lets you print the contents of any variable for debugging purposes. Usage:
> gmake echo_SOURCES
SOURCES = main.c foo.c
1
1150
posted 15 years ago by michaelaskew
Example code to exercise a Crystalfontz 533 display from a 8051 using Keil C51.
0
1260
posted 15 years ago by jimfred
This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year. It's pretty simple and may not be the cleanest way but it works for my purpose.
0
1216
posted 15 years ago by aristoworks
This is another way to get a list of files ordered by upload time.
1
1394
posted 15 years ago by fackz
Use this little bit of CSS to get rid of the active link dotted border in Firefox. A must have when doing the text-indent:-9000px; image replacement technique on links.
0
1164
posted 15 years ago by toddaeverett
this specifically checks the view name and then checks the arg length altering the page title if its a match
1
903
posted 15 years ago by ReeceMarsland
Insert this code into your functions.php and you'll get a custom CSS box on every page and post. Be sure your theme has wp_head(); in it.
2
2176
posted 15 years ago by Kerrick
This is a tutorial I've found for integrate Facebook Connect function with your web community.
1
1231
posted 15 years ago by ginoplusio
From Keil C51 examples, TEST.C: ISD51 Demo for TI MSC 1210.
Polled (non-interrupt) mode.
Work-around for dropped-characters related to stop-bit problem: Clear SCON1.5 (or SM2_1).
0
1164
posted 15 years ago by jimfred
Detect if the user is browsing from and iPhone (or iPod) to server up specific content. For example, iPhone users can receive youtube video content instead of vimeo, etc.
1
1044
posted 15 years ago by ericschweichler
Делаем иÑполнÑемым cd ~ && chmod +x ship.sh
Ð”Ð»Ñ Ð·Ð°Ð¿ÑƒÑка Ñервера: ./ship.sh -serve
Ð”Ð»Ñ Ð¿Ð¾Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ðº Ñерверу ./ship.sh host
1
759
posted 15 years ago by anonymous
bit shabby and should really never do this but hey!
Takes an id selector of a ul and expects the ul to be ul>li>a which gets converted into an option list which changes the destination url of the anchor button beneath on select change. bah.
0
1499
posted 15 years ago by ReeceMarsland
This snippet shows how to replace the colours in a monochrome image, i.e. one which only contains two colours and the range of hues between them.
0
869
posted 15 years ago by deepsoul
Allows you to remove the whitespace that can appear before the xml tag in wordpress files such as wp-includes/feed-rss2.php
1
915
posted 15 years ago by benjaminpearson
Great short snippet of code to toggle checkboxes.
Thanks [Josh Nathanson](http://groups.google.com/groups/profile?enc_user=aAOlJRcAAAC7dB8ku2NsRGdjbPtXhPEXHqZiDvCVswhrZ6TQxKj0ww) for putting this simple code together.
6
1114
posted 15 years ago by smoothdzion