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
#Mac Backup your Raspberry Pi | |
#Backup remotely (requires public key exchange for pi account): | |
ssh pi@raspberry sudo dd if=/dev/mmcblk0 | gzip -c > raspberry.img.gz | |
#Recover (requires locally mounted disk device rdisk1): | |
gzip -dc /path/to/raspberry.img.gz | sudo dd of=/dev/rdisk1 bs=1m |
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
(defn find-distance | |
"Pthagorian distance. Functions x and y are just wrappers around a two-item seq." | |
[a-coord b-coord] | |
(let [xsize (- (x a-coord) (x b-coord)) | |
ysize (- (y a-coord) (y b-coord))] | |
(sqrt (+ (* xsize xsize) (* ysize ysize))))) | |
(defn find-farthest-point | |
"Takes a point 'pt' (a two-item seq of numbers) and a seq of points and returns | |
the farthest point away from 'pt' in 'pt-list'" |
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
brew --config | |
HOMEBREW_VERSION: 0.9 | |
HEAD: fc0b4b636a366db1d66db216db380d9c2a4c7a82 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: dual-core 64-bit penryn | |
OS X: 10.7.4 | |
Kernel Architecture: x86_64 | |
Xcode: 4.3.3, CLT 4.3.0.0.1.1249367152 | |
GCC-4.0: N/A |
NewerOlder