Welcome To Snipplr


Everyone's Recent Snippets



1 ... 333 334 335 336 337 ... 554
This lets you type Mandarin tones like a1, o2, e3, and so on instead of having to type the real pinyin. The tones are saved with the proper characters in the database.
0 1135 posted 15 years ago by 67ideas
Put the height_options method into a helper file, and use it as the select collection for select or collection_select. It allows heights between 4 feet and 7 feet. To change these limits, change 48 and 84 to some other numbers.
0 926 posted 15 years ago by 67ideas
使用rpy2访问R的对象
0 932 posted 15 years ago by jeff_jie
0 1013 posted 15 years ago by Ethyde
This SearchArray class was written by Flanture. I claim no credit for this. The class can be downloaded from here ... http://www.box.net/shared/7fj14higai
2 1043 posted 15 years ago by adrianparr
This handy String Utils class was written by Ryan Matsikas at gSkinner.com I take no credit for it. A ZIP file containing 'StringUtils.as' can be downloaded from here ... http://www.gskinner.com/products/downloads/AS3StringUtils.zip
2 1460 posted 15 years ago by adrianparr
1 800 posted 15 years ago by tcmacdonald
Wordpress IDs , Classes & Tags Referenece
0 876 posted 15 years ago by Banhawi
Many scripts rely on `$_SERVER[SCRIPT_URL]` which is sometimes missing. This function detects it from other server variables and fixes the missing field.
1 1873 posted 15 years ago by drwitt
Inside the `AppDelegate`, the `didFinishLaunchingWithOptions` method can be used to just create and use a custom View Controller class.
1 1445 posted 15 years ago by matryer
Handy Date/Time converter: Convert Date Object to MySQL date format, Translate minutes into an English phrase, Convert MySQL date to Actionscript Date object, Get Day name from Date, Get name of Month from a Date Object, Input the seconds and return...
1 1638 posted 15 years ago by chrisaiv
0 1126 posted 15 years ago by mracoker
Uso quando quero pesquisar o histórico de conversas e não lembro qual comunicador estava usando
0 868 posted 15 years ago by gpupo
0 1178 posted 15 years ago by maryann
Credit goes to B. Kemler. I'm simply saving this for future reference.
0 1106 posted 15 years ago by jhafner
2 1207 posted 15 years ago by toro999
1 1710 posted 15 years ago by ajit555
Orders a multi-dimensional array by one of it's fields. There is also the option to treat this like an SQL-style 'order by' query with the $field value passed in (ie. 'user_id desc') to do reverse ordering.
0 852 posted 15 years ago by browncardigan
here's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions. As it stands, it's pretty poorly documented and very basic. I * got exceptionally bored and rewrote most of it, the patch is attached. It runs...
0 1345 posted 15 years ago by nkm
You must include these DLL references in your vsweb or vscode project:\r\nPresentationCore,\r\nPresentationFramework,\r\nWindowsBase. \r\nNotice how I am manipulating the RGB values of each pixel, this is the power of these classes. The Drawing class...
0 1149 posted 15 years ago by bryanlyman
If the official codex approach (http://codex.wordpress.org/Changing_The_Site_URL) is causing you problems, give this a try. Be sure to change the constant declarations and modify table names as necessary for your instance. Confirmed working with WP v...
1 1343 posted 15 years ago by johnandrewsroot
So here is something a lot of people have been wondering to do in the forums. How do I take a UIImage or any image and post it to a website. So this will go over how to do that. There are two ways to tackle this issue. One we can base64 encode the...
2 1495 posted 15 years ago by espinallab
Lowercase .JPG extension
0 1042 posted 15 years ago by vigoncas
Use wget and sed to get your public IP adress (instead of firing up firefox and visting whatismyip.com). Usefull in scripts where you need your public IP adres. There are probably better ways, maybe even a GNUtool that I missed?
0 1161 posted 15 years ago by berkes
1 ... 333 334 335 336 337 ... 554