Skip to content

Instantly share code, notes, and snippets.

View alancnet's full-sized avatar
🧙
Making the magic happen

alancnet

🧙
Making the magic happen
View GitHub Profile
let sailorDivide pile =
let monkeyShare = 1
let preDividePile = pile - monkeyShare
let sailorShare = preDividePile / 5
if not (sailorShare * 5 = preDividePile) then -1
else preDividePile - sailorShare
let groupDivide pile =
let sailorShare = pile / 5
if not (sailorShare * 5 = pile) then -1
else 0
net stop wuauserv
rmdir %windir%\softwaredistribution /s /q
regsvr32 /s wuaueng.dll
regsvr32 /s wuaueng1.dll
regsvr32 /s atl.dll
regsvr32 /s wups.dll
regsvr32 /s wups2.dll
regsvr32 /s wuweb.dll
regsvr32 /s wucltui.dll
net start wuauserv
// http://alexnisnevich.github.io/untrusted/
// Level 13
var dirs = ['up', 'right', 'down', 'left']
if (!me.d) me.d = 0;
function dir(o) { return dirs[(me.d + o)%4]; }
var canMove = false;
var changeDir = 0;
if (me.canMove(dir(1))) {