Skip to content

Instantly share code, notes, and snippets.

View rhoegg's full-sized avatar

Ryan Hoegg rhoegg

View GitHub Profile
output application/json
import fromBinary from dw::core::Numbers
var inputData = readUrl("classpath://inputs/day3.txt", "text/plain")
then (result) -> result splitBy "\n"
var lines = inputData map flatten($ scan /./)
var columns = sizeOf(lines[0]) - 1
@jdecode
jdecode / uncle-bob-expecting-professionalism.md
Last active March 31, 2024 16:45
Uncle Bob - Expecting professionalism
@jeffbowman
jeffbowman / input.xml
Last active August 22, 2018 15:57
DW Rudimentary unit testing example
<words>
<word>123</word>
<word>mom</word>
<word>12321</word>
<word>madam im adam</word>
<word>Mom</word>
<word>Madam I'm Adam</word>
<word>FooBar</word>
<word>Eva, Can I Stab Bats In A Cave?</word>
</words>
@dzuelke
dzuelke / gist:2587006
Created May 3, 2012 16:28
Add bandwidth limit, latency or packet loss to localhost connections on OS X
# First add a rule for all local traffic to port 80 to go into pipe 1
# 100 is the rule number which will be used for referencing the rule later
sudo ipfw add 100 pipe 1 ip from 127.0.0.1 to 127.0.0.1 dst-port http
# To display the rule use
# sudo ipfw show 100
# configure the settings of the pipe as you please
# 50kbit/s bandwidth
sudo ipfw pipe 1 config bw 50Kbit
# 200ms lag