Skip to content

Instantly share code, notes, and snippets.

View aidenbenner's full-sized avatar

Aiden Benner aidenbenner

  • Canada
View GitHub Profile

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
#! /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
#!/bin/bash
## $1 - assignment number
## $2 - question_name
## $1 - dirname
does_dir_exist() {
if [[ -d "$1" ]]; then
echo "$1 already exists"
exit 1
set ruler
set relativenumber
set nocompatible
filetype indent plugin on
syntax on
" Auto read when a file is changed from outside"
set autoread
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
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;
}
}