Welcome To Snipplr
Everyone's Recent Snippets Tagged line
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
input: -width 123 -height 234 -minimized -visible
output map: {"-width":"123", "-height":"234", "-minimized":null, "-visible":null}
0
561
posted 13 years ago by tactoth
You can replace the library item with whatever you want, or draw a shape in actionscript to use.
TweenMax is used in this snippet, get it here: http://www.greensock.com/tweenmax/ and thank Jack Doyle for being great by donating.
0
608
posted 14 years ago by IsoJon
Originally found on [Corey Goldberg's blog](http://coreygoldberg.blogspot.com/2010/01/python-command-line-progress-bar-with.html)
0
469
posted 14 years ago by codeshaman
Turn off auto kerning to get rid of that goddamn line break that happens on multiline text inputs!
0
797
posted 14 years ago by creativelifeform
This command will email the contents of emailbody.txt to [email protected] with the subject My subject line.
0
791
posted 14 years ago by webonomic
This script is for generating plots with many curves, where each curve has its own marker, color, and line style. Please see my blog post for more explanations and leave comments there.
0
999
posted 14 years ago by benjamin
i know these regex stuff is rather slow, but still i like having slim documents. (don't forget to use gzip compression on all text docs)
3
674
posted 14 years ago by iroybot
Use this to quickly clean-up a file which has opening braces on a new line, a particular annoyance of mine.
1
635
posted 14 years ago by Zenithus
This is a simplified example for cut and paste use for command line parsing arguments with the use of an options hash
0
784
posted 15 years ago by kfaulk1
Article explains why STRINGIFY and TOSTRING are both needed.
This technique is useful for embedded apps to print debug strings to a debug console. ASSERT or TRACE statements can incorporate these macros. The line numbers are converted to strings a...
0
735
posted 15 years ago by jimfred
This will print every number from 0000-9999. Each number is comma separated.
The goal was not pretty / readable code, but to get all code on a single line.
0
472
posted 15 years ago by tgpo
A good CSS example of how to style Horizontal Rule (HR) elements. It's also Internet Explorer (IE) friendly.
3
943
posted 15 years ago by jonhenshaw