Skip to content

Instantly share code, notes, and snippets.

View edjasperdev's full-sized avatar

Ed Jasper edjasperdev

View GitHub Profile
@edjasperdev
edjasperdev / Initialize BB
Created October 5, 2014 23:28
Initializing Backbone in application.js
initialize: function() {
new IdeaVoter.Routers.Ideas();
Backbone.history.start();
}
};
$(document).ready(function(){
IdeaVoter.initialize();
});
@edjasperdev
edjasperdev / Routes in Backbone
Created October 5, 2014 23:16
Explaining Routes in Backbone
IdeaVoter.Routers.Ideas = Backbone.Router.extend({
routes: {
'': 'index',
'ideas/:id' : 'show'
},
index: function() {
//show me the index page
},

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
Class Playlist
def arrangement_for_tempo
sorted_songs = self.songs.order(tempo: :asc).to_a
cool_down = sorted_songs.pop(5).reverse
workout_songs = sorted_songs + cool_down
end
end
get '/:code' => 'parties#show'
private
def set_party
@party = Party.find_by(:code => params[:code])
end
class Party < ActiveRecord::Base
before_create :generate_code
belongs_to :user
def generate_code
self.code = rand(36**5).to_s(36)
end
Name: Edward Jasper
Github: http://github.com/jasperknowsbest
Blog: http://codeandthecity
Tagline: Life is so totes awes
Profile Picture: https://scontent-b-iad.xx.fbcdn.net/hphotos-ash3/t1.0-9/10176232_10202083160616242_1315485537107853282_n.jpg
Treehouse Account: http://teamtreehouse.com/codeandthecity
CoderWall Account: https://coderwall.com/jasperknowsbest
CodeSchool Account: http://www.codeschool.com/users/611048
Favorite Websites: