Skip to content

Instantly share code, notes, and snippets.

Avatar

Aiden Benner aidenbenner

  • Canada
View GitHub Profile
View arrayutils
package sorting;
public class ArrayUtils {
public static boolean isSorted(int[] in){
for(int i = 0; i<in.length-1; i++){
if(in[i+1] < in[i]){
return false;
}
}
View gist:f7ac54c4591a1662452c89d204575c26
package=org.usfirst.frc.team4334.robot
robot.class=${package}.Robot
simulation.world.file=/usr/share/frcsim/worlds/GearsBotDemo.world
userLibs=/home/chrx/wpilib/java/current/lib/navx_frc.jar;/home/chrx/wpilib/java/current/lib/Pathfinder-Java.jar
View gist:11976c4eb8e5db52d4b6a4a5a14499e1
set ruler
set relativenumber
set nocompatible
filetype indent plugin on
syntax on
" Auto read when a file is changed from outside"
set autoread
View init.sh
#!/bin/bash
## $1 - assignment number
## $2 - question_name
## $1 - dirname
does_dir_exist() {
if [[ -d "$1" ]]; then
echo "$1 already exists"
exit 1
View gist:a341aa0cdca30f576f6cc2fe5958fde1
#! /bin/bash
# downloads george files creates directory and inserts userid at the top of file
# usage bash downloadAsgn.sh [assignment_number]
ASSIGNMENT_NUMBER=$1
USER_ID="abenner" # Your user id here!
# pad with 0s
if [ $ASSIGNMENT_NUMBER -lt 10 ]
then
View keybase.md

Keybase proof

I hereby claim:

  • I am aidenbenner on github.
  • I am abenner (https://keybase.io/abenner) on keybase.
  • I have a public key ASD4qo9dffWBtm3vp_4yZpDhqTKP3VYAzboWmyVLjiaGdwo