Skip to content

Instantly share code, notes, and snippets.

View corneldm's full-sized avatar

David Cornelius corneldm

  • Challonge
  • Indianapolis, IN
View GitHub Profile
@corneldm
corneldm / setup_8.x_fork.sh
Created March 26, 2019 19:07
Node setup_8.x
#!/bin/bash
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script to install the NodeSource Node.js 8.x LTS Carbon repo onto a
# Debian or Ubuntu system.
#
# Run as root or insert `sudo -E` before `bash`:
#
# Usage: (bracket followed by a comma-separated list of names)
# hubot bracket Joe, Fred, Tony, Eddy
https = require('https')
# uses challonge to create a bracket with the given names
module.exports = (robot) ->
robot.respond /bracket\s+(.+?)$/i, (msg) ->
names = msg.match[1]
return unless names
@corneldm
corneldm / ProgrammingExercise4_1.java
Last active December 26, 2015 10:59
Solutions for Programming Exercise 4.1
import java.util.Scanner;
public class ProgrammingExercise4_1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int positives = 0, negatives = 0, total = 0;
// same as:
// int positives = 0;
// int negatives = 0;