Skip to content

Instantly share code, notes, and snippets.

View tripl3dogdare's full-sized avatar

Katrina Scialdone tripl3dogdare

View GitHub Profile
@tripl3dogdare
tripl3dogdare / Gemfile
Last active June 22, 2019 00:58
AutoLeaf v0.0.2-ALPHA
source 'https://rubygems.org'
gem 'discordrb', git: 'https://github.com/meew0/discordrb'
gem 'hash_dot'
var canvas, board, score
function initGame() {
let canvasElem = document.getElementById("game")
canvas = canvasElem.getContext('2d')
canvasElem.setAttribute('height', 640)
canvasElem.setAttribute('width', 640)
setInterval(() => {
canvasElem.style.height = Math.min(Math.max(window.innerWidth/1.5, 260), Math.max(window.innerHeight/1.5, 360)) + "px"
@tripl3dogdare
tripl3dogdare / README.md
Last active July 15, 2018 21:52
Nevada Programming Language

This is a project I did a long time ago, on a road trip through Nevada. I wrote the code for this interpreter by hand in a tiny dollar store notebook with a pencil. The goal was to create an esoteric language that could be interpreted in as few LOC as possible, as few characters as possible, and still be as useful as possible. I gave myself half an hour to complete the task, and thus, Nevada was born.

  • Total LOC: 23
  • Total characters: 593 (not including trailing newline)
  • Total effectiveness: Yeah, don't bother trying to use this in production. It technically works though!
@tripl3dogdare
tripl3dogdare / snek.html
Last active September 8, 2017 01:08
Snek
<!--
I highly recommend viewing this on rawgit.com, so you can play the game instead of just seeing the code =)
http://rawgit.com/tripl3dogdare/bcdc855b45bfa8e8c0277da493adc865/raw/snek.html
-->
<head>
<title>Snek</title>
<link href="https://emojipedia-us.s3.amazonaws.com/thumbs/160/lg/35/snake_1f40d.png" rel="shortcut icon">
</head>
<body>
@tripl3dogdare
tripl3dogdare / dungeongen.py
Last active October 12, 2021 18:32
Random dungeon generator in Python
import random, math
# === Data === #
# Unminified, each string is a 3x3 grid of corridors and walls.
# I've set up 15 rooms, totalling all combinations of walls/corridors without corridors in the corners.
room_templates = [
" ■ ■ ■ ",
" ■■■ ",
" ■■ ■ ",