I hereby claim:
- I am singpolyma on github.
- I am singpolyma (https://keybase.io/singpolyma) on keybase.
- I have a public key whose fingerprint is 59E6 82C3 EAF3 9A21 0CA7 3534 D11C 2911 CE51 9CDE
To claim this, I am signing this object:
module TDD (add, ArgumentError(..)) where | |
import Data.Either | |
import Data.Monoid | |
import qualified Data.Text as T | |
newtype ArgumentError = ArgumentError [Integer] deriving (Show, Eq) | |
instance Monoid ArgumentError where | |
mempty = ArgumentError [] |
module TDD (add, ArgumentError(..)) where | |
import Data.Foldable | |
import Data.Monoid | |
import Data.Semigroup (Semigroup(..)) | |
import Data.Validation (AccValidation(..)) | |
import Data.Semigroup.Applicative (Ap(..), getApp) | |
import qualified Data.Text as T | |
newtype ArgumentError = ArgumentError [Integer] deriving (Show, Eq) |
#!/bin/sh | |
IDX=$(( ( $(od -N1 -An -t dI /dev/urandom) % 10 ) + 1 )) | |
feh --bg-fill "$(curl -q https://unsplash.com/rss | grep -o '<url>[^<]*' | sed -ne "${IDX}p" | cut -d'>' -f2- | sed -e 's/&/\&/g')" |
tunnels: | |
rails: | |
subdomain: yourname | |
proto: | |
http: 3000 | |
ssh: | |
remote_port: 51690 | |
proto: | |
tcp: 22 |
class WhyFalsy | |
attr_reader :msg, :backtrace | |
def initialize(msg=nil) | |
@msg = msg | |
# Hack to get a backtrace | |
begin | |
raise | |
rescue Exception |
module Control.Error.UnexceptionalIO ( | |
UIO.UnexceptionalIO, | |
UIO.UIO, | |
fromIO, | |
runUnexceptionalIO, | |
runEitherIO, | |
fromIO', | |
UIO.unsafeFromIO, | |
syncIO | |
) where |
$('#thing form').submit(function(e) { | |
var $this = $(this); | |
e.preventDefault(); | |
$.ajax({ | |
type: this.method, | |
dataType: "JSON", | |
url: this.action, | |
data: $this.serialize(), | |
success: function() { |
@model = OpenStruct.new(name: 'steve', age: 12, contacts: [{name: 'steve', sekret: 6}], other: 'stuff', moar: 'things') | |
json @model, | |
:name, | |
:age, | |
oldness: :age, | |
friends: [nested(:name), from: :contacts], | |
contacts: nested('contact_partial', :model) | |
other: ->(c) { c + 'hai' }, | |
stuff: [->(c) { c + 'you' }, from: :moar] |
I hereby claim:
To claim this, I am signing this object:
module SMSRelayCommon | |
extend Blather::DSL | |
def self.log(msg) | |
t = Time.now | |
puts "LOG %d.%09d: %s" % [t.to_i, t.nsec, msg] | |
end | |
def self.log_raw(msg) | |
puts msg |