Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
HSH is a cool haskell library that allows you to leverage your shell scripting prowess in haskell programs. In this simple broadcatcher, I use curl for http get, and other standard unix tools for tracking history (so we don't get the same file twice...
1
4248
posted 16 years ago by softmechanics
Not very secure, but very handy ...
Use like that :
app = your_wsgi_app()
app = ControlAccess( app, "your_password")
httpserve( app ) # wsgi server
0
2109
posted 16 years ago by manatlan
To force the user to download certain filetypes in the current directory.
0
3310
posted 16 years ago by darylclaudio
Gets the loaderInfo of the top-most parent. For example, if you load an external swf, placing this code within that external swf can access the loaderInfo and FlashVars for the parent SWF (the SWF that has loaded this external SWF) from within the ch...
1
1513
posted 16 years ago by sandropadin
This is how to patch changes from svn into git (should work with other vcs as well).
0
1867
posted 16 years ago by narkisr
modified version of:
http://www.linein.org/blog/2008/04/04/find-time-between-two-dates-in-php/
0
2436
posted 16 years ago by jkjeldgaard
I just thought of a great new way to organize your CSS attributes: use the first letter of a each attribute to write words that other developers will find hilarious!
0
3172
posted 16 years ago by peterwooley
Squashing
---------
WARNING: "git rebase" changes history. Be careful. Google it.
git rebase --interactive HEAD~10
(then change all but the first "pick" to "squash")
squash the last 10 commits into one big commit
0
2789
posted 16 years ago by jturmel
add a value to your text input e.g. "Enter keywords" and clear on-click
0
1953
posted 16 years ago by flicity
Every MySQL class for PHP I've seen so far has been an epic disappointment. This will not lead you to feel the same way. Enjoy!
0
1536
posted 16 years ago by jrgp
This is an improvement on http://snipplr.com/view/11583/retrieve-url-params-with-jquery/
I found IE wasn't liking the results[1] when no param was set. This fixes that issue.
6
5876
posted 16 years ago by geekyjohn
I used the optimiser at www.cleancss.com but don't like their default 'high readability' template, so here is mine.
1
2127
posted 16 years ago by geekyjohn