Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
ErrorConstructor produces error constructors that behave the same way as the seven native error constructors.
Usage: `ErrorConstructor([constructorName])`
*If no constructorName is specified, the default of `Error.prototype.name` is used*
Us...
1
1236
posted 16 years ago by Sephr
Search for applications by substring and display the results.
0
1279
posted 16 years ago by abwaters
Search for applications by developer name and display the results.
0
1359
posted 16 years ago by abwaters
Search for an application by its fully qualified Java package name and display the result.
0
1362
posted 16 years ago by abwaters
With android you can define intent-filters to indicate that your app wants to handle requests for specific urls.
1
1412
posted 16 years ago by abwaters
Technique for launching android market with specific search terms.
0
1387
posted 16 years ago by abwaters
fix for IE, adds getComputedStyle method for the object window and getPropertyValue method for the object, which returns getComputedStyle
1
5478
posted 16 years ago by Jman
Allows the user to bind an event into a certain position in the call stack for events.
3
1489
posted 16 years ago by garside
One of those common tools that's easy to forget about is the Modulus operator (%), which returns the remainder of a division operation.
If you divide some number by two, a remainder of 0 indicates an even number, while a remainder of 1 indicates a...
1
2579
posted 16 years ago by jlizarraga
obviously change url. you'll get (better formatted) something like...
curl -o /dev/null -w %{time_total}\\n http://www.google.com
% Total % Received % Xferd Average Speed Time Time Time Current
D...
0
894
posted 16 years ago by nategood
Extract logins default db settings from one server to export to another
0
933
posted 16 years ago by pollusb
This is the command to re-enable apache after you disabled it.
0
997
posted 16 years ago by bhubbard
There is a similar snippet on the site, yet it is listed for Windows Powershell, while the syntax is clearly Batch, and secondly, it is very incomplete and no response is coming from the author, so I'm posting my completer version here.
Beware, th...
4
1876
posted 16 years ago by Vordreller
A basic PHP script that I simply FTP to the server and use to evaluate extensions on the server. I simply supply the extensions I require and the script does the rest of the work.
1
1185
posted 16 years ago by fackz
从数æ®åº“ä¸é€‰å‡ºå¤§äºŽ3å°äºŽ13çš„çº¯å—æ¯åŸŸå,然åŽè¿›è¡Œè¿‡æ»¤ï¼Œå¾—åˆ°åŒæ‹¼åŸŸå。
å¢žåŠ ä¸€ä¸ªæ‹¼éŸ³é¢„åˆ¤æ–,过滤掉å‰ä¸¤ä¸ªå—æ¯ä¸ç¬¦åˆæ‹¼éŸ³è¦æ±‚çš„å—符串。
0
1230
posted 16 years ago by zhengrenchi