Skip to content

Instantly share code, notes, and snippets.

# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#222
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@ecornell
ecornell / boxstarter.ps1
Last active September 19, 2017 17:04 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@ecornell
ecornell / fs.sh
Created February 28, 2017 01:02
Switch between VirtualBox and Fuse kext
#!/bin/bash
function status() {
kextstat | grep org.virtualbox.kext > /dev/null 2>&1 ;
vbox=$((1-$?))
kextstat | grep com.github.osxfuse > /dev/null 2>&1 ;
fuse=$((1-$?))
}
status
using System;
using System.Linq;
namespace ForumPrograms {
class Program {
static void Main(string[] args) {
Console.Write("Calculate the Scrabble point value of a word\n");
String input;
@ecornell
ecornell / uop-clean-up.css
Last active September 7, 2015 14:36
UoP Forum Cleanup - works with Chorme and the Stylish extension
.replyMessageBody, .replyMessageBody p, .replyMessageBody span, .replyMessageBody strong {
font-size: 15px !important;
line-height: 19px !important;
font-family: arial, helvetica, clean, sans-serif !important;
color: #333;
font-weight: normal !important;
}
.discussionthread-view-mod .aes-thread {
margin-left: 4px !important;
// Animal.java
public class Animal {
protected String type;
public Animal() {
type = "Unknown";
}
public String getType() {
/**
* Created by Elijah on 3/29/2015.
*/
public class ForEach {
public static void main(String[] args) {
String[] array = { "a", "b", "c"};
System.out.println("-- FOR LOOP --");
/**
* Created by ecornell on 3/27/2015.
*/
public class ForLoops {
public static void main(String[] args) {
// While - (loop possibly zero times)
int i=1;
while (i <= 3) { // condition is checked before inner block is ran
/**
* Created by ecornell on 3/25/2015.
*/
public class Condition {
public static void main(String[] args) {
char cChoice = 'a';
while (!(cChoice == 'Q' || cChoice == 'q')) {
import java.util.*;
/**
* Created by ecornell on 3/25/2015.
*/
public class Loops {
public static void main(String[] args) {