Skip to content

Instantly share code, notes, and snippets.

View karlramberg's full-sized avatar

Karl Ramberg karlramberg

View GitHub Profile
@karlramberg
karlramberg / Battleship.java
Created January 31, 2018 00:08
Battleship (Old)
public class Battleship extends Ship{
String[] states = {"0", "0", "0", "0"};
public Battleship(String[] locations, int orient){
this.locations = locations;
name = "Battleship";
life = 4;
locations = new String[life];
}
public boolean isHit(String shot){
@karlramberg
karlramberg / Chart.java
Created January 31, 2018 00:11
Pedigree Creator (Old)
/**
* PEDIGREE CHART CREATOR by Karl Ramberg
* 12/4/15
* This class draws and organizes a pedigree chart.
*/
import java.awt.*;
import javax.swing.JFrame;
public class Chart extends Canvas{
@karlramberg
karlramberg / Calculator.pl
Created January 31, 2018 00:13
Perl Learning (Old)
use strict;
use warnings;
my $num1 = &getNum;
my $operation = &getOperator;
my $num2 = &getNum;
if($operation eq '+'){
&add;
}
@karlramberg
karlramberg / Music.c
Created January 31, 2018 00:14
Music (Jacklin Engineering Camp)
/*
* File: Switch.c
* Author: youngerr
*
* Created on June 1, 2015, 2:22 PM
*/
/***************************************************************
* The #pragma config statements set up the microcontroller's
* configuration registers. Changing these settings could make
* the PIC Simon Board inoperable. DO NOT CHANGE unless you
@karlramberg
karlramberg / .bashrc
Created June 5, 2019 21:01
various dotfiles
# if not running interactively, don't do anything
[[ $- != *i* ]] && return
# bash completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi