Skip to content

Instantly share code, notes, and snippets.

@RobMayer
RobMayer / index.html
Last active February 26, 2026 13:51
Alt+Space Not Firing
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
@RobMayer
RobMayer / AutoUpdater.lua
Last active May 2, 2019 16:50
[TTS] Auto-Update utility
ScriptVersion = 4
ScriptClass = 'MyUtility'
function checkForUpdate()
WebRequest.get('yourgithubfile.json', function(res)
if (not(res.is_error)) then
local response = JSON.decode(res.text)
if (response[ScriptClass] > ScriptVersion) then
print('New Version ('..response[ScriptClass]..') of '..ScriptClass..' is available!')
--install update?
@RobMayer
RobMayer / ArgCoroutine.lua
Last active April 3, 2023 12:26
[TTS] Coroutine with passable arguments
function onload()
cooutside(params)
startLuaCoroutine(self, "normalcoroutine") --this is calling the regular way people do coroutines
end
--This is the usual way people do coroutines, does not allow params to be passed through
function normalcoroutine() --no params can be passed
waitTime(1)
print("1")
waitFrames(60)