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
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
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
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { | |
//show the contact that was tapped on! | |
} |
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
self.tableView.delegate = yourDelegate; |
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
module Settings | |
class Global < Settingslogic | |
source "#{Rails.root}/config/settings/global.yml" | |
namespace Rails.env | |
load! | |
end | |
class User < Settingslogic | |
source "#{Rails.root}/config/settings/user.yml" |
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
--type-add=js=.jst | |
--type-add=css=.scss | |
--type-add=ruby=.ru |
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
[color] | |
ui = always |
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
parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
} | |
export PS1='\u\[\e[1;37m\]:\[\e[1;31m\]\W\[\e[1;33m\]$(parse_git_branch)\[\e[0;39m\]$ ' |
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
require 'shelby_api' | |
shelbz = Shelby::API.new( | |
:consumer_key => APP_CONFIG[:shelby_consumer_key], :consumer_secret => APP_CONFIG[:shelby_consumer_secret], | |
:user_oauth_token => @user.oauth_token, :user_oauth_secret => @user.oauth_secret ) | |
channel_id = shelbz.get_channels()[0]['_id'] | |
broadcasts_10_thru_20 = shelbz.get_broadcasts(channel_id, :limit => 10, :skip => 10) |
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
require 'oauth' | |
require 'json' | |
# You app needs a gigantic "SIGN IN WITH SHELBY" button. Clicking it should route to this method | |
def sign_in_with_shelby | |
# 1. Create a new Shelby app at http://dev.shelby.tv/oauth_clients/new and get your consumer keys from there | |
consumer = OAuth::Consumer.new( my_apps_consumer_key, my_apps_consumer_secret, {:site=>"http://dev.shelby.tv"}) | |
# 2. We need the request token later to generate an access token, so store that bitch in the session |
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
require 'oauth/signature/plaintext' | |
require 'json' | |
module Shelby | |
class API | |
extend ActiveSupport::Memoizable | |
# Create a client to access the Shelby API (via plaintext, two-legged OAuth) for the given user | |
# requried parameters: | |
# :consumer_key - your apps consumer key (see http://dev.shelby.tv/myapps) |