This is the translation of my blog posts. You can find them here (in Russian).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local m=component.proxy(component.list("modem")()) | |
m.open(2412) | |
local function respond(...) | |
local args=table.pack(...) | |
pcall(function() m.broadcast(2412, table.unpack(args)) end) | |
end | |
local function receive() | |
while true do | |
local evt,_,_,_,_,cmd=computer.pullSignal() | |
if evt=="modem_message" then return load(cmd) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package vazkii.vbot.gameshow; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NotEnoughMods Update Checker | |
# Made by meew0 | |
# | |
# Requires Ruby | |
# http://ruby-lang.org/ | |
# | |
# Download as NEMCheck.rb, go into a command prompt, | |
# navigate to the folder you downloaded it to and run | |
# ruby NEMCheck.rb | |
# Easy, right? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local err,res=xpcall(function() | |
end,debug.traceback) | |
if not err then | |
pcall(function() | |
res=res:gsub("\t"," ") | |
local file=io.open("system/crash.txt","w") | |
file:write(res) | |
file:close() | |
local gpu=component.gpu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
DFPWM implementation in Java | |
operates on 8-bit signed PCM data and little-endian DFPWM data | |
by Ben "GreaseMonkey" Russell, 2013 - Public Domain | |
NOTE, len is in bytes relative to DFPWM (len*8 PCM bytes) | |
also the main() function takes unsigned 8-bit data and converts it to suit | |
*/ |