Welcome To Snipplr


Everyone's Recent Snippets



1 ... 530 531 532 533 534 ... 553
1 1424 posted 18 years ago by spider
3 2762 posted 18 years ago by spider
Not really relevant to anybody else. Full unobtrusive js file for a simple gallery. From DOM Scripting by Jeremy Keith (superb book, highly recommend it for anyone looking to move into DOM scripting)
2 1525 posted 18 years ago by 1man
Vert useful function since there isn't an insertAfter function in the DOM. Call it inside scripts, it expects insertAfter(*the new element to be inserted*, *the element you want it to be inserted after*);
3 3145 posted 18 years ago by 1man
3 1667 posted 18 years ago by zuwiki
Works in IE. FF 1.5 hides URL, but does not show displayed url.
3 1637 posted 18 years ago by tohagan
when testing forms you don't always want to fill in dummydate this is a function i used to autofill and select values.
1 1383 posted 18 years ago by assbach
it's an excerpt of a registration form with 3 pulldowns for birthday ( day, month, year ) check for empty vars and applying CSS classes to show error on "empty" fields. there are probably better ways, but this works for me. any suggestions welcome.
1 3722 posted 18 years ago by assbach
0 1196 posted 18 years ago by spider
This replaces the PHP-based function in the HTML bundle. You need to add two files to your bundle's Support/lib folder (create the directories if they're not present): http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vend...
6 3105 posted 18 years ago by gtcaz
2 1409 posted 19 years ago by gtcaz
1 1085 posted 19 years ago by olive
0 1147 posted 19 years ago by olive
1 2462 posted 19 years ago by olive
0 2574 posted 19 years ago by olive
0 1387 posted 19 years ago by olive
0 1300 posted 19 years ago by olive
An example ajax form tag
5 2429 posted 19 years ago by jordanbrock
There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.
0 1560 posted 19 years ago by plexus
Alternative bundle command for e (http://www.e-texteditor.com) or TextMate. Replace YOUR_API_KEY_HERE with a valid API key -- you can find it on your Settings page (http://snipplr.com/settings/). Changed the command to allow selection of langua...
10 2603 posted 19 years ago by gtcaz
This command allows you to browse your snippet collection on Snipplr and retrieve them into e. Requires the installation of the wxCocoaDialog exe in the /Support/bin subdirectory. Replace YOUR_API_KEY_HERE with the API key -- you can find it on y...
6 2829 posted 19 years ago by gtcaz
Requires aspell and wxCocoaDialog. Now checks all of your selection for misspellings. Known issues: * e doesn't see contractions as a "word", so you must select things like can't, won't, etc. or the command won't see the whole word. * Dupl...
2 1609 posted 19 years ago by gtcaz
This is an example of how to use the wxCocoaDialog dropdown widget from Ruby.
2 1614 posted 19 years ago by gtcaz
Handy for after submitting a form or moving sites and wanting to tell users about the change. Just change the URL (can be absolute or relative) and the timeout. Shown here as 5 seconds.
5 2158 posted 19 years ago by mountainash
This is an example of how to use the progressbar widget from Alexander Stigsen's new wxCocoaDialog, an open source port of CocoaDialog to Win32 using the ExWidgets toolkit. This is a companion project to his e Text Editor.
2 1241 posted 19 years ago by gtcaz
from google search change in /etc/network/interfaces in this case static IP is 192.168.1.100 afterwards, restart network interfaces: sudo /etc/init.d/networking restart
1 1744 posted 19 years ago by Ruuk
Trims leading and trailing spaces from a string value and returns the result as a new string.
1 1797 posted 19 years ago by splorp
SSh with 3 levels of debugging this useful if you can't login and need to see what is going on.
1 1611 posted 19 years ago by vanne
1 ... 530 531 532 533 534 ... 553