Skip to content

Instantly share code, notes, and snippets.

Bridgetroll::Application.routes.draw do
root :to => "events#index"
devise_for :users
resources :users do
resource :profile, :only => [:edit, :update, :show]
end
resources :meetup_users, :only => [:index, :show]
@lilliealbert
lilliealbert / RailsBridge_class_levels
Last active December 14, 2015 12:38
RailsBridge - Rails curriculum class levels
Blue
* Totally New to Programming
* You have little to no experience with the terminal or a graphical IDE
* You might have done a little bit with HTML or CSS, but not necessarily
* You're unfamiliar with terms like methods, arrays, lists, hashes, or dictionaries.
Green
* Somewhat New to Programming
* You may have used the terminal a little — perhaps to change directories, for instance
* You might has done an online programming tutorial or two
@lilliealbert
lilliealbert / cats
Created November 13, 2012 22:20
how about this indentation
vr.addListMember({
'session_id' => sid,
'list_member' => {
'list_id' => lid,
'member_data' => [
{
'name' => 'email_address',
'value' => '[email protected]'
},
{
public function getSubscriberList(){
$result = array();
$startIndex = 0;
$limit = 500;
$numberOfCurrentBatchRecord = $limit;
$numberOfBatchRan = 0;
$safeGardCount = 10;
while($limit == $numberOfCurrentBatchRecord && $numberOfBatchRan < $safeGardCount){
$startIndex = $limit * $numberOfBatchRan;
@lilliealbert
lilliealbert / gist:3094250
Created July 11, 2012 22:44
folks.methods
[:inspect, :to_s, :to_a, :to_ary, :frozen?, :==, :eql?, :hash, :[], :[]=, :at, :fetch, :first, :last, :concat, :<<, :push, :pop, :shift, :unshift, :insert, :each, :each_index, :reverse_each, :length, :size, :empty?, :find_index, :index, :rindex, :join, :reverse, :reverse!, :rotate, :rotate!, :sort, :sort!, :sort_by!, :collect, :collect!, :map, :map!, :select, :select!, :keep_if, :values_at, :delete, :delete_at, :delete_if, :reject, :reject!, :zip, :transpose, :replace, :clear, :fill, :include?, :<=>, :slice, :slice!, :assoc, :rassoc, :+, :*, :-, :&, :|, :uniq, :uniq!, :compact, :compact!, :flatten, :flatten!, :count, :shuffle!, :shuffle, :sample, :cycle, :permutation, :combination, :repeated_permutation, :repeated_combination, :product, :take, :take_while, :drop, :drop_while, :pack, :dclone, :entries, :sort_by, :grep, :find, :detect, :find_all, :flat_map, :collect_concat, :inject, :reduce, :partition, :group_by, :all?, :any?, :one?, :none?, :min, :max, :minmax, :min_by, :max_by, :minmax_by, :member?, :each_wi