- Existing
rspec-stackprof
is "empty" stackprof
is written as a replacement forperftools.rb
- Added an environment variable to conditionally run the profiler, it slows down test runtime by a couple of seconds for me.
- Just add
stackprof.rb
to yourspec/support
folder, which is loaded onrails_helper.rb
SSH to the vagrant OS command line.
Terminal $> vagrant ssh
Login to postgres database as vagrant user with the psql client:
vagrant@rails-dev-box: psql -U vagrant postgres
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
# Add poltergeist gem to Gemfile, in :test group, | |
# then run `bundle` to install | |
group :test do | |
... | |
gem 'poltergeist' | |
... | |
end |
Nitrous is a powerful IDE (integrated development environment) for building and previewing web applications. With a live console, text editor (with syntax highlighting), and server with preview options, it has everything you need to develop for Bloc Courses.
Creating an account is simple. Go to nitrous.io and enter in a username, password and email. You can even use your Github account to login if you're wary of creating another account for a singular purpose.
- 🎨 when improving the format/structure of the code
- 🚀 when improving performance
- ✏️ when writing docs
- 💡 new idea
- 🚧 work in progress
- ➕ when adding feature
- ➖ when removing feature
- 🔈 when adding logging
- 🔇 when reducing logging
- 🐛 when fixing a bug
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
#Deploy and rollback on Heroku in staging and production | |
class RakeHerokuDeployer | |
def initialize app_env | |
@app = ENV["#{app_env.to_s.upcase}_APP"] | |
end | |
def run_migrations | |
push; turn_app_off; migrate; restart; turn_app_on; tag; | |
end |
-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Plain JSBin's
-
Ember Version Base JSBin's