I hereby claim:
- I am tfausak on github.
- I am taylorfausak (https://keybase.io/taylorfausak) on keybase.
- I have a public key whose fingerprint is 9891 6E7D C1ED FC03 DEF6 9A7C 153A 2CC8 FF94 90BF
To claim this, I am signing this object:
diff --git a/lib/active_interaction/base.rb b/lib/active_interaction/base.rb | |
index 64c70c3..9f5f61d 100644 | |
--- a/lib/active_interaction/base.rb | |
+++ b/lib/active_interaction/base.rb | |
@@ -168,7 +168,18 @@ module ActiveInteraction | |
attr_accessor filter.name | |
define_method("#{filter.name}?") { !public_send(filter.name).nil? } | |
- filter.default if filter.default? | |
+ initialize_default(filter) |
I hereby claim:
To claim this, I am signing this object:
$ http post :3000/tasks content='Do something!' created='2014-10-21T00:00:00Z' | |
{ | |
"content": "Do something!", | |
"created": "2014-10-21T00:00:00.000Z" | |
} | |
$ http :3000/tasks | |
[ | |
{ | |
"content": "Do something!", |
Introduction to Haskell | |
=== | |
*** Introduction *** | |
This document is in Literate Haskell. This means that you can run this file with | |
`ghci intro.lhs` and be able to run the functions defined in this file. | |
These 2 readings here explain very well why Haskell matters, and why programmers | |
like Haskell: |
# coding: utf-8 | |
require 'active_interaction' # 1.4.1 | |
require 'active_record' # 4.2.0 | |
require 'sqlite3' # 1.3.10 | |
ActiveRecord::Base.establish_connection( | |
adapter: 'sqlite3', database: ':memory:') | |
ActiveRecord::Schema.define do |
module Euler8 where -- http://projecteuler.net/problem=8 | |
import Data.Char (digitToInt, isDigit) | |
import Data.List (tails) | |
main :: IO () | |
main = getContents >>= print . euler8 | |
euler8 :: String -> Int | |
euler8 |
https://github.com/frege/frege
https://github.com/Frege/frege/wiki/Differences-between-Frege-and-Haskell
import Foo as Foo (Foo)
in particularmodule Foo where
#!/usr/bin/env python | |
from BeautifulSoup import BeautifulStoneSoup | |
from commands import getoutput | |
from os.path import expanduser, join | |
plist = '~/Library/Preferences/com.apple.desktop.plist' | |
xml = getoutput('plutil -convert xml1 -o - -- {0}'.format(plist)) | |
soup = BeautifulStoneSoup(xml) |
#!/usr/bin/env python | |
from BeautifulSoup import BeautifulSoup | |
from urllib2 import urlopen | |
from re import compile, match | |
from urllib import urlretrieve | |
from sys import argv, stdout | |
from os.path import isfile | |
from time import sleep |