~jordanreger/cc

84188cacd5e6298d518cdd767046ddcd053b7152 — Jordan Reger 3 months ago
initial commit
2 files changed, 17 insertions(+), 0 deletions(-)

A coords.lua
A srht.lua
A  => coords.lua +6 -0
@@ 1,6 @@
while true do
    term.clear()
    term.setCursorPos(1, 1)
    print(gps.locate())
    os.sleep(0.25)
end
\ No newline at end of file

A  => srht.lua +11 -0
@@ 1,11 @@
local args = {...}

local response = http.get("https://paste.sr.ht/blob/" .. textutils.urlEncode(args[1]))

local file = fs.open(args[2] .. ".lua", "w")

file.write(response.readAll())

file.close()

print("Saved to " .. args[2] .. ".lua")
\ No newline at end of file