As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| --colour | |
| -I app |
| <?php | |
| $access_token = ''; // The access_token you'll use | |
| $app_id = ''; // What AppId are you testing against? | |
| $user_id = ''; // What user are you testing against? | |
| $og_object_url = ''; // The URL of the OG Object | |
| $og_object_type = ''; // OG Object type | |
| $og_namespace = ''; // OG Namespace |
| # Run with: rake environment elasticsearch:reindex | |
| namespace :elasticsearch do | |
| desc "re-index elasticsearch" | |
| task :reindex => :environment do | |
| klass = Place | |
| ENV['CLASS'] = klass.name | |
| ENV['INDEX'] = new_index = klass.tire.index.name << '_' << Time.now.strftime('%Y%m%d%H%M%S') |
| <p> Works! Whats up <%= @display_name %> </p> | |
| <IfModule mod_headers.c> | |
| Header set Access-Control-Allow-Origin "http://mozilla.github.io" | |
| </IfModule> |
| class SimpleLinearRegression | |
| def initialize(xs, ys) | |
| @xs, @ys = xs, ys | |
| if @xs.length != @ys.length | |
| raise "Unbalanced data. xs need to be same length as ys" | |
| end | |
| end | |
| def y_intercept | |
| mean(@ys) - (slope * mean(@xs)) |
| class ApplicationController < ActionController::Base | |
| protect_from_forgery | |
| protected | |
| def current_user | |
| @current_user ||= User.find_by_id(session[:user_id]) | |
| end | |
| def signed_in? |
| #!/usr/local/bin/python | |
| """ | |
| To use this script, you must be in the root directory of a Rails project that | |
| is using git. You should also make sure that your directory does not contain any | |
| uncommitted changes. Then run: | |
| $ python rails_switch_branch.py name_of_another_branch | |
| Running the above will do the following: |