Welcome To Snipplr


Everyone's Recent Snippets



1 ... 531 532 533 534 535 ... 553
0 1120 posted 18 years ago by olive
An example ajax form tag
5 2251 posted 18 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 1359 posted 18 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 2415 posted 18 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 2560 posted 18 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 1457 posted 18 years ago by gtcaz
This is an example of how to use the wxCocoaDialog dropdown widget from Ruby.
2 1464 posted 18 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 1969 posted 18 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 1092 posted 18 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 1510 posted 18 years ago by Ruuk
Trims leading and trailing spaces from a string value and returns the result as a new string.
1 1612 posted 18 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 1420 posted 18 years ago by vanne
used to remove unnecessary duplication of code. Code is from Jamis Buck (http://weblog.jamisbuck.org/2007/1/24/object-with_options)
1 1249 posted 18 years ago by andyh
Visit the link for instructions on how to use it.
4 1203 posted 18 years ago by jonhenshaw
My additions to the textdrive .profile
0 960 posted 18 years ago by ryansobol
paste above in HEAD tag
1 1487 posted 18 years ago by clapfouine
Workaround to remove or rename annoying files with long filenames
0 1470 posted 18 years ago by vanne
Les propriétés racourcies Exemple avec la propriété raccourcie 'font': En clair vous pouvez résumer ça: p { font-size: 1em; line-height: 1.5em; font-weight: bold; font-style: italic; font-variant: small-caps; font-family: verdana...
3 1374 posted 18 years ago by clapfouine
Using instance_eval to abstract values into meaningful methods
1 1014 posted 18 years ago by vanne
put this into lib/tasks and then run rake db:version
1 1116 posted 18 years ago by vanne
in javascript use, for example: myJsonObject["js007"].firstname + ' ' + myJsonObject["js007"].lastnamename to return James Bond
1 1335 posted 18 years ago by markireland
This is a prototype based method for loading functions, this is an alternative to using window.onload = function();
1 1098 posted 18 years ago by vanne
A custom assertion that will allow you to pass a block to find the difference between two values.
1 1057 posted 18 years ago by vanne
Useful for when you need to do a find and map specific results to an array for use later
1 1273 posted 18 years ago by vanne
always forget that.
0 1290 posted 18 years ago by assbach
Helps identify correctly the type of whatever you put as an argument. This was adapted from http://www.planetpdf.com/developer/article.asp?ContentID=testing_for_object_types_in_ja
3 1677 posted 18 years ago by rolandog
I got most of these tips out of a great book published by O'Reilly (my favorite web-design publisher): "Programming PHP, 2nd Ed." by Lerdorf, Tatroe, and McIntyre. Another good book is "Essential PHP Security," also published by O...
2 2016 posted 18 years ago by pckujawa
Most of these come from the book "CSS Mastery: Advanced Web Standards Solutions," a must-read by Andy Budd (seriously, even if you've used CSS for years, you'll learn a good deal of new things from this book; beginners should read this imme...
2 969 posted 18 years ago by pckujawa
1 ... 531 532 533 534 535 ... 553