add modeline
This commit is contained in:
parent
8b086b00fe
commit
059a6dcd5a
2
burn
2
burn
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
function select_next_item()
|
function select_next_item()
|
||||||
local sel_pos = 0
|
local sel_pos = 0
|
||||||
turtle.select(sel_pos + 1)
|
turtle.select(sel_pos + 1)
|
||||||
|
2
client
2
client
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
local hostname = "turtle" .. os.getComputerID()
|
local hostname = "turtle" .. os.getComputerID()
|
||||||
|
|
||||||
local sides = peripheral.getNames()
|
local sides = peripheral.getNames()
|
||||||
|
2
control
2
control
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
local sides = peripheral.getNames()
|
local sides = peripheral.getNames()
|
||||||
for i = 1, #sides do
|
for i = 1, #sides do
|
||||||
if peripheral.getType(sides[i]) == "modem" then
|
if peripheral.getType(sides[i]) == "modem" then
|
||||||
|
2
de_store
2
de_store
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
local hostname = "de_store" .. os.getComputerID()
|
local hostname = "de_store" .. os.getComputerID()
|
||||||
|
|
||||||
function dump(o)
|
function dump(o)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
local hostname = "pocket_computer" .. os.getComputerID()
|
local hostname = "pocket_computer" .. os.getComputerID()
|
||||||
|
|
||||||
redstone_toggle_id = 50
|
redstone_toggle_id = 50
|
||||||
|
1
get
1
get
@ -1,3 +1,4 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
-- utility to download files from the git repo
|
-- utility to download files from the git repo
|
||||||
|
|
||||||
local function printUsage()
|
local function printUsage()
|
||||||
|
2
react
2
react
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
--import utils for lamp rednet stuffs
|
--import utils for lamp rednet stuffs
|
||||||
require("git-scripts.utils")
|
require("git-scripts.utils")
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
dofile("git-scripts.utils")
|
dofile("git-scripts.utils")
|
||||||
|
|
||||||
LAMP_SIDE = "bottom"
|
LAMP_SIDE = "bottom"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
require("git-scripts.utils")
|
require("git-scripts.utils")
|
||||||
|
|
||||||
modemSide = utils.getSideOf("modem") --get side the modem is on
|
modemSide = utils.getSideOf("modem") --get side the modem is on
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
local hostname = "redstone_toggle" .. os.getComputerID()
|
local hostname = "redstone_toggle" .. os.getComputerID()
|
||||||
|
|
||||||
function dump(o)
|
function dump(o)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
require("git-scripts.utils")
|
require("git-scripts.utils")
|
||||||
|
|
||||||
local function printUsage()
|
local function printUsage()
|
||||||
|
2
startup
2
startup
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
local script = "script"
|
local script = "script"
|
||||||
|
|
||||||
shell.run("rm", script)
|
shell.run("rm", script)
|
||||||
|
2
utils
2
utils
@ -1,3 +1,5 @@
|
|||||||
|
-- vi: ft=lua
|
||||||
|
|
||||||
--lua module "utils" for random utilities
|
--lua module "utils" for random utilities
|
||||||
if utils then return end --avoid loading twice
|
if utils then return end --avoid loading twice
|
||||||
utils = {}
|
utils = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user