Skip to content

Instantly share code, notes, and snippets.

View bbuckley's full-sized avatar

Brian K. Buckley bbuckley

View GitHub Profile
@bbuckley
bbuckley / Main.elm
Created October 2, 2017 09:02 — forked from anonymous/Main.elm
pipeline
module Main exposing (main)
import Html exposing (Html, text)
import Ordering exposing (..)
a : List Int
a =
[ 2, 28, 4, -9 ]
@bbuckley
bbuckley / Main.elm
Created October 2, 2017 01:49 — forked from anonymous/Main.elm
pipeline
module Main exposing (main)
import Html exposing (Html, text)
import Ordering exposing (..)
a : List Int
a =
[ 2, 28, 6, 34, -9 ]
@bbuckley
bbuckley / Main.elm
Created October 2, 2017 00:29 — forked from anonymous/Main.elm
pipeline
module Main exposing (main)
import Html exposing (Html, text)
a =
[ 2, 28, 6, 34, -9 ]
tuple =
@bbuckley
bbuckley / Main.elm
Created October 2, 2017 00:17 — forked from anonymous/Main.elm
pipeline
module Main exposing (main)
import Html exposing (Html, text)
a =
[ 28, 6, 34, -99 ]
main : Html msg
@bbuckley
bbuckley / index.html
Created February 7, 2017 02:15 — forked from anonymous/index.html
React Calculator
<div id="wrapper">
<div id="app"></div>
</div>
#! ruby19
require 'date'
class EndlessEnum
include Enumerable
def initialize(x, method = :succ)
@x = x
@method = method
@bbuckley
bbuckley / album.rb
Created October 25, 2009 14:42 — forked from rklemme/album.rb
require 'yaml'
Track = Struct.new :title, :duration
# An Album represents an audio medium which has title,
# interpret, a pause duration between tracks and a list
# of individual tracks.
class Album
attr_reader :title, :interpret, :pause
:foo / :bar # => [:foo, :bar]
:foo / :bar / :fizz # => [:foo, :bar, :fizz]
:foo / :bar / :foo # => [:foo, :bar]
:foo / :bar / :fizz / :bizz # => [:foo, :bar, :fizz, :bizz]