This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 inch antiglare | |
2.8Ghz Intel Core 2 Duo | |
4GB 1067Mhz DDR3 Memory | |
500GB HDD | |
NVIDIA GeForce 9400M 256MB | |
NVIDIA GeForce 9600M GT 512MB | |
ES keyboard (Türkçe tuşdizimiyle aynı) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mkdir -p lib/templates/rails/scaffold_controller/ | |
# Put this under lib/templates/rails/scaffold_controller/controller.rb | |
class <%= controller_class_name %>Controller < ApplicationController | |
respond_to :html, :json | |
<% unless options[:singleton] -%> | |
expose(:<%= table_name %>) { <%= orm_class.all(class_name) %> } | |
<% end -%> | |
expose(:<%= file_name %>) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
String.prototype.originalLocaleCompare = String.prototype.localeCompare; | |
var alphabet = ["A", "a", "B", "b", "C", "c", "Ç", "ç", "D", "d", "E", "e", | |
"F", "f", "G", "g", "Ğ", "ğ", "H", "h", "I", "ı", "İ", "i", | |
"J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", | |
"Ö", "ö", "P", "p", "R", "r", "S", "s", "Ş", "ş", "T", "t", | |
"U", "u", "Ü", "ü", "V", "v", "Y", "y", "Z", "z"]; | |
String.prototype.localeCompare = function(b) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.3-preview1 :033 > s = "%06d" % 123 | |
=> "000123" | |
ruby-1.9.3-preview1 :034 > s.chars.each_slice(4).map(&:join) | |
=> ["0001", "23"] | |
ruby-1.9.3-preview1 :035 > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo kextutil "/Library/Parallels/Parallels Service.app/Contents/Kexts/10.6/prl_hypervisor.kext" | |
sudo kextutil "/Library/Parallels/Parallels Service.app/Contents/Kexts/10.6/prl_hid_hook.kext" | |
sudo kextutil "/Library/Parallels/Parallels Service.app/Contents/Kexts/10.6/prl_usb_connect.kext" | |
sudo kextutil "/Library/Parallels/Parallels Service.app/Contents/Kexts/10.6/prl_netbridge.kext" | |
sudo kextutil "/Library/Parallels/Parallels Service.app/Contents/Kexts/10.6/prl_vnic.kext" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crossdomain.xml | |
uploads/4e6fbfe017ade32bb2000001/Cute-cheetah-1366x768.jpg | |
uploads/4e6fbfe017ade32bb2000001/Cute-cheetah-1366x768_thumb.jpg | |
uploads/4e70d627ba328c232f000001/1295583266285.jpg | |
uploads/4e70d627ba328c232f000001/1295583266285_thumb.jpg | |
uploads/4e70d627ba328c232f000001/Photo on 9-14-11 at 8.36 PM.jpg | |
uploads/4e70d627ba328c232f000001/Photo on 9-14-11 at 8.36 PM_thumb.jpg | |
uploads/4e70d627ba328c232f000001/hede.py | |
uploads/4e72673cba328c5f73000003/Screen Shot 2011-09-25 at 8.13.28 PM.png | |
uploads/4e72673cba328c5f73000003/Screen Shot 2011-09-25 at 8.13.28 PM_thumb.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in samples/*.frag; do echo $f ; ./scanner < ${f} | diff -w - ${f%.frag}.out ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
helper_method :current_user | |
def current_user | |
@current_user ||= User.find_by_auth_token(cookies.signed[:auth_token]) if cookies[:auth_token] | |
end | |
def authenticate_user! | |
redirect_to login_url unless current_user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2 |
OlderNewer