Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Travis trawor

💭
I may be slow to respond.
Block or report user

Report or block trawor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@akisute
akisute / AsyncSenTestingKitTests.h
Created Mar 17, 2012
SenAsyncTestCase - Asynchronous capable SenTestCase
View AsyncSenTestingKitTests.h
//
// AsyncSenTestingKitTests.h
// AsyncSenTestingKitTests
//
// Created by 小野 将司 on 12/03/17.
// Copyright (c) 2012年 AppBankGames Inc. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
#import "SenAsyncTestCase.h"
@ipconfiger
ipconfiger / __init__.py
Created Jan 5, 2012
OAuth包,实现了sina,QQ,网易,搜狐的OAuth认证
View __init__.py
# -*- Encoding: utf-8 -*-
import base64
import binascii
import cgi
import hashlib
import hmac
import logging
import time
import urllib
import urlparse
@zbyhoo
zbyhoo / solve_pbxproj_merge_conflict.sh
Created May 5, 2011
Solving pbxproj files git merge conflicts when two users add files at the same time.
View solve_pbxproj_merge_conflict.sh
#!/bin/sh
projectfile=`find -d . -name 'project.pbxproj'`
projectdir=`echo *.xcodeproj`
projectfile="${projectdir}/project.pbxproj"
tempfile="${projectdir}/project.pbxproj.out"
savefile="${projectdir}/project.pbxproj.mergesave"
cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile
cp $projectfile $savefile
@ironfounderson
ironfounderson / gist:751259
Created Dec 22, 2010
Loading content from a file contained as a bundle resource within a unit test target
View gist:751259
- (NSString *)contentOfXMLFile:(NSString *)filename {
NSString *contentPath = [[NSBundle bundleForClass:[self class]] pathForResource:filename
ofType:@"xml"];
NSURL *contentURL = [NSURL fileURLWithPath:contentPath];
return [NSString stringWithContentsOfURL:contentURL
encoding:NSUTF8StringEncoding
error:nil];
}
You can’t perform that action at this time.