Let me know if more debug values would be useful! [email protected]
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 |
Let me know if more debug values would be useful! [email protected]
Define the following function:
def print_mesh():
print "Vertex table (maps corner num to vertex num):"
print "corner num\tvertex num:"
Let me know if more debug points or values would be useful! [email protected]
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)
| #!/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: |
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.
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.
| 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 |
| 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(() => { |
| <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> |