Example illustrating zoom and pan with a "rolling" Mercator projection. Drag left-right to rotate projection cylinder, and up-down to translate, clamped by max absolute latitude. Ensures projection always fits properly in viewbox.
The Mercator projection is available as d3.geo.mercator.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# Simple init.d script I wrote for starting/stopping mongod. | |
# Copyright (c) 2012 Robert Martin | |
# | |
# Filename: /etc/init.d/mongod | |
# (so rename it from mongod.sh to mongod) | |
# | |
### BEGIN INIT INFO | |
# Provides: mongod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Here's an example:</p> | |
<p class="gist">https://gist.github.com/2554645</p> | |
<p>Woah. Meta.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Deeper." | |
. bashception.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
└─┬ npm@1.1.18 | |
├── chownr@0.0.1 | |
├─┬ fstream@0.1.18 | |
│ └── mkdirp@0.3.1 <--- make derpy | |
├─┬ fstream-npm@0.0.6 | |
│ └─┬ fstream-ignore@0.0.5 | |
│ └─┬ minimatch@0.2.4 | |
│ └── lru-cache@1.0.6 | |
├── graceful-fs@1.1.8 | |
├── inherits@1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recommend to add aliases in `~/.bashrc` to use this scripts. For example: | |
alias cd='. ~/bin/cd-pushd.sh' | |
alias d='. ~/bin/dirs-good' | |
Causes, for example: | |
$ d 0 ~/bin | |
1 ~ | |
2 /srv/www/project/ ... /long-directory-name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8"> | |
<!-- author: Robert Martin --> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
margin: auto; | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import itertools | |
from collections import defaultdict | |
print 'Starting.' | |
key_words = ['PONIES', 'ACCEPT', 'SEARED', 'CAVIAR'] | |
#wordfile = "/usr/share/dict/words" |
OlderNewer