I hereby claim:
- I am noffle on github.
- I am sww (https://keybase.io/sww) on keybase.
- I have a public key whose fingerprint is A222 27B6 103A F2E3 21B5 ACC6 7A6E AA3C 467F 1671
To claim this, I am signing this object:
# Less colours (mainly for man pages). | |
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking | |
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold | |
export LESS_TERMCAP_me=$'\E[0m' # end mode | |
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode | |
#export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box | |
export LESS_TERMCAP_ue=$'\E[0m' # end underline | |
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline |
float ang_inc = (cam->fov / (float)SCR_WIDTH); | |
float ang = -cam->fov / 2.0f - ang_inc; | |
for(int i=0; i < SCR_WIDTH; i++) | |
{ | |
ang += ang_inc; | |
float cos_corr = cos(ang*D2R); | |
float ovx = i - SCR_WIDTH/2; | |
float ovy = cam->projDist; | |
float mag = sqrt( ovx*ovx + ovy*ovy ); | |
ovx /= mag; ovy /= mag; |
I hereby claim:
To claim this, I am signing this object:
javascript:(function(){var data={'A':'๐','B':'๐ ','C':'๐ฎ','D':'๐','E':'๐','F':'๐','G':'๐','H':'๐ณ','I':'๐ด','J':'๐','K':'๐','L':'๐','M':'๐','N':'๐','O':'๐','P':'๐','Q':'๐','R':'๐ฝ','S':'๐','T':'๐','U':'๐','V':'๐','W':'๐','X':'๐','Y':'๐','Z':'๐ ','a':'๐','b':'๐','c':'๐ ','d':'๐ก','e':'๐ข','f':'๐ฃ','g':'๐ค','h':'๐ฅ','i':'๐ฆ','j':'๐ง','k':'๐จ','l':'๐ฉ','m':'๐ช','n':'๐ซ','o':'๐ฌ','p':'๐ญ','q':'๐ฎ','r':'๐ฏ','s':'๐ฐ','t':'๐ฑ','u':'๐ฒ','v':'๐ณ','w':'๐ด','x':'๐ต','y':'๐ถ','z':'๐ท'};var elms =document.getElementsByTagName('p');for(var i=0;i<elms.length;i++){if(typeof elms[i].innerHTML==='string'){elms[i].innerHTML=elms[i].innerHTML.replace(/<.*>/g,'').replace(/[A-Za-z]/g,function(s){return data[s];});}};})(); |
#!/bin/bash | |
JSON_URL="http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&nc=1397809837851&pid=hp" | |
URL=$(echo "http://www.bing.com"$(curl -s $JSON_URL | sed 's/.*"url":"\(.*\.jpg\)".*/\1/')) | |
FILENAME=$(mktemp --suffix=".jpg") | |
curl -sL $URL > $FILENAME | |
feh --bg-fill $FILENAME |
Pared down notes for my own use, derived from http://www.pixeljoint.com/forum/forum_posts.asp?TID=11299
Start with as few colours as possible; expand both shades and hues only as is necessary:
https://build.particle.io/signup
unpackage the board and plug it into your laptop
particle's "getting started" guide:
var hyperlog = require('./') | |
var level = require('level') | |
var through = require('through2') | |
var memdb = require('memdb') | |
var TopoSort = require('topo-sort'); | |
var dedupe = require('dedupe') | |
if (process.argv.length !== 4) { | |
console.error('USAGE: rebuild <LEVEL-DIR> <NEW-LEVEL-DIR>') | |
process.exit(1) |
function getOsmDocFromVersionId (osmdb, version, done) { | |
osmdb.get(version, function (err, node) { | |
if (err) done(err) | |
else done(null, getOsmDocFromHyperlogNode(node)) | |
}) | |
} | |
function getOsmDocFromHyperlogNode (node) { | |
if (node.value && node.v) return node.value.v // Returns the OSM document (has 'type', 'lat', 'lon', etc) | |
if (node.value && node.d) return null // This document is a deletion marker for an older document |