Skip to content

Instantly share code, notes, and snippets.

View nessamurmur's full-sized avatar

Nessa Jane Marin nessamurmur

View GitHub Profile
@nessamurmur
nessamurmur / digital_delivery.rb
Last active August 29, 2015 14:11
DCI w/ Variants
class DigitalDelivery
attr_reader :order
def self.call(order)
digtial_order = order.extend(DigitalOrder)
deliverer = new(digital_order)
# do stuff to get it delivered
deliverer
end
@nessamurmur
nessamurmur / gist:a0a4d12cc9367b861de2
Last active August 29, 2015 14:10
NashFP picks Nov 25th

Clojure Conj

All the talks are up on Youtube.

The keynote was fantastic.

Gorgeous book on the habitability of software and how the words alive, whole, comfortable, free, exact, egoless and eternal apply to our craft.

@nessamurmur
nessamurmur / 💩.rb
Created November 15, 2014 00:53
💩
throw 💩
# > NameError: undefined local variable or method `💩' for main:Object
💩 = "💩"
# = "💩"
throw 💩
# > ArgumentError: uncaught throw "💩"
@nessamurmur
nessamurmur / list.md
Last active November 23, 2015 22:42
Functional Reading List (Elixir)
@nessamurmur
nessamurmur / onename.txt
Created October 10, 2014 23:29
onename
Verifying that +niftyn8 is my Bitcoin username. https://onename.io/niftyn8
@nessamurmur
nessamurmur / keybase.md
Created October 8, 2014 19:25
keybase.md

Keybase proof

I hereby claim:

  • I am niftyn8 on github.
  • I am nifty (https://keybase.io/nifty) on keybase.
  • I have a public key whose fingerprint is E748 00DB 4F69 2879 DDC7 A260 24CB 0368 3834 CF8C

To claim this, I am signing this object:

description "This is an upstart job file for Immutant"
pre-start script
bash << "EOF"
mkdir -p /var/log/immutant
chown -R immutant /var/log/immutant
EOF
end script
# Ubuntu doesn't yet emit the network-services event:
#!/usr/bin/env bash
#
# JBoss standalone control script
#
# chkconfig: - 80 20
# description: JBoss AS Standalone
# processname: standalone
# pidfile: /var/run/jboss-as/jboss-as-standalone.pid
# config: /etc/jboss-as/jboss-as.conf
@nessamurmur
nessamurmur / head_tail.rb
Created July 6, 2014 10:11
Spliting head from tail
a = [1,2,3,4,5]
# => [1, 2, 3, 4, 5]
head, *tail = a
# => [1, 2, 3, 4, 5]
head
# => 1
tail
# => [2, 3, 4, 5]
@nessamurmur
nessamurmur / chess_piece.elm
Last active August 29, 2015 14:03
Updating Records in Elm
data Color = Black | White
data Piece = Pawn | Knight | Bishop | Rook | Queen | King
blackQueen = { color=Black, piece=Queen }
-- { color = Black, piece = Queen } : {color : Color, piece : Piece}
-- instantiating the record creates functions to return it's attributes:
.color blackQueen
-- Black : Color