Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
|// Just before switching jobs:|
|// Add one of these.|
|// Preferably into the same commit where you do a large merge.|
|// This started as a tweet with a joke of "C++ pro-tip: #define private public",|
|// and then it quickly escalated into more and more evil suggestions.|
|// I've tried to capture interesting suggestions here.|
|// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,|
|// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,|
|This function saved my life.|
|found on: http://www.sitepoint.com/forums//showthread.php?t=438748|
|It takes an object, and when all else if/else/recursive functions fail to convert the object into an associative array, this one goes for the kill. Who would'a thunk it?!|
|$array = json_decode(json_encode($object), true);|
There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.
Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.
I think that longer-term, separability has more benefits from a maintenance and
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
|# LVDB - LLOOGG Memory DB|
|# Copyriht (C) 2009 Salvatore Sanfilippo <firstname.lastname@example.org>|
|# All Rights Reserved|
|# - cron with cleanup of timedout clients, automatic dump|
|# - the dump should use array startsearch to write it line by line|
|# and may just use gets to read element by element and load the whole state.|
|# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.|
|# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!|