Skip to content

Instantly share code, notes, and snippets.

View evan-goode's full-sized avatar

Evan Goode evan-goode

View GitHub Profile

Correct values for Project 5

Let me know if more debug values would be useful! egoode6@gatech.edu

Define the following function:

def print_mesh():
    print "Vertex table (maps corner num to vertex num):"
 print "corner num\tvertex num:"

Correct values for Project 3B

Let me know if more debug points or values would be useful! egoode6@gatech.edu

To print out instances of your classes, you will need to define a __repr__ method on the class. For example, for the Hit class:

  def __repr__(self):
      return "Hit(t=%f, intersection_point=%s, intersected_shape=%s, normal=%s)" % (self.t, self.intersection_point, self.t_shape, self.normal)
@evan-goode
evan-goode / fnaUpdate.sh
Last active October 12, 2022 13:28 — forked from flibitijibibo/fnaUpdate.sh
Use this to update a game's FNA installation!
#!/usr/bin/env bash
# FNA Update Script
# Written by Ethan "flibitijibibo" Lee
#
# Released under public domain.
# No warranty implied; use at your own risk.
#
# Run this script in the game's executable folder.
#
# This script requires the following programs:
@evan-goode
evan-goode / README.md
Last active January 5, 2022 00:49 — forked from qcasey/README.md
Headless A2DP Audio Streaming on Ubuntu / Debian for non-raspbian SBCs (ODROID, Orange Pi, Armbian, etc)

About

This gist will show how to setup a generic SBC Debian / Ubuntu install as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.

Motivation

This is forked from another gist specific to the Raspberry Pi on Stretch. A required package isn't in Ubuntu's repos, so in this gist we build it from scratch.

Tested to be working on Armbian/Ubuntu/Debian images of the Orange Pi Zero, ODROID XU4, ODROID N2, and Atomic Pi.

Prerequisites

import java.io.File;
import java.io.IOException;
class PrintTempDirectory {
public static void main(String[] args) {
try {
String parent = File.createTempFile("temp-file", "tmp").getParent();
System.out.println(parent);
} catch (IOException e) {
System.out.println(e);
#!/usr/bin/env python3
import glob
import itertools
import os
import random
import subprocess
import sys
[_, *directories] = sys.argv
DBG<1> lib/cache_mngt.c:271 nl_cache_mngt_register: Registered cache operations genl/family
polybar|info: Parsing config file: /home/evan/.config/polybar/config
polybar|trace: config_parser: Parsing /home/evan/.config/polybar/config
polybar|info: Enabling xresource manager
polybar|info: Environment var reference ${MONITOR} found (value=eDP-1)
polybar|info: Loaded monitor eDP-1 (2880x1800+0+0)
polybar|info: Found matching X resource "color0" (value=#0a0a0f)
polybar|info: Found matching X resource "color7" (value=#d6cdd8)
polybar|info: Bar geometry: 2880x60+0+0; Borders: 0,0,0,0
polybar|trace: bar: Attach X event sink
@evan-goode
evan-goode / script.babel
Created October 28, 2018 04:13
TSA Randomizer
const arrows = {
right: 'https://upload.wikimedia.org/wikipedia/commons/1/12/Right_arrow.svg',
left: 'https://upload.wikimedia.org/wikipedia/commons/1/18/Left_arrow.svg'
}
let timeout;
document.addEventListener('click', () => {
document.body.style.backgroundImage = `url(${Math.round(Math.random()) ? arrows.left : arrows.right})`;
clearTimeout(timeout);
timeout = setTimeout(() => {
@evan-goode
evan-goode / index.html
Created October 28, 2018 04:12
minecraft stronghold finder
<input placeholder="X #1" id="a-y">
<input placeholder="Z #1" id="a-x">
<input placeholder="˚ #1" id="a-angle">
<br><br>
<input placeholder="X #2" id="b-y">
<input placeholder="Z #2" id="b-x">
<input placeholder="˚ #2" id="b-angle">
<br><br>
<button id="go">go</button>
<pre id="result"></pre>