I hereby claim:
- I am dandorman on github.
- I am dandorman (https://keybase.io/dandorman) on keybase.
- I have a public key ASD7AYlqEB-6ty7h79xKGLDMRKAeee586Fqhi7EPOZr7YAo
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
echo "Setting last_mod to before foo is created..." | |
last_mod=$(date -u +"%a, %d %b %Y %H:%M:%S GMT") | |
sleep 2 | |
touch foo | |
function rm_foo { |
{:paths ["."] | |
:deps {metasoarous/oz {:mvn/version "1.5.6"}}} |
braces = /\A([^(){}\[\]<>]*)(\((\g<1>\g<2>*\g<1>)\)|\{\g<3>\}|\[\g<3>\]|<\g<3>>)*\g<1>\z/ |
{:paths ["."]} |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env planck | |
(def vowel? #{\A \a \E \e \I \i \O \o \U \u}) | |
(defn reverse-vowels | |
"Takes in a string and reverses all the vowels in the string." | |
[in] | |
(let [idx->letter (zipmap (range) in) | |
idx->vowel (filter (fn [[_ letter]] (vowel? letter)) idx->letter) | |
[idxes vowels] ((juxt keys vals) idx->vowel) |
#!/usr/bin/env ruby | |
# Start up a Clojure process with a socket REPL: | |
# java -Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}" -cp clojure.jar clojure.main | |
require "socket" | |
s = TCPSocket.new "localhost", 5555 | |
Thread.new do |
require 'spec_helper' | |
describe FeaturePool do | |
it "creates a new instance given valid attributes" do | |
Fabricate :feature_pool | |
end | |
it "is not valid without a name" do | |
Fabricate.build(:feature_pool, :name => "").should_not be_valid | |
end |
// Write a function that returns the "leaves" of a nested map like the one below. | |
// You may assume values are either numbers, or another map. | |
{ | |
a: 1, | |
b: { | |
c: 2, | |
d: { | |
e: 3, | |
f: 4 |
#!/bin/sh | |
# | |
# Compile health-tracking javascript if necessary. | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |