Skip to content

Instantly share code, notes, and snippets.

Avatar

Lee T lee2sman

  • W/O/R/L/D/W/I/D/E
View GitHub Profile
@lee2sman
lee2sman / readme.txt
Created October 15, 2022 18:42
sleeping in the pandemic (PuzzleScript Script)
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@lee2sman
lee2sman / tsv-io.js
Created October 1, 2022 21:20
No library required. Imports a TSV (tab separated value) text file, then splits it to an array of lines, each split into an array separated by tabs.
View tsv-io.js
fetch("cal.tsv")
.then((response) => response.text())
.then((data) => {
//split text file by newline and tab
//thanks to stackoverflow https://stackoverflow.com/questions/47876718/splitting-text-file-by-newlines-and-tab-in-javascript
timetable_data = data.split("\n").map(function (ln) {
return ln.split("\t");
});
//returns array of timetable data by line, separated on each line by tab separated value
@lee2sman
lee2sman / index.html
Created October 1, 2022 20:24
trivial fengari example demonstrating manipulating the DOM with Lua
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fengari test</title>
<script src="fengari-web.js"></script>
</head>
<body>
<script src="main.lua" type="application/lua" async></script>
</body>
View css-grid-visually-example.html
<!DOCTYPE html>
<html>
<head>
<style>
.grid-container {
display: grid;
gap: 10px;
background-color: #2196F3;
padding: 10px;
grid:
View freewrite-jam.md

Freewrite: Web Jam Session

Today's Plan

  1. Welcome and Introductions
  2. Intro to Mixr
  3. HTML recap
  4. CSS styling
  5. Positioning
  6. Getting it online
  7. Web zine jam session
@lee2sman
lee2sman / excorp.json
Last active May 20, 2022 01:10
initial stations list for use with orllewin radio
View excorp.json
{
"defaultStations": [
{
"title": "New Sounds",
"website": "https://www.npr.org/podcasts/381443878/new-sounds",
"streamUrl": "http://q2stream.wqxr.org/q2-tunein.aac",
"logoUrl": "https://media.npr.org/images/podcasts/primary/icon_381443878-355b34df4de745149c75bc21dec389c3a823966d-s400-c85.webp"
},
{
"title": "WTRIP Radio",
View pig.bas
REM --- PIG Dice game test
REM --- Created: 2022-03-30
REM --- Created for TinyBASIC implemented by cyningstan/Damian Gareth Walker
REM --- Variable List
REM
REM R - A random number returned by the Random Number Generator
REM D - Current die roll
REM T - TOTAL SAVED
LET T=0
@lee2sman
lee2sman / readme.txt
Created March 6, 2022 03:17
Untitled PuzzleScript Script
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@lee2sman
lee2sman / readme.txt
Created January 11, 2022 08:04
Invertebrate Apartment and the Sword of Lamellipodia (PuzzleScript Script)
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@lee2sman
lee2sman / readme.txt
Created January 11, 2022 07:50
Invertebrate Apartment and the Sword of Lamellipodia {for bpseudopod} (PuzzleScript Script)
View readme.txt
Play this game by pasting the script in http://www.puzzlescript.net/editor.html