Welcome To Snipplr


Everyone's Recent Snippets



1 ... 505 506 507 508 509 ... 552
This is a handy little function that takes the htmlText value of a TextField and ads a specified tag at the beginning and end of the string. Handy for quick formatting tags such as bold, italic, underline, but could be used to add complex style data...
0 1884 posted 18 years ago by discorax
0 1516 posted 18 years ago by kristin
0 1653 posted 18 years ago by kristin
1 1956 posted 18 years ago by vanne
Run this command when you are in the directory where you want to changes the files that get ignored.
1 2091 posted 18 years ago by jachin
test with echo instead of mv example removes spaces after dots, replaces spaces with _, removes ' , and -, and finally lowercases filenames
1 2371 posted 18 years ago by iblis
3 1973 posted 18 years ago by iblis
Execute multiple commands in background, wait for each to be finished and evaluate their return codes.
0 1958 posted 18 years ago by nohn
1 1641 posted 18 years ago by vanne
Sets a module's weight to the lowest number. This assures that your module is ran before all other modules. Userfull if you want your implementation of a hook to be ran first. Add this to your .install file. Replace your_modulename with the name of...
2 1918 posted 18 years ago by berkes
add "void Init_client(){}" to the bottom of Client.m
0 1945 posted 18 years ago by sou
1 21851 posted 18 years ago by johnself
Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.
1 2192 posted 18 years ago by 1man
Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.
1 2318 posted 18 years ago by berkes
0 2021 posted 18 years ago by realgeeky
Just a test
0 1699 posted 18 years ago by realgeeky
The -P handles partial transfers, I'm using this for big audio/video files.
2 2154 posted 18 years ago by mandric
Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstr_array() for case-sensitive searches and stristr_array() for case-insensitive searches.
1 3432 posted 18 years ago by engel
Everything is either true or untrue, or both true and untrue, or neither true nor untrue - nagarguna
2 2752 posted 18 years ago by zvasanth
drunkenprogrammer
0 3870 posted 18 years ago by zvasanth
drunkenprogrammer
0 2032 posted 18 years ago by zvasanth
drunkenprogrammer
0 4065 posted 18 years ago by zvasanth
Everything is either true or untrue, or both true and untrue, or neither true nor untrue
0 4272 posted 18 years ago by zvasanth
0 1424 posted 18 years ago by cczona
1 ... 505 506 507 508 509 ... 552