Skip to content

Instantly share code, notes, and snippets.

View treeherder's full-sized avatar

Brendan Reddy-Best treeherder

View GitHub Profile
@treeherder
treeherder / pub_menu.md
Last active May 11, 2017 18:52
menu document for meeting

New Limited Menu

===========================

Sausages


  • Italian Sausages with peppers and onions
  • Bratwurst with onions and sauerkraut
  • Hot Dog
    • chili, chorizo, grinder
    • turkey/veggie dog ?
  • jumbo and bun-sized?
@treeherder
treeherder / quests.txt
Created May 24, 2016 19:06
tree of savior questing guide
[C]-City [D]-Dungeon [F]-Field
0 [C] Fedimian Fedimian Territory
0 [C] Klaipeda Klaipeda Region
0 [D] Mullers Passage Namott Sanctum
0 [C] Orsha Royal Territory
0 [D] Passage of the Recluse Fedimian Territory
0 [D] Underground Passage 4 Kaliss Province
0 [C] 살러스 수녀원 Namott Sanctum
1 [F] Lemprasa Pond Fedimian Territory
@treeherder
treeherder / get_g.lua
Last active October 4, 2021 10:31
print to file all global hooks
-- print the key-value pairs
function get_g(gbls)
for key,value in pairs(gbls)
do w2f(key)
end
end
function w2f(inp)
local file = io.open("../addons/tests/globals_test.txt", "a+")
file:write(inp.. "\r\n")
@treeherder
treeherder / fuckfish.py
Last active January 11, 2016 09:55
BULLSHIT ASS GARBAGE FUCKING STUPID SHIT
#!/usr/bin/env python
from io import StringIO
from Crypto.Cipher import Blowfish
import base64
encoded_encryption_key = "e5HcOjmDQALG4ycjOsCHPrKWjKAMhXNC"
encrypted_key = base64.b64decode(encoded_encryption_key)
game_id ="2064739749"
@treeherder
treeherder / hexapod.ino
Created January 2, 2016 05:51
just a simple sketch to cludge together all of the various components of the hexapod
#include <Wire.h>
#include <Adafruit_BMP085.h>
#include "MPU6050.h"
#include "HMC5883L.h"
#include <Adafruit_PWMServoDriver.h>
// called this way, it uses the default address 0x40
Adafruit_PWMServoDriver pwm1 = Adafruit_PWMServoDriver();
// you can also call it with a different address you want
Adafruit_PWMServoDriver pwm2 = Adafruit_PWMServoDriver(0x41);
@treeherder
treeherder / poses.h
Last active December 6, 2015 22:50
some scripts for turret firmware
#ifndef POSES
#define POSES
#include <avr/pgmspace.h>
PROGMEM prog_uint16_t Center[] = {8, 512, 512, 512, 512, 512, 512, 512, 512};
PROGMEM prog_uint16_t Home[] = {8, 512, 380, 644, 340, 684, 561, 512, 512};
#endif
@treeherder
treeherder / eyes.py
Last active December 1, 2015 05:38
attempt to display two camera feeds simultaneously
#!/usr/bin/env python import cv2
import numpy as np
import cv2
import multiprocessing as mp
class Eye(object):
def __init__(self, n):
self.n = n
self.cap = cv2.VideoCapture(self.n)
@treeherder
treeherder / seriesone.ini
Created November 24, 2015 08:49
slic3r config
# generated by Slic3r 1.2.10-dev on Wed Nov 11 19:48:31 2015
avoid_crossing_perimeters = 1
bed_shape = -5x-5,300x-5,300x300,-5x300
bed_temperature = 0
before_layer_gcode =
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
@treeherder
treeherder / curler.c
Last active November 22, 2015 01:12
using libcurl to achieve something like "curl ADDRESS --data-binary @-FILE" because it's more portable than using an OS call, and we need a reliable method of uploading, and soon downloading, files of various sizes and descriptions. long term goal is to make this part of the updater toolchain for 3d printer firmware. For now, it will live here a…
#include <curl/curl.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <errno.h>
@treeherder
treeherder / logitech_f350_dual_action.py
Last active September 9, 2015 12:51
little bit of testing for logitech controller in pygame.
import pygame
pygame.init()
p1 = pygame.joystick.Joystick(0)
p1.init()
clock = pygame.time.Clock()
#logitech f350 in X mode
# -- location |axis| neg | pos|
# 0 -> left X | left | right