Skip to content

Instantly share code, notes, and snippets.

@androng
androng / tally-counter.lua
Last active October 30, 2022 12:27 — forked from tid-kijyun/tally-counter.lua
[OBS Script]Sets a text source to act as a tally counter when the source is active.
obs = obslua
source_name = ""
format_text = ""
start_number = 0
step_number = 0
now_count = 0
last_text = ""
activated = false
@androng
androng / webserver.agent.nut
Last active August 25, 2020 20:09 — forked from ElectricImpSampleCode/webserver.agent.nut
Example code showing how an agent can serve a dynamic web page
// Updated: 14 July 2020
// IMPORTS
#require "rocky.agent.lib.nut:3.0.0"
// CONSTANTS
const HTML_STRING = @"<!DOCTYPE html><html lang='en-US'><meta charset='UTF-8'>
<html>
<head>
<title>Environment Data</title>
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css' integrity='sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk' crossorigin='anonymous'>