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:

@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
window.addEvent 'domready', ->
$$('[toggle_id]').each(hookupIDToggler)
hookupIDToggler = (element) ->
respondToClickOrChange element
initialToggleIfChecked element
respondToClickOrChange = (element) ->
%% When the port is set to 9000:
[
{riak_kv, [
{js_max_vm_mem, 8},
{storage_backend, riak_kv_test_backend},
{js_thread_stack, 16},
{riak_kv_stat, true},
{pb_ip, "127.0.0.1"},