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
# | |
# 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
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
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
def clever_girl | |
pending <<-EOVR | |
__ ______ | |
,^.__.>--"~~'_.--~_)~^. | |
_L^~ ~ (~ _.-~ \\. |\\ | |
CLEVER GIRL.... ,-~ __ __,^"/\\_A_/ /' \\ | |
/ ,-" "~~" _) \\ ~_,^ /\\ | |
// / ,-~\\ x~" \\._"-~ ~ _Y | |
Y' Y. (__.// / " , "\\_r ' ] | |
J-._l_>---r{ ~ \\__/ \\ _/ |
OlderNewer