This is a SCRIPT-8 cassette.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -x | |
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
MY_DIR=$(realpath "${MY_DIR}"/..) | |
GITHUB_WORKSPACE=${GITHUB_WORKSPACE:-$MY_DIR} | |
LOVEVERSION="11.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From http://lua.space/general/assert-usage-caveat | |
function xassert(a, ...) | |
if a then return a, ... end | |
local f = ... | |
if type(f) == "function" then | |
local args = {...} | |
table.remove(args, 1) | |
error(f(unpack(args)), 2) | |
else | |
error(f or "assertion failed!", 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
organization(login: "org-goes-here") { | |
samlIdentityProvider { | |
ssoUrl | |
externalIdentities(first: 100) { | |
edges { | |
node { | |
guid | |
samlIdentity { | |
nameId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Object = require 'lib.classic' | |
local function push (t, ...) | |
local pushed = select('#', ...) | |
for i = 1, pushed do | |
t[t.n + i] = select(i, ...) | |
end | |
return t.n + pushed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- A lightweight REXPaint .xp reader for LOVE2D. | |
-- By Vriska Serket / @arachonteur | |
-- Adapted by drhayes to not use self, make constants uppercase, | |
-- and updated to work with love 11.2. | |
-- From https://gist.github.com/vriska-serket/334bfcfa7dfe7265ddbe089e4a51e522 | |
-- | |
-- Output table looks like this. | |
--[[ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Brain = {} | |
local currentTime = 0 | |
local timeWaits = {} | |
local animWaits = {} | |
local yields = {} | |
local function yield() | |
local co = coroutine.running() | |
yields[co] = true | |
return coroutine.yield(co) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lume = require 'lib/lume' | |
local Brain = {} | |
local currentTime = 0 | |
local timeWaits = {} | |
local animWaits = {} | |
local function waitSeconds(secs) | |
local co = coroutine.running() | |
timeWaits[co] = currentTime + secs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ax, ay = math.cos(fov.angle), math.sin(fov.angle) | |
local gx, gy = math.cos(goalAngle), math.sin(goalAngle) | |
ax, ay = ax + gx * 5 * dt, ay + gy * 5 * dt | |
fov.angle = math.atan2(ay, ax) |