Skip to content

Instantly share code, notes, and snippets.

View evan-goode's full-sized avatar

Evan Goode evan-goode

View GitHub Profile
#!/usr/bin/env python3
import glob
import itertools
import os
import random
import subprocess
import sys
[_, *directories] = sys.argv
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);
@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

@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:

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)

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:"
#!/usr/bin/env sh
# SPDX-License-Identifier: CC0-1.0
#
# dump-launch-script-wrapper.sh
#
# This is a wrapper command for Prism Launcher. As a side effect to launching
# an instance, it dumps a shell script to $1 that launches the instance.
#
# Usage: In Prism/Fjord Launcher, either in Edit Instance -> Settings or global
# Settings, go to "Custom Commands" and then enter