Skip to content

Instantly share code, notes, and snippets.

View winnab's full-sized avatar

Winna Bridgewater winnab

View GitHub Profile
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
.group:after {
content: "";
var image = $('img')[0];
image.src = getRandomCookieImage();
var button = $('button')[0];
button.addEventListener('click', function(e){
hideImage();
});
function getRandomCookieImage() {
var imageArray = [
[
{ "keys": ["super+g"], "command": "find_all_under" },
{ "keys": ["super+k", "super+f"], "command": "reveal_in_side_bar"}
]
@winnab
winnab / single_batch_chocolate_chip_cookies.md
Last active September 12, 2015 10:56
Chocolate chip cookies

Chocolate Chip Cookies

Yield: 1 1/2 dozen 5-inch cookies.
Time: 45 minutes (for 1 6-cookie batch), plus at least 24 hours’ chilling

Ingredients:

Amount Ingredient
2 Large eggs
283.5 grams Unsalted butter
197.6 grams Plain White Flour
@winnab
winnab / LDF.md
Created September 19, 2015 10:28

Instructor email: [email protected]

Unix

a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, developed starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.

When UNIX was first introduced

  • Had huge mainframe with many things connected to it
  • For big companies and institutions
  • Needed to spread resources (multi-tasking)
  • Meant to be server operating system

Console

  • Background: Shell
  • Varieties: C-shell, K-shell, Bash-shell (Bourne-again shell)

Bash shell

  • Uses bash scripting language, which was added to make using Bash easier
  • Allows you to add if statements, etc

Bash was a very early scripting language. Better to learn Perl or Python, which are easier to use.

@winnab
winnab / gist:2c5608fe4034b2276f2a8664dbe9c9f0
Last active March 26, 2018 09:14
Gogland useful shortcuts

From another project

Navigation

  • Go to definition: cmd + B
  • Go to list of all method declarations: cmd + opt + B
  • Line up and down: cmd + shift + up or down arrow
  • Expansive text selection: option + up arrow (as many times as needed)
  • cmd+[: go back
  • cmd+]: go forward
  • alt+F7: find usages of the identifier under the cursor.
@winnab
winnab / odb_style.md
Created August 29, 2017 06:58
ODB style guide

Reference

Tests - Ginkgo Proverbs

Local Immutable Test Setup

  • Define test setup, such as CF and BOSH APIs, or mock service adapters as close to the test as possible
  • Don't modify a generic test setup for each context, create a new one
package main
import (
"fmt"
"log"
"os"
"os/signal"
"syscall"
)