- 2 Chicken Breasts
- 1/2 Onion
- 2 tbs. Vegetable Oil
- 1/3 Cup Water
- 2 Cloves Garlic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveRecord | |
module NestedAttributes #:nodoc: | |
module ClassMethods | |
# Defines an attributes writer for the specified association(s). If you | |
# are using <tt>attr_protected</tt> or <tt>attr_accessible</tt>, then you | |
# will need to add the attribute writer to the allowed list. | |
# | |
# Supported options: | |
# [:allow_destroy] | |
# If true, destroys any members from the attributes hash with a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddCountOnHandToVariantsAndProducts < ActiveRecord::Migration | |
def self.up | |
add_column :variants, :count_on_hand, :integer, :default => 0, :null => false | |
add_column :products, :count_on_hand, :integer, :default => 0, :null => false | |
Variant.class_eval do | |
def on_hand=(new_level) | |
delta_units = new_level.to_i - on_hand.to_i | |
# increase Inventory when positive delta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# State Machine - http://en.wikipedia.org/wiki/State_machine | |
# Traffic Light - http://en.wikipedia.org/wiki/Traffic_light | |
# Workflow - http://en.wikipedia.org/wiki/Workflow | |
# Wizard - http://en.wikipedia.org/wiki/Wizard_%28software%29 | |
# state_machine - https://github.com/pluginaweek/state_machine | |
# traffic_light - https://gist.github.com/735281 | |
class TrafficLight | |
WAIT_TIME_IN_SECONDS = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
omethjing | |
something | |
smotehing | |
sofhteinf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rest_client' | |
require 'json' | |
USERNAME='username' | |
PASSWORD='password' | |
PREFIX='https' | |
HOSTNAME='api.github.com' | |
ROOT_URL="#{PREFIX}://#{USERNAME}:#{PASSWORD}@#{HOSTNAME}" | |
REPO_OWNER='repo_owner' |
This classic Thai chicken soup gets its rich flavor from quintessential Thai ingredients: coconut milk, lemongrass, fresh ginger, lime juice, chile paste, basil and cilantro.
- 1 can (14 oz.) coconut milk
- 1 can (14 oz.) reduced-sodium chicken broth $
- 6 quarter-size slices fresh ginger
- 1 stalk fresh lemongrass, cut in 1-in. pieces
:eyes:
:ear::nose::ear:
👍 💋 👎
:mans_shoe: :mans_shoe:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mouse integration for OS X, not sure about linux | |
# see: https://github.com/tmux/tmux/issues/145#issuecomment-151123624 | |
set -g mouse-utf8 on | |
set -g mouse on | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
bind -n WheelDownPane select-pane -t= \; send-keys -M |
OlderNewer