Skip to content

Instantly share code, notes, and snippets.

View farleyknight's full-sized avatar
🎯
Focusing

Farley Knight farleyknight

🎯
Focusing
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyq42m6txbfjiOh85J3UMpwuDw8X7LLeoT8zKM4bugAcZd9cxRf4wOBukRbmNg4y793QbzrRuhNeohMj4EmpCiHzVcqN9wrAG96AMWINbC9z417PBNJN0A8LCE23RGLpMW5qyKcuklGr8n0l9DxLRulZSCBGpXKxdGRzPs07q+A+MTQ/1Gh6rd3UgHPlH/Gp6TuFSxsZSNK14wpb2bnUQPv6UzsHL3IFQsDNrQ55VrR8KC0Xx7T5NVH16a+XXia67hSZnq79II5BJHUbPi0cSUK1iuTFjIM9yfn5pNPi8Q5BgU1DHn6dVRMBjLYvprxHDF5dPm2xA5URZYAf0nyGbj farleyknight@Farleys-MacBook-Air.local
@farleyknight
farleyknight / .block
Last active May 8, 2018 03:09 — forked from mbostock/.block
Google Maps + D3
license: gpl-3.0
@farleyknight
farleyknight / .bashrc
Created February 25, 2016 15:32
.bashrc
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[35m\][$(uname)]\[\033[33;1m\]\w\[\033[m\]\n$ "
@farleyknight
farleyknight / .emacs
Last active February 16, 2016 16:26
Simple .emacs
;;;; Add a reasonable load path
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-to-list 'load-path "~/.emacs.d/lisp")
;;;; Save desktop session
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (desktop-save-mode 1)
@farleyknight
farleyknight / index.html
Created March 28, 2015 23:46
Sprite Animation Demo // source http://jsbin.com/gufehe
<!-- saved from url=(0144)http://www.williammalone.com/articles/create-html5-canvas-javascript-sprite-animation/downloads/sprite-animation-demo/sprite-animation-demo.html -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Sprite Animation Demo</title>
</head>
<body cz-shortcut-listen="true">
<canvas id="balloonAnimation" width="500" height="500" style="color: #2200ff; border: 1px solid black;"></canvas>
<script src="sprite-animation-demo.js"></script>
@farleyknight
farleyknight / gist:44a17bea0100d47991c3
Last active February 25, 2016 15:31
echo $PS1 (preferred)
# Includes Operating System name from `uname`
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[35m\][$(uname)]\[\033[33;1m\]\w\[\033[m\]\n$ "
/usr/lib/llvm-3.3/bin/llc .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Crystal.bc -o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Crystal.s
/usr/bin/gcc -c .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Crystal.s -o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Crystal.o
/usr/bin/gcc -o crystal .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/main.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Pointer40Int3241.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/MatchData.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/GC.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/LEBReader.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Pointer40UInt841.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/UInt64.o .crystal//home/farleyknight/src/crystal/src/compiler/crystal.cr/Int32.o .crystal//home/farleyknight/src/crystal/src/compile
/home/farleyknight/src/crystal/deps/llvm/lib/libLLVMBitWriter.a(BitcodeWriter.o): In function `llvm::WriteBitcodeToFile(llvm::Module const*, llvm::raw_ostream&)':
/home/aadgrand/tmp/LLVM-3.3/final/llvm.src/lib/Bitcode/Writer/BitcodeWriter.cpp:(.text+0x384): undefined reference to `std::string::_Rep::_S_empty_rep_storage'
/home/aadgrand/tmp/LLVM-3.3/final/llvm.src/lib/Bitcode/Writer/BitcodeWriter.cpp:(.text+0x3d4): undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char\
> const&)'
/home/farleyknight/src/crystal/deps/llvm/lib/libLLVMBitWriter.a(BitcodeWriter.o): In function `WriteModule(llvm::Module const*, llvm::BitstreamWriter&)':
/home/aadgrand/tmp/LLVM-3.3/final/llvm.src/lib/Bitcode/Writer/BitcodeWriter.cpp:(.text+0x4bc): undefined reference to `operator new(unsigned long)'
/home/aadgrand/tmp/LLVM-3.3/final/llvm.src/lib/Bitcode/Writer/BitcodeWriter.cpp:(.text+0x5fd): undefined reference to `operator new(unsigned long)'
/home/aadgrand/tmp/LLVM-3.3/final/llvm.src/lib/Bitcode/Writer/BitcodeW
@farleyknight
farleyknight / gist:4a7fd7ef1330ac9ca431
Created July 16, 2014 20:31
undefined method '+' for Nil
class A
# Delete this method and it compiles!
def initialize
end
def initialize(@x)
end
def inspect
if @x
@farleyknight
farleyknight / script.sh
Last active November 20, 2016 10:57
Hadoop on Digital Ocean
#
# First install Java 7 from Oracle
#
apt-get update
apt-get install python-software-properties
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java7-installer