- Have a breakable toy side Rails project. It anchors your learning. Apply new skills/techniques here.
- Put the code in Github. Give mentors access to the project. They'll review your code.
- Understand the code review process and other style guidelines.
- Deploy your breakable toy to Heroku.
- Set learning goals weekly (e.g. X chapters of the Pickaxe, X Railscasts/week).
- Keep a text document (using vim) to record interesting commands/concepts/things you've learned.
- Review the text document daily for comprehension.
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
--colour --drb |
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
# Navigating | |
visit('/projects') | |
visit(post_comments_path(post)) | |
# Clicking links and buttons | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'nokogiri' | |
require 'json' | |
class Repo | |
def initialize(name) | |
@name = name | |
end |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'nokogiri' | |
require 'json' | |
class Repo | |
def initialize(name) | |
@name = name | |
end |
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
BEFORE: start trajectory story | |
* run specific tests wrote (eg: rspec spec/decorators/event_decorator_spec.rb:5) | |
rake | |
git status | |
git diff |
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
#Load in rails via: | |
# config/initializers/core_extensions.rb | |
#Forcibly require our core extensions after rails has loaded | |
Dir.glob(Rails.root.join('lib', 'core_ext', '*.rb')).each { |extension| require extension } |
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
export_alias() { | |
local name=$1 | |
local alias_dir=$PWD/.direnv/aliases | |
mkdir -p "$alias_dir" | |
PATH_add "$alias_dir" | |
local target="$alias_dir/$name" | |
if declare -f "$name" >/dev/null; then | |
echo "#!/usr/bin/env bash" > "$target" | |
declare -f "$name" >> "$target" 2>/dev/null | |
echo "$@" >> "$target" |
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 User < ActiveRecord::Base | |
has_one :subscription, dependent: :destroy | |
end | |
class Subscription < ActiveRecord::Base | |
acts_as_paranoid | |
belongs_to :user | |
enum plan: ServicePlans.plan_names |
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
on alfred_script(q) | |
set {the_path, file_name} to parse_path(first item of q) | |
tell application "iTerm" | |
set _terminal to make new terminal | |
tell _terminal | |
launch session "Vim" | |
tell the last session | |
write text "cd \"" & the_path & "\"" | |
# Replace e with your vim command |
OlderNewer