Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Requires the twitter bundle. This is an early attempt at updating this. Pretty crude at the moment, but it works.
2
966
posted 18 years ago by gtcaz
Adapted from http://journal.mychores.co.uk/articles/2007/01/21/updating-twitter-from-ruby-rails
2
943
posted 18 years ago by gtcaz
Simply replaces the div's innerHTML with the response text received from the file.
3
1716
posted 18 years ago by 1man
Basic layout for the data contained in a JSON file.(JavaScript Obsect Notation).
1
853
posted 18 years ago by 1man
This template is for an XHTML 1.1 document with an external stylesheet.
0
1195
posted 18 years ago by cpjobling
This function allows you to parse a simple XML document(passed to it using this.href on a onclick event). Virtually the same as JSON, the things that have been changed ate labeled !Important.
3
1234
posted 18 years ago by 1man
This function is near enough the same as parsing XML. The only things that have changed are the sections marked !important.
3
1229
posted 18 years ago by 1man
This while loop will remove all childNodes from a selected element.
1
756
posted 18 years ago by 1man
Very basic grab a line of text from a file then display it in an alert box. Uses other functions for loading prepareLinks() and creating the request.
2
1146
posted 18 years ago by 1man
Change / to the root directory you wish to search in. Change -7 to +7 for files changed more than a week ago.
1
1375
posted 18 years ago by micmath
Use to get console input from the user for a file name (in the current directory) and read in from that file.
2
948
posted 18 years ago by pckujawa
This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O.
The template snippet links the images to their own node.
2
867
posted 18 years ago by berkes