Skip to content

Instantly share code, notes, and snippets.

View thebucknerlife's full-sized avatar

Greg Buckner thebucknerlife

  • Los Angeles, CA
View GitHub Profile
{"new":[{"_id":"53aa49bfb05f9d0e45001879","id":"2014/06/25/120-sports-espn-cord-cutters","title":"120 Sports Wants to Be ESPN for Cord Cutters","title_tag":null,"author":"Jason Abbruzzese","post_date":"2014-06-25T00:01:55-04:00","post_date_rfc":"Wed, 25 Jun 2014 00:01:55 -0400","sort_key":"1wZEpd","link":"http://mashable.com/2014/06/25/120-sports-espn-cord-cutters/","content":{"plain":"Two of the largest U.S. professional sports leagues have entered into a joint venture to launch a new video startup tailored to mobile fans and cord cutters that miss being able to tune in to ESPN.\n\n120 Sports launched on Wednesday with equity stakes from Major League Baseball and the National Hockey League, as well as Time Inc., college-sports syndicator Campus Insiders and digital-sports media company Silver Chalice. The operation is already sizable with more than 130 staff based out of Chicago. \n\nSee also: 20 Funniest YouTube Videos According to Reddit\n\nThe startup features video on demand of sports highlights from pro
@thebucknerlife
thebucknerlife / ruby_and_rails_on_mavericks.md
Last active August 29, 2015 14:02
Installing Ruby & Rails on Mavericks

These steps are for Mavericks. Mileage will vary for older versions of Mac OS X but the broad strokes still apply. Google is your friend if you hit a snag. Comments welcome.

Installing Ruby & Rails on Mac OSX Mavericks

Install homebrew.

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active January 17, 2024 23:54
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@thebucknerlife
thebucknerlife / common_errors.md
Created April 4, 2014 03:12
Common errors from Rails

###undefined local variable or method ABC

###undefined method XYZ for Nil:NilClass

N.B. Things that are starred with * are local variable

  • Ok, first generate a new rails app using this format:
    • rails new app_name
    • rails new amit_test_blog
  • Ok, next sketch out your models.
    • We're going to have two models for this blog: User and Post
    • One users can have many posts and many posts can belong to one users
    • Figure out the fields in each model.
    • Users will have these: field:type