Skip to content

Instantly share code, notes, and snippets.

View clupasq's full-sized avatar

Cristian Lupașcu clupasq

View GitHub Profile
p = self.spawnpos()
str="THIS IS THE MESSAGE!"
isx = 1
isz = 0
dir = -1
for i = 1, #str do
local c = str:sub(i,i)
@clupasq
clupasq / compute_exercise.py
Created January 16, 2021 13:45
[RO][4kids] Python script to only run an app if some equations are first solved.
# Usage:
#
# Run `some_app` only if 10 math puzzles are solved first:
# python3 compute_exercise.py && some_app
#
# Only 7 puzzles instead of the default 10:
# python3 compute_exercise.py 7 && some_app
#
# Only 5 puzzles, but force exit after 10min:
# python3 compute_exercise.py 5 && timeout 600 some_app