This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def clever_girl | |
pending <<-EOVR | |
__ ______ | |
,^.__.>--"~~'_.--~_)~^. | |
_L^~ ~ (~ _.-~ \\. |\\ | |
CLEVER GIRL.... ,-~ __ __,^"/\\_A_/ /' \\ | |
/ ,-" "~~" _) \\ ~_,^ /\\ | |
// / ,-~\\ x~" \\._"-~ ~ _Y | |
Y' Y. (__.// / " , "\\_r ' ] | |
J-._l_>---r{ ~ \\__/ \\ _/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
require_relative 'RXTXcomm.jar' | |
import('gnu.io.CommPortIdentifier') | |
import('gnu.io.SerialPort') { 'GnuSerialPort' } | |
class JrSerialPort | |
NONE = GnuSerialPort::PARITY_NONE | |
def initialize name, baud, data, stop, parity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert_equal record.created_at, Time.now.ish | |
assert_equal bullet.velocity, 5.25.ish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This Rakefile provides convenience tasks for converting SVG documents to PDF on OS X using Inkscape. | |
# | |
# ASSUMES Inkscape IS INSTALLED IN /Applications (see below to modify this assumption). | |
# | |
# Examples: | |
# $ rake convert file=my_drawing.svg # => my_drawing.pdf | |
# $ rake all # => *.svg now accompanied by *.pdf | |
# | |
# David Crosby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PiecePipe::Pipeline.new. | |
source([{region: region}]). | |
step(FetchPowerPlantsByRegion). | |
step(FindWorstReactor). | |
step(DetermineStatusClass). | |
step(BuildPlantHealthSummary). | |
step(SortByRadiationLevelsDescending). | |
collect(:plant_health_summary). | |
to_enum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car | |
construct_with :chassis, :engine, :highway | |
end | |
car = Conject.default_object_context[:car] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patiently do | |
page.should have_content("Task Table") | |
page.should have_selector(".row:nth-child(1)", text: "Ride to work") | |
page.should have_selector(".row:nth-child(2)", text: "Write some code") | |
page.should have_selector(".row:nth-child(3)", text: "Go to The Meanwhile") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Generate Arduino code tags" | |
task :tags do | |
sh %{ctags -f tags.cpp `find . -name "*.cpp" -o -name "*.h"`} | |
sh %{ctags -f tags.pde --langmap=c++:.pde `find . -name "*.pde"`} | |
sh %{cat tags.cpp tags.pde > tags} | |
sh %{sort tags -o tags} | |
rm_f Dir["tags.*"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CrozSpecialAppDelegate.m | |
// CrozSpecial | |
// | |
// Created by David Crosby on 7/21/11. | |
// Copyright 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "CrozSpecialAppDelegate.h" | |
#import "CrozSpecialObjectionModule.h" |
NewerOlder