I hereby claim:
- I am larryfox on github.
- I am lf (https://keybase.io/lf) on keybase.
- I have a public key whose fingerprint is 6222 C240 686D 89D2 A1EC 9750 DE0A 9991 8B8F 7E5D
To claim this, I am signing this object:
# Change these variables as necessary. | |
MAIN_PACKAGE_PATH := ./cmd/example | |
BINARY_NAME := example | |
# ==================================================================================== # | |
# HELPERS | |
# ==================================================================================== # | |
## help: print this help message | |
.PHONY: help |
#!/usr/bin/env bash | |
read -r -d '' JS <<JS | |
function run () { | |
var iTunes = Application("iTunes") | |
if (!iTunes.running()) { return JSON.stringify({ state: "closed" }) } | |
var state = iTunes.playerState() | |
if ('stopped' === state) { return JSON.stringify({ state: state }) } | |
File.open('licenses.txt', 'w+') do |io| | |
Dir.glob('.gem/**/*LICENSE*').map do |filename| | |
io.write("====================================\n") | |
io.write("#{filename}\n") | |
io.write("====================================\n\n") | |
io.write File.read(filename) | |
io.write("\n\n\n\n") | |
end | |
end |
I hereby claim:
To claim this, I am signing this object:
module EuclideanRhythm | |
export euclideanrhythm | |
typealias Bits BitArray{1} | |
one() = ~Bits(1) | |
zero() = Bits(1) | |
flatten(m::Array{Bits}) = reduce(vcat, m) | |
#!/usr/bin/env ruby | |
require 'pathname' | |
def run_cmd(*cmd) | |
io = IO.popen cmd.map(&:to_s) | |
io.read.chomp | |
end | |
class Sample | |
include Comparable |
use std::env; | |
fn main() { | |
let args: Vec<_> = env::args().skip(1).collect(); | |
let yes = args.connect(" "); | |
if yes.is_empty() { | |
loop { | |
println!("y"); | |
} |
// Found this lying around in my code folder from when I was | |
// first playing with Swift. Consider it public domain. | |
struct Graph<T: Hashable> { | |
let directed: Bool | |
var adj = Dictionary<T, [T]>() | |
init(directed d: Bool) { | |
directed = d | |
} |
typealias Edge (Int,Int) | |
typealias Vertex Int | |
function floyd_warshall(V::Set{Vertex}, E::Set{Edge}, C::Dict{Edge,Real}) | |
n = length(V) | |
A = fill(Inf, n, n) | |
N = cell(n, n) | |
for v in V | |
A[i,i] = 0 |
if isinteractive() | |
repl = Base.active_repl | |
repl.interface = Base.REPL.setup_interface(repl) | |
repl.interface.modes[1].first_prompt = \ | |
repl.interface.modes[1].prompt = " \U2234 " | |
end |