Skip to content

Instantly share code, notes, and snippets.

View adamyonk's full-sized avatar
👨‍💻
✌️

Adam Jahnke adamyonk

👨‍💻
✌️
View GitHub Profile
@adamyonk
adamyonk / Gemfile
Last active December 10, 2015 22:38
Guard watcher to run images through ImageOptim.app
gem 'guard'
gem 'guard-shell'
@adamyonk
adamyonk / _form.html.haml
Last active December 17, 2015 10:19
Rails 4, Strong Parameters, and Nested Forms
= form_for @album do |f|
= f.text_field :title
= f.fields_for :songs do |s|
= s.text_field :name
...
@adamyonk
adamyonk / dropbox_install.sh
Last active December 20, 2015 19:39
To install: curl https://gist.github.com/adamyonk/6185025/raw/dropbox_install.sh -o /tmp/dropbox_install && chmod +x /tmp/dropbox_install && /tmp/dropbox_install
#!/usr/bin/env bash
mkdir -p "$HOME"/bin
cd "$HOME"/bin
echo -ne "\n\n\n > Downloading ss..."
curl https://raw.github.com/adamyonk/dotfiles/master/bin/ss -o ss >/dev/null 2>&1 && chmod +x ss
echo "Done!"
echo -n " > Downloading dropbox_uploader..."
ಠ_ಠ
ಠ_ರೃ
﴾͡๏̯͡๏﴿
๏_๏
ಠ▃ಠ
(•‿•)
Ծ_Ծ
¯\(°_o)/¯
(✌゚∀゚)☞
╚(•⌂•)╝

Pour Over Brew Method

Notes

  • Grind coffee beans at medium or regular coarseness setting
  • Start with a ~16:1 water:coffee ratio and tune to your coffee
  • Wet the filter before adding coffee to remove paper taste
  • Wet ground coffee and allow to 'bloom' for 1 minute
  • Slowly pour water in a circular, nickel size pattern
  • Explain helper classes

Rules

Template
/* Bad */

/* Good */
decodeHtmlEntity = (str) ->
str.replace /&#(\d+);/g, (match, dec) ->
String.fromCharCode(dec)
encodeHtmlEntity = (str) ->
buf = []
for (var i=str.length-1;i>=0;i--) {
buf.unshift(['&#', str[i].charCodeAt(), ';'].join(''))
buf.join('')
.button--toggle
background-color: $color_gray3
color: $color_gray4
&.active
background-color: $color_gray
color: $color_yellow
&.button--toggle--purple.active
...
&.button--toggle--orange.active
...

Designed by Stephen Few, a bullet chart “provides a rich display of data in a small space.” A variation on a bar chart, bullet charts compare a given quantitative measure (such as profit or revenue) against qualitative ranges (e.g., poor, satisfactory, good) and related markers (e.g., the same measure a year ago). Layout inspired by Stephen Few. Implementation based on work by Clint Ivy, Jamie Love of N-Squared Software and Jason Davies. The "update" button randomizes the values slightly to demonstrate transitions.

➔ gem install zookeeper -v '1.4.6'
Building native extensions. This could take a while...
ERROR: Error installing zookeeper:
ERROR: Failed to build gem native extension.
/Users/adamyonk/.rubies/2.1.2/bin/ruby extconf.rb
Building zkc.
tar xzf zkc-3.4.5.tar.gz 2>&1
patch -p0 < patches/zkc-3.4.5-logging.patch 2>&1
patching file zkc-3.4.5/c/src/zookeeper.c