Skip to content

Instantly share code, notes, and snippets.

View joshvera's full-sized avatar
🔥
intros nightingale.

Josh Vera joshvera

🔥
intros nightingale.
View GitHub Profile
parseRank :: String -> Rank
parseRank string = case string of
"clubs" -> Club
"diamonds" -> Diamond
"spades" -> Spade
"hearts" -> Heart
_ -> Heart
parseNumber :: String -> Number
parseNumber string = case string of
module Deriv
import Control.Isomorphism
--
-- A type constructor df is the derivative of the type constructor f if for all x and e there exists d such
-- such that
--
-- f (x + e) ~ f x + e * (df x) + e^2 * d
--
//
// NSArray-Blocks.h
// Handy codebits
//
// If you want to keep block definitions terse, simple and dynamic, have no
// problems with the incompatible block pointer types and you don't mind
// compiler warnings about sending a message without matching signature,
// DO NOT IMPORT THIS FILE, seriously.
//
// Created by Sijawusz Pur Rahnama on 15/11/09.
#!/usr/bin/ruby
require 'rubygems'
ARGV.each do |url|
cloud_url = "#{url}"
cloud_url = cloud_url+"/content"
args = cloud_url
@content = %x[curl #{args}]
regexp = Regexp.new(/http:\/\/(?:[^"\\]|\\.)*/)