Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simple example of using Google's API for contacts to display the contact name and phone number. More info in the comments.
0
1549
posted 16 years ago by PhilK
Fetches an RSS feed and displays the title and summary of each entry. Nothing fancy.
0
1624
posted 16 years ago by PhilK
Simple example for using ActionMailer with Gmail (or other hosts if you remove the TLS settings).
0
1700
posted 16 years ago by PhilK
Source: Linux Journal
This command downloads the Web site www.website.org/tutorials/html/.
The options are:
* --recursive: download the entire Web site.
* --domains website.org: don't follow links outside website.org....
1
6084
posted 16 years ago by abhiomkar
Great script found on http://www.scrounge.org/linux/rsync.html. Useful for creating boilerplate backup scripts
1
1671
posted 16 years ago by nate63179
(Ref: http://yoast.com)
While preparing my previous post on new features in WordPress 2.9, I ran across a ticket in Trac for something I'd been wanting to do for a while: specify a subfolder of the uploads directory for specific plugins, like my B...
0
1765
posted 16 years ago by ksantoshp
Proper enumerations in PHP are hard to come by. This uses a class as a pseudo enumeration. Sometimes you'll want to lookup the string name side of the enum when you have the value (ie, you have "1" and you want the string "Flood").
0
1663
posted 16 years ago by benjaminpearson
Simple script that returns to us a list with possible TimeZones
0
2002
posted 16 years ago by AzizLight
This function takes a start time, an end time, and an interval ("step size"). It returns an array of times separated by that interval between the start time and end time (similar to what Google Calendar does). The keys of the array are the number o...
2
1546
posted 16 years ago by bachya