Skip to content

Instantly share code, notes, and snippets.

View ArchdukeTim's full-sized avatar
🏠
Working from home

Tim Winters ArchdukeTim

🏠
Working from home
View GitHub Profile
import cv2
import csv
################
################
# For this part, I recommend cropping the image so you can really see things.
# Whatever you crop it to, save those coordinates
THREED_STARTX = 1420
THREED_ENDX = 2030
@ArchdukeTim
ArchdukeTim / Over
Created February 17, 2019 18:23
Overridable autonomous
class OverridableAutonomous(AutonomousStateMachine)
joystick: wpilib.Joystick
def on_iteration(self):
if self.joystick.getRawButton()
# change to teleop
class Autonomous(OverridableAutonomous):
@timed_state
...
@ArchdukeTim
ArchdukeTim / old_data.c
Created January 29, 2020 22:53
old data
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
void foo() {
volatile int i = 0;
volatile char x[] = "exploit";
printf("Doing something with %s\n", x);
}
@ArchdukeTim
ArchdukeTim / App.java
Created March 10, 2020 17:12
CS3733 Starter Code
package edu.wpi.teamname;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class App extends Application {