Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
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
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# let's say you have four sequences you want to print columnwise, like so: | |
19 59 97 44 | |
92 57 63 68 | |
66 21 69 90 | |
75 66 12 19 | |
# mock some data | |
import random as RND | |
gen_row = lambda: [ RND.randint(10, 99) for c in range(3) ] |
Added configuration parameter "fs.swift.service.<name>.trust-id". | |
When you use "fs.swift.service.<name>.trust-id" parameter, | |
you have to set "fs.swift.service.sic.auth.url" to Keystone V3 URL (http://keystone-host:5000/v3/auth/tokens) | |
Example: | |
$ hadoop fs -ls -Dfs.swift.service.sahara.auth.url=http://localhost:5000/v3/auth/tokens \ | |
-Dfs.swift.service.sahara.username=<swift-proxy-user> \ | |
-Dfs.swift.service.sahara.password=<swift-proxy-user-password> \ | |
-Dfs.swift.service.sahara.trust-id=<trust-id> \ | |
swift://<container-name>.sahara/ |
. |
# Enable Graphite | |
*.sink.graphite.class=org.apache.spark.metrics.sink.GraphiteSink | |
*.sink.graphite.host=<graphite host> | |
*.sink.graphite.port=<graphite port> | |
*.sink.graphite.period=10 | |
# Enable jvm source for instance master, worker, driver and executor | |
master.source.jvm.class=org.apache.spark.metrics.source.JvmSource | |
worker.source.jvm.class=org.apache.spark.metrics.source.JvmSource | |
driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource |
WHITESPACE ODDITY | |
by Paul Phillips, in eternal admiration of David Bowie, RIP | |
Bound Ctrl to Major mode | |
Bound Ctrl to Major mode | |
Read inputrc and set extdebug on | |
Bound Ctrl to Major mode (Ten, Nine, Eight, Seven, Six) | |
Connecting readline, options on (Five, Four, Three) | |
Check the syntax, may terminfo be with you (Two, One, Exec) |
package main | |
import ( | |
"crypto/tls" | |
"golang.org/x/crypto/acme/autocert" | |
"log" | |
"net" | |
"net/http" | |
) |
import requests | |
import zip | |
# Quandl file name | |
filename = 'wiki_prices.zip' | |
# Fetch the wiki_prices.zip file | |
r = requests.get( | |
'https://www.quandl.com/api/v3/datatables/WIKI/PRICES?qopts.export=true&api_key=YOUR-API-KEY') | |
resp = r.json() |