Skip to content

Instantly share code, notes, and snippets.

View wesvetter's full-sized avatar
coffee plz

Wes Vetter wesvetter

coffee plz
View GitHub Profile
@wesvetter
wesvetter / turkey_hunting-2019-03-30.md
Created May 9, 2019 00:16
A hunting log recorded entirely using Siri/iPhone dictation in the Notes app

Should’ve brought ear plugs. Hit the trail at 6:20. A lot of hunters at Cowboy Camp. Maybe not a lot, three or four I should say. I was very anxious and spooked by them but they turned out to just be regular hunters (I had thought they look shifty at first). Didn't miss having hot coffee or a hot breakfast or even a solid breakfast.

Went down the wrong trail, Cache Creek Ridge Trail, and had to cut over to Judge Davis trail.

20ga is a dream to carry. I have good reception on the ridges.

Two gun shots at 7:45.

Losing a lot of elevation which means it's going to be a tough hike back so I should allocate time accordingly.

@wesvetter
wesvetter / common.coffee
Created February 5, 2019 17:27 — forked from carlsmith/common.coffee
A small collection of generic CoffeeScript helper functions.
# shorthand wrapper for `console.log`
put = (args...) -> console.log args...
# initialise undefined vars: `[a, b, c] = init 3`
init = (amount) -> undefined for n in [1..amount]
# decorator for defining constructors (see example.coffee)
factory = (mutator) -> (args...) ->
mutator (self = Object.create null), args...
return self
@wesvetter
wesvetter / lemon_chicken.md
Created November 29, 2017 16:19
Lemon Chicken Recipe

Ingredients:

  • 2 large, skinless chicken breasts
  • flour
  • salt
  • pepper
  • olive oil
  • butter

Optional:

@wesvetter
wesvetter / pre-push
Created June 8, 2017 19:25
git hook to run npm tests before pushing
#!/bin/bash
RUN_TESTS="npm test"
# Only run the tests if we actually have commits to push
commits=`git log @{u}..`
if [ -z "$commits" ]; then
exit 0
fi
@wesvetter
wesvetter / pre-commit
Created June 8, 2017 18:24
git pre-commit hook to lint staged CoffeeScript files
#!/bin/sh
files=$(git diff --cached --name-only --diff-filter=ACM | grep ".coffee$")
if [ "$files" = "" ]; then
exit 0
fi
pass=true
echo "\nLinting Coffeescript:\n"
@wesvetter
wesvetter / ceviche.md
Last active March 24, 2022 04:47
Ceviche recipe

Simple ceviche recipe

  • 1 red bell pepper (or 1/2 red and 1/2 orange for more color)
  • 1/2 jalapeno pepper (with seeds removed)
  • 1 avocado
  • 0.75-1.00 pound of raw white fish (mahi, opah, etc.) or shrimp
  • 1/2 medium size red onion
  • salt/black pepper
  • limes (1-2) and/or lime juice
  • Tostitos Scoops (for serving)
@wesvetter
wesvetter / tinysub.coffee
Created March 31, 2017 20:15
A simple PubSub implementation in CoffeeScript
# Simple PubSub implementation
tinysub = do (lib={}) ->
# Storage for topics that can be broadcast or listened to.
topics = {}
# Used to generate subscriber tokens
subscriber_uid = -1
generate_token = -> (++subscriber_uid).toString()
@wesvetter
wesvetter / LICENSE.txt
Created February 24, 2017 17:07
Chris Coyier's CSS-Tricks license (https://css-tricks.com/license/)
SUPER IMPORTANT LEGAL DOCUMENT
------------------------------
I don't give two hoots what you do with any of the design or code you find here.
Actually, I do. I hope you take it and use it, uncredited, on a super commercial website and get wicked rich off it. I hope you use it at work and your boss is impressed and you get a big promotion. I hope it helps you design a website and that website impresses somebody you think is super hot and you get married and have smart, chill babies. I hope you use the code in a blog post you write elsewhere and that website gets way more popular and awesome than this one.
If you feel like telling me about it, cool. If not, no big deal. If you feel better crediting it, that's cool. If not, don't sweat it.
If you copy an entire article from this site and republish it on your own site like you wrote it, that's a little uncool. I won't be mad at you for stealing, I just think you're better than that and want to see you do better. I'm not going to come after you though. I'd rat

Tuna Melt

Serves two.

Ingredients

Tuna salad:

  • 2 cans (6 oz each) tuna in water (12 oz. drained)
  • 1 medium stalk celery

Steak Fries

Ingredients

  • 4 small - medium russet potatoes (washed)
  • 2 teaspoons olive oil
  • 1/2 teaspoon salt
  • 1/2 teaspoon garlic powder
  • 1/2 teaspoon paprika