Skip to content

Instantly share code, notes, and snippets.

@annakrasner
annakrasner / mouse_workaround.gd
Created April 13, 2025 16:23
Godot 4.4 HTML5 exort mouse capture workaround - attach this script in a separate node.
extends Node
func _input(event):
if Input.is_action_just_pressed("mouse_capture"):
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
if Input.is_action_just_pressed("mouse_release"):
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
@annakrasner
annakrasner / Code.gs
Created February 19, 2025 03:54
Google Apps Script as an example to intake data from several Google Forms linked to one Google Sheet and place new rows at the top
function myFunction() {
}
//trigger this funciton via a Form Submit trigger
function handleResponses(e)
{
var sourceSheet = e.range.getSheet();
var isScript = sourceSheet.getSheetId() == SpreadsheetApp.getActive().getSheetByName("Scripts").getSheetId();
var isEvent = sourceSheet.getSheetId() == SpreadsheetApp.getActive().getSheetByName("Events").getSheetId();
@annakrasner
annakrasner / index.html
Last active January 31, 2025 23:28
InkyDoc: a google doc formatting Apps Script for the Ink Narrative Scripting Language
<!--
Change polling sidebar based from
//https://gist.github.com/tanaikech/f27d427f07b20ca9fedec21e643c4a3e
Inkjs runtime+ compiler from https://github.com/y-lohse/inkjs/releases/tag/v2.2.2
Ink js webplayer from https://yannick-lohse.fr/inkjs/
-->
<body>