I hereby claim:
- I am itsmingjie on github.
- I am mingjie (https://keybase.io/mingjie) on keybase.
- I have a public key whose fingerprint is 76D3 091D CBDD FA1F E1BD 4C26 2E4F 3FAA 6AFA 312D
To claim this, I am signing this object:
/* | |
* This game made written for the excellent Dictator Davis by a pleb :-) | |
* BTW click the "raw" button on top left to get the naked code if you haven't already | |
* Comment below if anything is wrong! | |
* Enjoy | |
* Update 12/15/2016 Rewrote dying algorithm, fixed logical error. | |
*/ | |
import java.util.*; | |
public class DavisCells { |
//Easter Egg | |
var originaltitle = document.title; | |
var blurcount = 0; | |
window.onblur = function() { | |
if (blurcount == 0) | |
document.title = "¬_¬ Hey!"; | |
else if (blurcount == 1) | |
document.title = "°Д° Come back!"; | |
else if (blurcount == 2) | |
document.title = "。゜(`Д´)!!!゜。"; |
I hereby claim:
To claim this, I am signing this object:
import java.util.*; | |
Random rand = new Random(); | |
/* | |
* Variable Initialization | |
* We used universal variables here to | |
* avoid the confusion of constantly | |
* changing parameters. | |
*/ | |
int energyCount = 0, frames = 0, pScore = 0, eScore = 0, blackUntil = ‐1, | |
emergency = 5, bgR = 201, bgG = 214, bgB = 234; |
public class InsertionSort { | |
public static void sort(int[] array){ | |
int nextElement; | |
//examine one element at a time | |
//sorts subsets of elements. | |
//sorts the first 2, then the first 3, then the first 4.... |
/* | |
This bad boy uses the script from https://github.com/hodgesmr/FindGitHubEmail/ | |
to find the best guess of email addresses for a list of GitHub users in batch. | |
Known problem: GitHub throws an IP ban if you try to access its API for too many times. Usually | |
they'll ban you within 30 calls, but if you're lucky, who knows ;) Use a VPN. | |
Before running: grant executable permission to the findGitHubEmail script. | |
Source file format: plain text, one username per line. |
#!/bin/bash | |
# Pulls a homework/lab package from the course website, | |
# unpacks it, move it to the right place, and destroy the | |
# archive. | |
# Works with macOS/Linux only, unless you're in a "pseudo-Linux" | |
# environment on Windows. Make sure wget is installed first! | |
# After downloading, run the following command to grant execution | |
# permission to the script. |
#!/bin/bash | |
# Find the closest Makefile or makefile | |
current_dir=$(pwd) | |
# Search for Makefile recursively upwards up to max 10 levels | |
max_level=10 | |
while [[ $# -gt 0 ]]; do | |
key="$1" | |
case $key in |