Skip to content

Instantly share code, notes, and snippets.

View dkowis's full-sized avatar
☢️

David Kowis dkowis

☢️
View GitHub Profile
@dkowis
dkowis / testInventory.lua
Last active August 1, 2017 00:21
Learning some OpenComputers API
local component = require("component");
local sides = require("sides");
local ica = component.inventory_controller.address;
print("ICA: " .. ica)
local proxy = component.proxy(ica);
--Lets try to find our inventories
@dkowis
dkowis / gradlew.fish
Last active June 25, 2018 16:35
gradlew search function for fish shell
function gradlew
set _dir (pwd)
set _lastdir
# need to break when we reach root, or some other known parent.
# Don't skip the first time through.
while test -z $_lastdir; or test (realpath $_dir) != (realpath $_lastdir)
set _cmd "$_dir/gradlew"
if test -e "$_cmd"
eval "$_cmd" "$argv"