Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Tse rytse

View GitHub Profile
@rytse
rytse / .tmux.conf
Last active Jul 27, 2018
My tmux configuration
View .tmux.conf
set -g default-terminal "screen-256color"
######################
### DESIGN CHANGES ###
######################
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
@rytse
rytse / .vimrc
Last active Jun 13, 2018
My vim config
View .vimrc
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'vim-scripts/indentpython.vim'
@rytse
rytse / network_visualizer.py
Created Aug 3, 2017
Python script for visualizing a few deep neural net variant topologies using python graph-tool
View network_visualizer.py
#!/usr/bin/env python
from graph_tool.all import *
# Vanilla
vg = Graph()
vil = [vg.add_vertex() for i in xrange(3)]
vd1 = [vg.add_vertex() for i in xrange(10)]
vd2 = [vg.add_vertex() for i in xrange(10)]
vol = [vg.add_vertex() for i in xrange(6)]
@rytse
rytse / PathfinderTester.java
Created Mar 16, 2017
Generates the left and right MPs for FRC Team 449 2017 robot's right side autonomous routine
View PathfinderTester.java
package net.tse.pathfindertest;
import jaci.pathfinder.Pathfinder;
import jaci.pathfinder.Trajectory;
import jaci.pathfinder.Waypoint;
import jaci.pathfinder.modifiers.TankModifier;
import java.io.FileWriter;
import java.io.IOException;
@rytse
rytse / vidhsvcontour.py
Last active Aug 1, 2018
Python OpenCV script for HSV filtering, finding contours, and displaying the contours
View vidhsvcontour.py
import cv2
import numpy as np
def nothing(n):
pass
# Contours w/ greatest number of points
# TODO max by area
def biggestContourI(contours):
maxVal = 0
@rytse
rytse / pidHelper.R
Last active Nov 12, 2016
R script to plot data used for tuning PID
View pidHelper.R
############################################################
# Script: pidHelper.R #
# Author: Ryan Tse #
# #
# This script is meant to assist PID tuning. It takes a #
# log file containing throttle/setpoint and encoder/ #
# measured data over time. It plots the setpoint and #
# measured value over time, the error over time, the #
# derivative (differences) of the error over time, and the #
# integral (cumulative sum) of the error over time. #
View keybase.md

Keybase proof

I hereby claim:

  • I am rytse on github.
  • I am rytse (https://keybase.io/rytse) on keybase.
  • I have a public key whose fingerprint is DFA3 7368 0621 E4F7 1FB7 6078 6CDA ED61 C183 FDED

To claim this, I am signing this object: