Skip to content

Instantly share code, notes, and snippets.

View brandenbyers's full-sized avatar
💭
🤯

Branden Byers brandenbyers

💭
🤯
View GitHub Profile
@brandenbyers
brandenbyers / OverlappingCardShadows.swift
Created March 3, 2020 06:43
Overlapping card shadows in SwiftUI
// Inspired by LearnSketch.com's video: https://youtu.be/xVREimb1Nnw
import SwiftUI
struct ContentView: View {
var body: some View {
ZStack {
Rectangle()
.frame(maxWidth: .infinity, maxHeight: .infinity)
.foregroundColor(Color(UIColor(red: 0.89, green: 0.92, blue: 0.93, alpha: 1.00)))
@brandenbyers
brandenbyers / test.js
Created August 12, 2019 03:27
Testing failures and expectations for recipe parsing test lesson
const expect = require('chai').expect
let Ing = {
raw: '',
prefix: '',
quantity: 0,
quantityRangeEnd: 0,
unit: '',
name: '',
comment: '',
@brandenbyers
brandenbyers / recipe-testing.md
Created August 12, 2019 03:26
Testing a recipe ingredient parser

Testing a recipe ingredient parser

The following lesson will introduce you to the basics of unit testing. More importantly, it will show you how to think like a tester.

Testing Infrastructure

We will be using Mocha and Chai. Mocha is the test runner; a framework for taking your test code and running the tests automatically. Chai is the assertion library; the syntax that you will use to write your tests.

Chai comes in three flavors: assert, should, and expect. For this lesson we will be using expect; an expressive and super readible style.

Keybase proof

I hereby claim:

  • I am brandenbyers on github.
  • I am brandenbyers (https://keybase.io/brandenbyers) on keybase.
  • I have a public key whose fingerprint is D366 4E31 6442 1BF2 C970 2AA8 A79F 0B1B 5949 B63E

To claim this, I am signing this object:

@brandenbyers
brandenbyers / emoji-bomb.md
Created May 16, 2016 15:57
Emoji Bomb (for testing)

😲 👷🍬😓🚍🍥🎹👹🍘🐏🍩🚡🐹🚃🐒😴🚾👲🙆🐱🐷😣😵🐬🐲😧😝🚦🍯😹🍲🐗🍟😩🎻😿🍚🚓🍢🎬🍜🍦🚉😊👩🙉🚚🙃🚮😋🎱😽🎥🚤😶🙍🍫😡🐘😗👱🚺🍨🚈🐮😇👪🚌🏆🚝👸🐛🐫🐡🚨😟🙏💆😼🎣😄😦🚬😯💂🐞🚛🚸🏈🚢🐙👧🚫🐤🐨🎭😤😭🐴🚧🐢🍙😍🏉🙇👻😐🍰🚗🐻🚼😒🎪👿👵🚎🎶🚟🙄👳👾🐩😻😁🎫🐥🐌🚰😸🚿😙🚙🍕🎨👴🍞🙋🐼😘🐶🚩😳🙌🎴😅😚👫😑🍤🐑🙅🙀🐜😷🍗🍭🎧🚠😬👺🐓🚋🐕🎾🍛💅🚁💇🚕🐰💁😰👨🐽😜😞😂🚳😌😎😆😥🚑😢🏁🍧👮🏄🍔🐯🚲🚪🎵🙎👼😉😃🚥🍪🐖🎯🚂🚇🚆👰🚀🐚🐝🚄🐍🏇🚐👽🚴🍱😮💄🎿😾💃😔🎸😕🚜🚯🍠🎳🐐🎼🐪🚏🐵🙊🎽🚒🚹🚊😱🍮😈🚵🐸🚔👯🍡🚘😺👦🚖🐎🐠🐺🐭😲 👷🍬😓🚍🍥🎹👹🍘🐏🍩🚡🐹🚃🐒😴🚾👲🙆🐱🐷😣😵🐬🐲😧😝🚦🍯😹🍲🐗🍟😩🎻😿🍚🚓🍢🎬🍜🍦🚉😊👩🙉🚚🙃🚮😋🎱😽🎥🚤😶🙍🍫😡🐘😗👱🚺🍨🚈🐮😇👪🚌🏆🚝👸🐛🐫🐡🚨😟🙏💆😼🎣😄😦🚬😯💂🐞🚛🚸🏈🚢🐙👧🚫🐤🐨🎭😤😭🐴🚧🐢🍙😍🏉🙇👻😐🍰🚗🐻🚼😒🎪👿👵🚎🎶🚟🙄👳👾🐩😻😁🎫🐥🐌🚰😸🚿😙🚙🍕🎨👴🍞🙋🐼😘🐶🚩😳🙌🎴😅😚👫😑🍤🐑🙅🙀🐜😷🍗🍭🎧🚠😬👺🐓🚋🐕🎾🍛💅🚁💇🚕🐰💁😰👨🐽😜😞😂🚳😌😎😆😥🚑😢🏁🍧👮🏄🍔🐯🚲🚪🎵🙎👼😉😃🚥🍪🐖🎯🚂🚇🚆👰🚀🐚🐝🚄🐍🏇🚐👽🚴🍱😮💄🎿😾💃😔🎸😕🚜🚯🍠🎳🐐🎼🐪🚏🐵🙊🎽🚒🚹🚊😱🍮😈🚵🐸🚔👯🍡🚘😺👦🚖🐎🐠🐺🐭😲 👷🍬😓🚍🍥🎹👹🍘🐏🍩🚡🐹🚃🐒😴🚾👲🙆🐱🐷😣😵🐬🐲😧😝🚦🍯😹🍲🐗🍟😩🎻😿🍚🚓🍢🎬🍜🍦🚉😊👩🙉🚚🙃🚮😋🎱😽🎥🚤😶🙍🍫😡🐘😗👱🚺🍨🚈🐮😇👪🚌🏆🚝👸🐛🐫🐡🚨😟🙏💆😼🎣😄😦🚬😯💂🐞🚛🚸🏈🚢🐙👧🚫🐤🐨🎭😤😭🐴🚧🐢🍙😍🏉🙇👻😐🍰🚗🐻🚼😒🎪👿👵🚎🎶🚟🙄👳👾🐩😻😁🎫🐥🐌🚰😸🚿😙🚙🍕🎨👴🍞🙋🐼😘🐶🚩😳🙌🎴😅😚👫😑🍤🐑🙅🙀🐜😷🍗🍭🎧🚠😬👺🐓🚋🐕🎾🍛💅🚁💇🚕🐰💁😰👨🐽😜😞😂🚳😌😎😆😥🚑😢🏁🍧👮🏄🍔🐯🚲🚪🎵🙎👼😉😃🚥🍪🐖🎯🚂🚇🚆👰🚀🐚🐝🚄🐍🏇🚐👽🚴🍱😮💄🎿😾💃😔🎸😕🚜🚯🍠🎳🐐🎼🐪🚏🐵🙊🎽🚒🚹🚊😱🍮😈🚵🐸🚔👯🍡🚘😺👦🚖🐎🐠🐺🐭😲 👷🍬😓🚍🍥🎹👹🍘🐏🍩🚡🐹🚃🐒😴🚾👲🙆🐱🐷😣😵🐬🐲😧😝🚦🍯😹🍲🐗🍟😩🎻😿🍚🚓🍢🎬🍜🍦🚉😊👩🙉🚚🙃🚮😋🎱😽🎥🚤😶🙍🍫😡🐘😗👱🚺🍨🚈🐮😇👪🚌🏆🚝👸🐛🐫🐡🚨😟🙏💆😼🎣😄😦🚬😯💂🐞🚛🚸🏈🚢🐙👧🚫🐤🐨🎭😤😭🐴🚧🐢🍙😍🏉🙇👻😐🍰🚗🐻🚼😒🎪👿👵🚎🎶🚟🙄👳👾🐩😻😁🎫🐥🐌🚰😸🚿😙🚙🍕🎨👴🍞🙋🐼😘🐶🚩😳🙌🎴😅😚👫😑🍤🐑🙅🙀🐜😷🍗🍭🎧🚠😬👺🐓🚋🐕🎾🍛💅🚁💇🚕🐰💁😰👨🐽😜😞😂🚳😌😎😆😥🚑😢🏁🍧👮🏄🍔🐯🚲🚪🎵🙎👼😉😃🚥🍪🐖🎯🚂🚇🚆👰🚀🐚🐝🚄🐍🏇🚐👽🚴🍱😮💄🎿😾💃😔🎸😕🚜🚯🍠🎳🐐🎼🐪🚏🐵🙊🎽🚒🚹🚊😱🍮😈🚵🐸🚔👯🍡🚘😺👦🚖🐎🐠🐺🐭😲 👷

set noautofocus " The opposite of autofocus; this setting stops sites from focusing on an input box when they load
let barposition = "bottom"
# improve colors
set -g default-terminal 'screen-256color'
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
@brandenbyers
brandenbyers / dapperFace.svg
Last active August 29, 2015 14:14
Dapper D3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.