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
if (self.tweetView == nil){ | |
TweetViewController *viewController = [[TweetViewController alloc] initWithNibName:@"TweetView" bundle:[NSBundle mainBundle]]; | |
self.tweetView = viewController; | |
[viewController release]; | |
} | |
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
NSURL *jsonURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://search.twitter.com/search.json?q=%@", (NSString *)[appDelegate.trends objectAtIndex:indexPath.row]]]; | |
NSString *jsonData = [[NSString alloc] initWithContentsOfURL:jsonURL]; | |
self.tweetView.jsonArray = [[jsonData JSONValue] objectForKey:@"results"]; | |
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
rake aborted! | |
You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.length | |
/Users/jmaddox/source/github/vendor/plugins/fixture_scenarios/tasks/fixture_scenarios_tasks.rake:39 | |
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
// | |
// DataSrc.m | |
// summizer | |
// | |
// Created by Jon Maddox on 8/6/08. | |
// Copyright 2008 Mustache, Inc.. All rights reserved. | |
// | |
#import "DataSrc.h" | |
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
//determine height of label | |
CGSize size = CGSizeMake(240.0,1000.0); | |
size = [[NSString stringWithFormat:@"%@: %@", [tweetResult objectForKey:@"from_user"], [tweetResult objectForKey:@"text"]] sizeWithFont:[UIFont systemFontOfSize:14.0] constrainedToSize:size lineBreakMode:UILineBreakModeWordWrap]; | |
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
# install vim so that you can use it to edit stuff from a mac | |
apt-get update | |
apt-get install vim | |
# as root add your user | |
adduser deployer | |
# add admin group | |
addgroup admin | |
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
#### GIT ##### | |
alias gits='git status' | |
alias glog='git log' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff | mate' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gch='git checkout' | |
alias gb='git branch' |
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
- (void)viewDidLoad { | |
self.title = @"Finding tweets..."; | |
// get tweets | |
[NSThread detachNewThreadSelector:@selector(getTweets) toTarget:self withObject:nil]; | |
} | |
- (void)getTweets{ | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
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
Feature: Create customer rental | |
In order to make money | |
An admin | |
Should be able to create new customer rentals | |
Scenario: Create a new customer rental | |
Given an admin user | |
When the admin is logged in | |
And is on the customers page | |
Then I should see "Jon Maddox" |
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
## treat this as a binary, don't show in diffs, and ignore from merges | |
*.pbxproj -crlf -diff -merge | |