most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| class PostsController < ActionController::Base | |
| def create | |
| Post.create(post_params) | |
| end | |
| def update | |
| Post.find(params[:id]).update_attributes!(post_params) | |
| end | |
| private |
| var DateHelper = { | |
| // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time | |
| // Ruby strftime: %b %d, %Y %H:%M:%S GMT | |
| time_ago_in_words_with_parsing: function(from) { | |
| var date = new Date; | |
| date.setTime(Date.parse(from)); | |
| return this.time_ago_in_words(date); | |
| }, | |
| // Takes a timestamp and converts it to a relative time | |
| // DateHelper.time_ago_in_words(1331079503000) |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| ... | |
| <nav> | |
| <ul> | |
| <li> | |
| <a href="/my/app">Home</a> | |
| </li><li> | |
| <a href="/my/app/posts">Posts</a> | |
| </li><li> | |
| <a href="/my/app/posts/1">The First Post</a> | |
| </li> |
| UIContentSizeCategoryExtraSmall | |
| FontStyle: UICTFontTextStyleBody | |
| Point size 14.000000 | |
| Family Name .AppleSystemUIBody | |
| FontStyle: UICTFontTextStyleHeadline | |
| Point size 14.000000 | |
| Family Name .AppleSystemUIHeadline | |
| Bold | |
| FontStyle: UICTFontTextStyleSubhead | |
| Point size 12.000000 |
#Talks
##Jeremy Keith