Skip to content

Instantly share code, notes, and snippets.

View Riggs333's full-sized avatar

Thomas Traude Riggs333

View GitHub Profile
@adamcrane
adamcrane / ClosestFinder
Last active April 22, 2022 12:53
Closest to Zero Kata
public class ClosestToZeroFinder {
public int findClosest(int...candidateValues) {
validate(candidateValues);
return findClosestFrom(candidateValues);
}
public void validate(int... candidateValues) {
if(isBlank(candidateValues)) {
throw new IllegalArgumentException();
@uarun
uarun / filetype.vim
Created August 3, 2011 19:32
Gradle syntax highlighting in vim
# ~/.vim/filetype.vim
au BufNewFile,BufRead *.gradle setf groovy
@0xadada
0xadada / README.md
Last active August 5, 2022 16:48
VIM movement, keyboard commands and shortcuts