Welcome To Snipplr


Everyone's Recent Snippets



1 ... 519 520 521 522 523 ... 553
2 1701 posted 18 years ago by hyperwhat
1 811 posted 18 years ago by z0rg
3 1596 posted 18 years ago by m10
A shell script to install a Rails production stack on Ubuntu
0 1051 posted 18 years ago by ctran
This function (intended to be an application or view helper) creates a pager bar useful for navigating many pages. It shows the first, last, current, nearby, and halfway-to-end pages. It looks like this (where the current page is 11): < 1 ... 5 .....
1 1001 posted 18 years ago by Agent
This is an extension to Ruby's String class. Just put this code in a file and include it. This basically takes a string and adds literals and padding to it. For example, you can format a phone number with optional area code like this: "5445556...
1 1512 posted 18 years ago by Agent
0 1549 posted 18 years ago by micmath
0 1410 posted 18 years ago by micmath
From http://www.novell.com/coolsolutions/feature/11251.html
1 1253 posted 18 years ago by micmath
based loosely on Eric Meyers sheet but then tweaked to my own.
2 1158 posted 18 years ago by smynett
10 2342 posted 18 years ago by salsajid
replace submit buttons with nice images and does also the rollover. Easy.
1 1316 posted 18 years ago by valcartei
Style form fields
1 1434 posted 18 years ago by valcartei
this layout has a fixed width sidebar and a fluid main body.
1 1083 posted 18 years ago by penguin999
Developed for eclipse but prolly useful elsewhere, put the text after 'find' in the 'find' box and the text after 'replace' in 'replace'. Note: this example uses an html list item 'li', make sure to replace that with the tag you want to find
5 1713 posted 18 years ago by rhlowe
to call this function you would use "asfunction:myFunction,argument1,argument2,argument3" as the href in the tag in an HTML text box.
0 1768 posted 18 years ago by Bonky
have dt and dd inline is done automatically in Firefox, but screws up in IE7. So we need additional css rules, which have to be applied only if IE is used.
0 1559 posted 18 years ago by valcartei
To use css which will only be applied if the browser is IE.
0 1356 posted 18 years ago by valcartei
From railscast #41
2 1587 posted 18 years ago by bordalix
There must also be a JavaScript function defined in the containing HTML page: function makePopup(url,pop_name,width,height) { window.open(url, pop_name, "width="+width+",height="+height+",resizable=yes,scrollbars=yes"); }
1 1408 posted 18 years ago by Bonky
0 1064 posted 18 years ago by wintondeshong
0 1103 posted 18 years ago by asteinhaus
Build URLs for subcategories, e.g. 'cat-child-support.html' becomes '/family-law/child-support/'
0 1296 posted 18 years ago by ches
0 1044 posted 18 years ago by vanne
Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
4 1889 posted 18 years ago by jonhenshaw
1 ... 519 520 521 522 523 ... 553