Welcome To Snipplr


Everyone's Recent Snippets



1 ... 468 469 470 471 472 ... 553
You’ll notice the global classes at the bottom, which cover basic styling, and will remove styling that we intially set. For example, the .nobullet and .noindent work great on an unordered or ordered list. You can add your own classes there that yo...
1 1038 posted 17 years ago by ianmonge
1 1039 posted 17 years ago by ianmonge
This method uses the "min-height" property to give "hasLayout" in IE 7, "height" property for IE 6 and the pseudo-element ":after" and "content" property for Gecko based and IE 8 Beta.
2 1256 posted 17 years ago by kcmr
Active Record ORM implementation in ActionScript 3 for AIR's SQLite DB
0 959 posted 17 years ago by bendalton
Para validar si son dígitos, letras, números enteros o decimales (se puede seleccionar el separador de decimales). La función esDigito() y esLetra() está basada en otros códigos de Snipplr
1 1051 posted 17 years ago by sulfurito
Gracias a este artículo, pude colocar fondos de imagen a para las filas de una tabla.
1 1440 posted 17 years ago by demixo
This snippet is made for textmate (or e editor ?)
0 1165 posted 17 years ago by vanne
Modified just a bit. This version includes the Google Chrome beta.
2 1544 posted 17 years ago by wizard04
The script was modified slightly based on comments.
0 1391 posted 17 years ago by sudarkoff
0 1189 posted 17 years ago by DaveChild
This script should be run from the "master" database. It will destroy the dev copy of a database and restore from the live copy. Code slightly modified from original (linked).
0 1131 posted 17 years ago by DaveChild
Run from within SQL to get list of items in directory to a table.
1 1258 posted 17 years ago by DaveChild
Crops and resizes, maintaining perspective, with a white background.
1 1314 posted 17 years ago by DaveChild
1 1496 posted 17 years ago by DaveChild
This code is both basic and available from 24ways.org, but it's damn handy to reach through the snipplr plugin from textMate. PS: all cred to Rachel Andrew & the 24ways team.
4 1398 posted 17 years ago by stavelin
Based on the ereg family of functions in PHP.
0 1299 posted 17 years ago by DaveChild
Format strings: * %A - AM or PM * %a - am or pm * %m - Month with leading zeroes (01 - 12) * %n - Month without leading zeroes (1 - 12) * %F - Month name (January - December) * %M - Three letter month name (Jan - Dec) * $d - Da...
0 2921 posted 17 years ago by DaveChild
Translated by David Hunter.
0 1803 posted 17 years ago by DaveChild
4 1606 posted 17 years ago by DaveChild
7 2932 posted 17 years ago by DaveChild
0 1374 posted 17 years ago by stavelin
0 3408 posted 17 years ago by DaveChild
Generating MD5 HEX string from either URL or File instance in Groovy (more elegant than the Java version).
1 2010 posted 17 years ago by narkisr
You know how your bookmarks toolbar will show a little arrow when there are too many to fit? This code snippet will make the toolbar twice the size in height, and make the bookmarks wrap to the next line. In mac, you need to edit the file /Users/-...
1 1115 posted 17 years ago by Jacolyte
This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox. This came in very handy for a store inventory script when I needed to...
0 1554 posted 17 years ago by aristoworks
0 1100 posted 17 years ago by fredaudet
0 964 posted 17 years ago by rubinsta
I normally paste this into config/mongrel.rb, then add "require 'mongrel'" in my config/deploy.rb Once that's done, you'll be able to start, stop, and restart your mongrels like so: `cap deploy:mongrel:start/stop/restart`
3 1418 posted 17 years ago by jimmyebaker
Repeatable Fisher Yates Array Shuffle based on given random string. If no seed is provided the current second will be used (not to use as a pure random shuffle... based on microseconds)
0 1540 posted 17 years ago by digdan
1 ... 468 469 470 471 472 ... 553