Skip to content

Instantly share code, notes, and snippets.

bounty_of_greens = ["Arugula", "Breen", "Buttercrunch", "Buttercrunch", "Butterhead", "Butterhead", "Green Mustard", "Kale", "Monte Carlo", "Red Mustard", "Red Sails", "Rouge D’hiver", "Swiss Chard", "Tatsoi", "Cherry Tomatoes", "Jalapenos", "Sweet Peppers", "Cilantro", "Mint", "Sweet Thai Basil", "Thyme"]
healthy_spring = ["Bok Choy", "Bulls Blood", "Bulls Blood", "Wheatgrass", "Wheatgrass", "Arugula", "Breen", "Butterhead", "Green Mustard", "Kale", "Monte Carlo", "Red Mustard", "Red Sails", "Rouge D’hiver", "Swiss Chard", "Tatsoi", "Chervil", "Holy Basil", "Red Sorrel", "Cilantro", "Mint", "Sweet Thai Basil", "Thyme", "Cherry Tomatoes", "Jalapenos", "Sweet Peppers", "Chamomile", "Fiesta Gitana"]
treat_your_senses = ["Hon Tsai Tai", "Hon Tsai Tai", "Purple Kohlrabi", "Red Tatsoi", "Arugula", "Breen", "Butterhead", "Green Mustard", "Kale", "Monte Carlo", "Red Mustard", "Red Sails", "Rouge D’hiver", "Swiss Chard", "Tatsoi", "Dill", "Cilantro", "Mint", "Sweet Thai Basil", "Thyme", "Mini Cauliflower", "Mini Caul
@yoon
yoon / trig.js
Created May 27, 2016 00:12
trig-based x/y holes
var alert = function(){};
var quantityProperty = {id: 'Circles', type: 'range', min: 1, max: 100, step: 1, value: 50};
var sizeProperty = {id: 'Size', type: 'range', min: 1, max: 100, step: 1, value: 50};
// Define a properties array that returns array of objects representing
// the accepted properties for your application
var properties = [
quantityProperty,
sizeProperty
@yoon
yoon / pre-commit
Created May 24, 2016 00:44
rubocop pre-commit
#!/usr/bin/env ruby
# This is a modified version of https://gist.github.com/mpeteuil/6147292
require 'english'
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
@yoon
yoon / menu.txt
Created February 25, 2016 21:49
menu
$15.05
mixed fruit,$2.15
french fries,$2.75
side salad,$3.35
hot wings,$3.55
mozzarella sticks,$4.20
sampler plate,$5.80
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yoon
yoon / .powenv
Created February 15, 2016 22:22
my powenv
# detect `$rvm_path`
if [ -z "${rvm_path:-}" ] && [ -x "${HOME:-}/.rvm/bin/rvm" ]
then rvm_path="${HOME:-}/.rvm"
fi
if [ -z "${rvm_path:-}" ] && [ -x "/usr/local/rvm/bin/rvm" ]
then rvm_path="/usr/local/rvm"
fi
# load environment of current project ruby
if
@yoon
yoon / jQuery.scrollThrough.js
Created November 6, 2015 16:04
jQuery script to repeatedly scroll through a mailchimp html email
var pageZoom = '.9';
var pixelsPerSecond = 10;
$('#awesomewrap').hide(); // hide email header
$('html').css('zoom', pageZoom); // zoom out the page
var scrollHeight = $(document).height() - $(window).height();
var scrollThrough = function(){
$('html, body').animate({scrollTop: 0}, 1).animate({ scrollTop: scrollHeight }, scrollHeight * 1000 / pixelsPerSecond, "linear", scrollThrough);
};
@yoon
yoon / change_stage_redmine_header.js
Created August 3, 2015 14:49
Change the stage redmine header so as not to get confused with prod
// ==UserScript==
// @name Change stage redmine header
// @namespace https://redmine.stage.tablexi.com/
// @version 0.1
// @description Change the stage redmine header so as not to get confused with prod
// @author Mark Yoon
// @match https://redmine.stage.tablexi.com/*
// @grant GM_addStyle
// ==/UserScript==
@yoon
yoon / railsengines.md
Last active August 29, 2015 14:22
Rails engines links

Keybase proof

I hereby claim:

  • I am yoon on github.
  • I am yoon (https://keybase.io/yoon) on keybase.
  • I have a public key whose fingerprint is 3964 EBA0 F14F EB93 1642 B923 02F8 4266 60F3 B9DE

To claim this, I am signing this object: