Skip to content

Instantly share code, notes, and snippets.

View Samcfuchs's full-sized avatar
🦊

Sam Fuchs Samcfuchs

🦊
View GitHub Profile
@Samcfuchs
Samcfuchs / frc_teams.txt
Last active June 10, 2016 01:59
A list of FRC robotics teams' github accounts and repositories
We can assume that the repos and accounts are for GitHub, so list them like below, and have fun!
A good way to find repos is by searching "org.usfirst.frc" because that is in every robot.java.
/Team236/ :: Team organization
/Dicarlo236/ :: The account of one of our alumni with some code there.
/flamingchickens1540/ :: Team 1540 Flaming Chickens
/Team254/ :: Team 254 Cheesy Poofs
/Team1619/ :: Team 1619 Up-a-creek
/FRCTeam16/ :: Team 16 Bomb Squad
/WhitmoreLakeTroBots/ :: Team 3668 TroBots
@Samcfuchs
Samcfuchs / atom.txt
Last active March 9, 2016 22:45
Atom settings, updated automatically
Atom Settings
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
"behave mswin
" VUNDLE STUFF
filetype off " required
" Pretty
syntax enable

Keybase proof

I hereby claim:

  • I am samcfuchs on github.
  • I am samcfuchs (https://keybase.io/samcfuchs) on keybase.
  • I have a public key whose fingerprint is 94FE 3A9A C2F2 8DB9 7AAB D91C EE45 6FBD 2E0B 26A4

To claim this, I am signing this object:

#!/usr/bin/env bash
# This should build an environment for opencv code on the
# raspberry pi 2. Make sure that you have a working internet
# connection before running
cd ~
# Install python3
sudo apt-get install -y python3-dev
@Samcfuchs
Samcfuchs / opencv_install.sh
Last active August 15, 2017 15:24
An actual working opencv installer maybe
#!/user/bin/env bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y build-essential cmake pkg-config
sudo apt-get install -y libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install -y libxvidcore-dev libx264-dev
sudo apt-get install -y libgtk-3-dev
@Samcfuchs
Samcfuchs / .bash_aliases
Created August 24, 2017 17:40
unix configs
eval $(thefuck --alias)
alias quit=exit
ds() {
if test -t 1; then
exec 1>/dev/null
fi
if test -t 2; then
exec 2>/dev/null
public static Command getAutoFromSwitches() {
String gameData = DriverStation.getInstance().getGameSpecificMessage();
// Test bed is reading True when toggles switches are "off"
// Test bed 3-way toggle reads "True" on both Left and Right when in the middle
// Test bed 3-way Left toggle reads "False" and Right reads "True", when
// switched to the left
// Test bed 3-way Right toggle reads "False" and Left reads "True", when
// switched to the right
if (leftSide.get() && rightSide.get()) {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.