Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am duff on github.
  • I am duffomelia (https://keybase.io/duffomelia) on keybase.
  • I have a public key ASCu17pr9KdMF6sHMgQYFuZRrlMUewc8koD4oHLdn2q4Rgo

To claim this, I am signing this object:

# NOTE: To test asset pipeline in development set the following config.assets.* below in
# your config/environments/development.rb and then run:
#
# $ RAILS_ENV=development rake assets:precompile
#
# It is recommended you rm -rf public/assets and turn off these settings in development when
# you are finished or this may cause issues with assets in your local development environment
#
# config.assets.compress = true
# config.assets.compile = false

Operable Software

What does it mean to make software that doesn't just run, but is operable?

Good question! This represents some current thinking on the topic; there's tons of details in each of these things, so this list is expected to change and get more detailed over time.

Operable Software seems to involve (at a minimum) thinking a lot harder about and making sure there is a strategy (and code where appropriate) for:

  • Metrics
  • Logging
@duff
duff / floor.lua
Last active December 12, 2015 08:09
Minecraft turtle ops
term.clear()
term.setCursorPos(1, 1)
print("Enter floor length: ")
floor_length = read()
print("Enter floor width (even #): ")
floor_width = read()
fueltype = "1"
@duff
duff / bootstrap.lua
Last active December 12, 2015 08:08 — forked from ntalbott/bootstrap.lua
local url = "https://gist.github.com/duff/4741476/raw/gfs.lua"
local body = http.get(url).readAll()
local handle = fs.open("/gfs", "w")
handle.write(body)
handle.close()
@duff
duff / it.lua
Last active December 12, 2015 05:08
print("Hi there!")
print("Amazing")
turtle.digDown()
print("YES")
@duff
duff / readme
Created October 9, 2012 16:53
Skitch Image Url Grabber
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
clipboard = IO.popen('pbpaste', 'r+').read
def cleanup_img_src(img_src)
img_src.to_s.sub(/https/, 'http').sub(/\.png/, ".jpg")
end
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet