This file contains 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
// | |
// NSNumberHelper.h | |
// | |
// Created by Jorge Bernal on 5/24/12. | |
// Copyright (c) 2012 Jorge Bernal. All rights reserved. | |
// | |
#define NSBool(scalar) [NSNumber numberWithBool:scalar] | |
#define CBool(object) [object boolValue] | |
#define NSChar(scalar) [NSNumber numberWithChar:scalar] |
This file contains 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
.fake_file_input { | |
background: url(../images/fake_file_input.png) no-repeat; | |
cursor: pointer; | |
width: 150px; | |
height: 30px; | |
overflow: hidden; | |
position: relative; | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; |
This file contains 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
Three finger gestures are awesome in Xcode, but they disappeared in Lion :( | |
You can bring them back to life however... | |
Inspired by a post from @gordonhughes (http://geeksinkilts.com/?p=67), explaining how to bring them back on an external trackpad, I started digging around for a way to get it working on the internal trackpads for the mbp/mba models. | |
*edit* | |
Perhaps an easier way of doing this found by @gordonhughes again is just this 1 line in Terminal, haven't confirmed this yet though | |
defaults -currentHost write -g "com.apple.trackpad.threeFingerVertSwipeGesture" -int 1 |
This file contains 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
require "twitter" | |
require "sunlight" | |
data_pos = DATA.pos | |
last_id = DATA.read.to_s[/\d+/] | |
last_id = last_id.to_i if last_id | |
DATA.reopen(__FILE__, "a+") | |
Twitter.configure do |config| |
This file contains 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
SIGN UP | |
curl -H "Content-Type:application/json" -H "Accept:application/json" \ | |
-d "{\"user\":{\"password_confirmation\":\"12345678\", \"password\":\"12345678\", \"email\":\"[email protected]\"}}" \ | |
http://your_server.com/users | |
SIGN IN | |
curl -H "Content-Type:application/json" -H "Accept:application/json" \ | |
-d "{\"user\":{\"remember_me\":\"0\", \"password\":\"12345678\", \"email\":\"[email protected]\"}}" \ | |
http://your_server.com/users/sign_in |