Skip to content

Instantly share code, notes, and snippets.

View kclejeune's full-sized avatar

Kennan LeJeune kclejeune

View GitHub Profile
@kclejeune
kclejeune / boolArrayListNGTest.java
Last active February 13, 2018 03:07
Modified testing files for Kolacinski EECS 233
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import org.testng.annotations.*;
import static org.testng.Assert.*;
@kclejeune
kclejeune / boolArrayListJUnit.java
Created February 15, 2018 02:47
EECS 233 JUnit equivalent of TestNG unit tests
import org.junit.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class boolArrayListJUnit
{
/*
* Set up a few Objects for use in test fixture
*/

Rankings

name minAvg
Max Park 5.9700
Feliks Zemdegs 6.0280
Patrick Ponce 6.3360
Seung Hyuk Nahm (남승혁) 6.5020
Philipp Weyer 6.6080
Kian Mansour 6.6280
Bill Wang 6.6620
Name ItsJustALittlePie
# def-file by KÃ¥re Krig
# PIECES: UBR UR UFR UFL UL UBL DFR DR DBR DBL DL
# DFL Fixed
Set CORNERS 12 0
Solved
CORNERS

Keybase proof

I hereby claim:

  • I am kclejeune on github.
  • I am kclejeune (https://keybase.io/kclejeune) on keybase.
  • I have a public key ASDi3-z8D-NMQl_XOGRfOCBZWj8PAidhVhHxwZNblkmvUQo

To claim this, I am signing this object:

#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM"
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Solver {
public static void main(String[] args) {
// quit if no input argument is provided
if (args.length == 0) {
System.out.println("No input file provided.");
@kclejeune
kclejeune / MySQL.md
Last active November 4, 2020 01:15
A Severely Mediocre Crash Course in MySQL

A Severely Mediocre Crash Course in MySQL

So you're in the WCA statistics group, and you want to learn how to make the nifty tables of mystery stats? Here are the tools you need to make it happen. If anything here doesn't work, google it or ask someone more qualified than myself.

Installing MySQL - macOS

I'd suggest using Homebrew if you don't already. To check if you have it and install accordingly, run:

if [ ! -e /usr/local/bin/brew ]; then 
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
@kclejeune
kclejeune / tmux.sh
Created July 30, 2021 04:06
tmux auto config for hpc over ssh
# if we're in an interactive ssh shell and NOT in a tmux shell, reconnect or create an ssh_tmux session
if [[ $- == *i* ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
# tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
tmux new-session -A -s ssh_tmux
fi