Add this as a snippet as described in http://docs.sublimetext.info/en/latest/extensibility/snippets.html
Also see https://gist.github.com/wolfgangmeyers/b169a86357493329035128856b842e66 for the same snippet in visual studio code.
running = true | |
modem = peripheral.wrap("back") | |
modem.open(1) | |
while true do | |
io.write(">") | |
command = io.read() | |
modem.transmit(0, 1, command) | |
local event, modemSide, senderChannel, |
-- test strip mine script | |
os.loadAPI("path") | |
local DEFAULT_HEIGHT = 5 | |
function isOverBedrock() | |
if turtle.detectDown() then | |
local itemName = turtle.inspectDown() | |
local i = string.find(itemName, ":") | |
itemName = string.sub(itemName, i + 1, string.len(itemName)) |
def sex(partners): | |
for p in partners: | |
assert p is not Nun |
ps aux | grep gunicorn | awk '{print $2}' | xargs kill -9 |
#!/usr/bin/env python | |
import time | |
def cachebust_script_src(line): | |
src_i = line.find("src=") | |
begin_src = src_i + 5 | |
end_src = line.find("\"", begin_src) | |
src_contents = line[begin_src:end_src] | |
parts = src_contents.split("?") | |
base_src = parts[0] |
java_binary( | |
name = "annotation_processors_ide", | |
create_executable = False, | |
runtime_deps = [ | |
// annotation processor dependencies here | |
], | |
) | |
java_binary( | |
name = "project_deps", |
# SSH tunnel for RDP access | |
ssh -i <key> -f -N -L3389:localhost:3389 <user>@<host> |
go test ./... -v | grep -c RUN |
Add this as a snippet as described in http://docs.sublimetext.info/en/latest/extensibility/snippets.html
Also see https://gist.github.com/wolfgangmeyers/b169a86357493329035128856b842e66 for the same snippet in visual studio code.
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |