Skip to content

Instantly share code, notes, and snippets.

View GammaGames's full-sized avatar
🎃
👉😎👉 zoop

Jesse GammaGames

🎃
👉😎👉 zoop
View GitHub Profile
@GammaGames
GammaGames / ui.lua
Last active April 19, 2023 18:02
Playdate confirmation dialogue/input prompt with playout library (https://github.com/potch/playout)
local pd <const> = playdate
local gfx <const> = Graphics
local box = playout.box.new
local text = playout.text.new
local window = {
padding = 8,
border = 2,
borderRadius = 1,
@GammaGames
GammaGames / Paginate.lua
Last active January 2, 2024 22:24
Paginate helper library in Lua (for the Playdate)
Paginate = {}
function Paginate.read(filename)
local lines = {}
local file = File.open(filename, File.kFileRead)
local line = file:readline()
while line do
table.insert(lines, line)
line = file:readline()
end
@GammaGames
GammaGames / beehave_debug.gd
Last active August 11, 2022 05:26
debug helper for beehave
extends BeehaveNode
class_name BeehaveDebug, "../icons/tree.svg"
export(NodePath) var _beehave_tree
var beehave_tree : BeehaveRoot setget set_beehave_tree
export(Theme) var theme
export(Color) var tick_color := Color.whitesmoke
export(Color) var success_color := Color.forestgreen
@GammaGames
GammaGames / Grapple.gd
Created May 13, 2022 13:03
Simple “yanking” implementation of a grappling hook for VR in Godot
extends "res://Tools/UsableObject.gd"
var using = false
onready var ray = $Raycast
onready var hook = $Hook
onready var rope = $Rope
onready var laser = $Laser
onready var indicator = $Indicator
onready var initial_transform = transform
var hook_body = null
@GammaGames
GammaGames / cli.py
Last active January 28, 2022 21:54
Run click commands from a given string
import click
import shlex
from click.testing import CliRunner
help_text = ""
@click.group(invoke_without_command=True)
@click.pass_context
def cli(context):
@GammaGames
GammaGames / graph.py
Created January 24, 2022 20:58
Make an ugly graph
import networkx
import itertools
import random
import matplotlib.pyplot as plt
G = networkx.Graph()
points = list(itertools.permutations(list(range(30)), 2))
points = random.sample(points, 64)
@GammaGames
GammaGames / color.py
Last active December 21, 2021 22:40
Create colored text to copy/paste into other applications using python
import click
import webbrowser
import os
import random
import tempfile
from time import sleep
random.seed()
tmp = tempfile.NamedTemporaryFile()
@GammaGames
GammaGames / gamma.omp.json
Last active December 19, 2024 15:33
Personal Oh My Posh config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
@GammaGames
GammaGames / test.sh
Last active June 5, 2020 15:11
Pipe commands to docker container from host
#!/bin/sh
echo "foo"
# Pipe commands between patterns into container
sed -n "/^### SCRIPT START ###/,/^### SCRIPT END ###/p" "$0" | docker exec -i -e MESSAGE="bar" <id> /bin/bash -
echo "baz"
# Exit original script
exit

Basic

  1. Create a new repo (gp-pages-simple)
  2. Go to settings
  3. Choose a theme
  4. Edit your index.md file
  5. Commit to master branch
  6. Go to username.github.io/gp-pages-simple

http://jekyllthemes.org/