This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scn = new Scanner(System.in); | |
int[] rainfallPerMonth = new int[11]; // One month less than 12 because we use 0 | |
// Get total rainfall for all months | |
int totalRainfall = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scn = new Scanner(System.in); | |
int[] rainfallPerMonth = new int[12]; | |
String[] monthNames = { "January", "February", "March", "April", "May", "June", "July", | |
"August", "September","October", "November", "December" }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# cobpile | |
# author: blake bartenbach | |
# purpose: ease of command line compiling and running cobol programs | |
# | |
version="0.0.1" | |
red="\e[0;31m" | |
green="\e[032m" | |
reset="\e[0m" | |
NO_SOURCE_FILE=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# cobpile | |
# author: blake bartenbach | |
# purpose: ease of command line compiling and running cobol programs | |
# | |
version="0.0.1" | |
red="\e[0;31m" | |
green="\e[032m" | |
reset="\e[0m" | |
NO_SOURCE_FILE=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# upscrot - screenshot, upload, copy url to clipboard in one fell swoop :) | |
# author: blake bartenbach | |
# | |
img_name=$RANDOM | |
function main { | |
scrot -s "$img_name".png > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# upscrot - screenshot, upload, copy url to clipboard in one fell swoop :) | |
# author: blake bartenbach | |
# | |
img_name=$RANDOM | |
green="\e[0;32m" | |
red="\e[031m" | |
reset="\e[0m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################### | |
# Song of Storms! # | |
# Author: Blake Bartenbach # | |
##################################### | |
# Notes and octaves matched to frequencies | |
a3='220' | |
d3='146.832' | |
f3='174.614' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* pacmirror - uses reflector to update your pacman mirrorlist automagically! | |
author: blake bartenbach | |
version: 0.0.1 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
main() { | |
backup_mirrorlist(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Master file for snd_soc_msm tabla 2.0 sound card | |
# Lists all use case verbs | |
SectionUseCase."HiFi" { | |
Comment "Music playback use case" | |
SectionVerb | |
Name "HiFi" | |
EnableSequence | |
'SLIMBUS_0_RX Audio Mixer MultiMedia1':1:1 | |
EndSequence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (shield.getRemainingTime() == 1) { | |
for (Collector x : base.getCollectors()) { | |
x.collect(); | |
} | |
} |
OlderNewer