Skip to content

Instantly share code, notes, and snippets.

@ecornell
ecornell / firefox-bm-ah.css
Last active February 21, 2024 20:03
Firefox - Auto-hide Bookmark Bar | Works with Stylish
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#PersonalToolbar {
visibility: collapse !important;
opacity: 0.01;
-moz-transition: visibility 0.5s, opacity 0.5s ease !important;
position: fixed !important;
width: 100% !important;
padding: 3px 3px 3px 3px !important;
z-index: 10;
@ecornell
ecornell / gist:5645380
Last active December 17, 2015 17:19
Evernote: AppleScript to email all of the notes in a set notebook
tell application "Evernote"
activate
set matches to find notes "notebook:NameOfNotebook -tag:ExportedOneNote"
repeat with n in matches
set nw to open note window with n
@ecornell
ecornell / keybase.md
Last active August 29, 2015 14:07
keybase.md

Keybase proof

I hereby claim:

  • I am ecornell on github.
  • I am ecornell (https://keybase.io/ecornell) on keybase.
  • I have a public key whose fingerprint is F898 FB79 BAE8 16A7 ED94 A1C8 9818 D8BD 9D4C 8FF3

To claim this, I am signing this object:

# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
public class Animal
{
// Create the public Field
public final static String Class = "Animal";
// Having a private field
private String foxColor;
// creating a default constructor
public Animal() {
import java.util.*;
/**
* Created by ecornell on 3/25/2015.
*/
public class Loops {
public static void main(String[] args) {
/**
* Created by ecornell on 3/25/2015.
*/
public class Condition {
public static void main(String[] args) {
char cChoice = 'a';
while (!(cChoice == 'Q' || cChoice == 'q')) {
/**
* 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 Elijah on 3/29/2015.
*/
public class ForEach {
public static void main(String[] args) {
String[] array = { "a", "b", "c"};
System.out.println("-- FOR LOOP --");
// Animal.java
public class Animal {
protected String type;
public Animal() {
type = "Unknown";
}
public String getType() {