Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
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
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