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| class AppDelegate | |
| def application(application, didFinishLaunchingWithOptions:launchOptions) | |
| alert = UIAlertView.new | |
| alert.message = t('start') | |
| alert.show | |
| true | |
| end | |
| def t(key) | |
| NSBundle.mainBundle.localizedStringForKey(key, value:nil, table:nil) |
| %%% Run with 'escript app_deps.erl' | |
| %%% Change the path in filelib:wildcard/1 as required to capture all | |
| %%% your dependencies. | |
| %%% | |
| %%% Rectangular nodes will represent library apps (no processes involved) | |
| %%% and the circular nodes will represent regular apps. An arrow going from | |
| %%% 'A -> B' means 'A depends on B'. | |
| %%% | |
| %%% This script depends on graphviz being present on the system. | |
| -module(app_deps). |
| <?php | |
| /** | |
| * Plugin Name: Disable XMLRPC | |
| * Version: 0.1 | |
| * Plugin URI: http://wpengineer.com/?p=2484 | |
| * Description: Disable XMLRPC server for WP >= v3.5 | |
| * Author: Lutz Schröer | |
| * Author URI: http://elektroelch.net/ | |
| */ |
| #!/bin/sh | |
| # Print four lines showing blocks of colors: 0-7 | 0-7bold | 8-15 | 8-15bold | |
| perl -CADS -lwe ' | |
| my $block = shift || (chr(0x2588) x 3); | |
| for (["", 0], ["1;", 0], ["", 8], ["1;", 8]) { | |
| my ($bold, $offset) = @$_; | |
| my @range = map $offset + $_, 0..7; | |
| printf "%s %-6s ", $bold ? "bold" : "norm", "$range[0]-$range[-1]"; | |
| print map("\e[${bold}38;5;${_}m$block", @range), "\e[0m" | |
| } |
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(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
| /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep -B6 bindings:.*: |
| #EXTM3U | |
| #EXTINF:-1,Digitally Imported - Ambient | |
| http://pub1.diforfree.org:8000/di_ambient_hi | |
| #EXTINF:-1,Digitally Imported - Big Room House | |
| http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
| #EXTINF:-1,Digitally Imported - Breaks | |
| http://pub1.diforfree.org:8000/di_breaks_hi |