( 淡入 一群身著制服,表情嚴肅的軍官。)
會議桌的主位上,一位資深高階 將軍 正在說話。
將軍:報告已經證實了,紐約市已經…被殭屍占領了。
上校:又來了?明明 28 天前才發生過一次殭屍入侵!
將軍:這些僵屍…不一樣。它們是… 哲學 僵屍。
( 淡入 一群身著制服,表情嚴肅的軍官。)
會議桌的主位上,一位資深高階 將軍 正在說話。
將軍:報告已經證實了,紐約市已經…被殭屍占領了。
上校:又來了?明明 28 天前才發生過一次殭屍入侵!
將軍:這些僵屍…不一樣。它們是… 哲學 僵屍。
http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/
I watched these videos on 2012/12/14. Today's jQuery version is 1.8.3. So there might be some differences from the original video. I've briefly noted some of the differences between what described in the video and the current stable release. Most code he desribed can be found easily in speed/jquery-basic.js
(1.4.2).
2010-06-14 (jQuery 1.4.1)
# Check if remote file exists | |
def remote_file_exists?(full_path) | |
'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip | |
end | |
# Check if process is running | |
def remote_process_exists?(pid_file) | |
capture("ps -p $(cat #{pid_file}) ; true").strip.split("\n").size == 2 | |
end |
module Abilities | |
def self.ability_for(user) | |
if user.admin? | |
AdminAbility.new(user) | |
else user | |
MemberAbility.new(user) | |
else | |
GuestAbility.new | |
end | |
end |
@import "compass/utilities/sprites"; // Include compass sprite helpers | |
@import "compass/css3/background-size"; // Include helper to calc background size | |
@mixin sprite($name, $hover: false, $active: false) { | |
@include retina-sprite($name, $sprites, $sprites2x, $hover, $active); | |
} | |
// The general purpose retina sprite mixin. | |
// |
This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.