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
| Only in .: evernote-sdk-ios-Prefix.pch | |
| diff -r ./internal/ENOAuthViewController.m /Users/sonson/code/Core2ch/ios/3tch/Framework/Library/Evernote/internal/ENOAuthViewController.m | |
| 170,171c170,172 | |
| < if ([[request.URL absoluteString] hasPrefix:self.oauthCallbackPrefix]) { | |
| < // this is our OAuth callback prefix, so let the delegate handle it | |
| --- | |
| > NSRange r = [[request.URL absoluteString] rangeOfString:self.oauthCallbackPrefix]; | |
| > if (r.location != NSNotFound) { | |
| > NSString *responseURLString = [[request.URL absoluteString] substringWithRange:NSMakeRange(r.location, [request.URL absoluteString].length - r.location)]; | |
| 173c174 |
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)awakeFromNib{ | |
| [super awakeFromNib]; | |
| for(NSLayoutConstraint *cellConstraint in self.constraints){ | |
| [self removeConstraint:cellConstraint]; | |
| id firstItem = cellConstraint.firstItem == self ? self.contentView : cellConstraint.firstItem; | |
| id seccondItem = cellConstraint.secondItem == self ? self.contentView : cellConstraint.secondItem; | |
| NSLayoutConstraint* contentViewConstraint = | |
| [NSLayoutConstraint constraintWithItem:firstItem | |
| attribute:cellConstraint.firstAttribute | |
| relatedBy:cellConstraint.relation |
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
| #!/usr/bin/ruby | |
| require 'optparse' | |
| def main | |
| argv = {} | |
| OptionParser.new do |opt| | |
| opt.on('--previous VALUE') do |v| | |
| argv[:previous] = v |
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
| #!/usr/bin/ruby | |
| require 'optparse' | |
| require 'kconv' | |
| def update(filepath, dictionary) | |
| puts filepath | |
| fr = File::open(filepath, "r") | |
| localizedSource = fr.read | |
| fr.close |
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
| #!/usr/bin/ruby | |
| # parser for extract UTI idenfier from Xcode documents | |
| # for exmample path | |
| # file:///Users/sonson/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS6.1.iOSLibrary.docset/Contents/Resources/Documents/index.html#documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html | |
| if __FILE__ == $0 | |
| str = $stdin.read | |
| str.scan(/<tr><td scope=\"row\"><p>(.+?)<\/p><\/td>/).each{|e| | |
| e1 = e[0].gsub(/\(.+\)/, "") |
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
| TEAM_TOKEN="<TEAM TOKEN>" | |
| API_TOKEN="<API TOKEN>" | |
| DISTRIBUTION_LISTS="<Distribution list, that is separated by comma>" | |
| /bin/mkdir -p ./tmp | |
| DSYM="/tmp/Archive.xcarchive/dSYMs/${PRODUCT_NAME}.app.dSYM" | |
| IPA="/tmp/Archive.xcarchive/${PRODUCT_NAME}.ipa" | |
| APP="/tmp/Archive.xcarchive/Products/Applications/${PRODUCT_NAME}.app" |
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
| git archive --format=zip HEAD > Sample.zip |
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 -rubygems -e 'require "jekyll-import"; | |
| JekyllImport::Importers::WordpressDotCom.run({ | |
| "source" => "wordpress.xml", | |
| "tags" => false, | |
| "more_excerpt" => true, | |
| "more_anchor" => true | |
| })' |
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
| def main | |
| begin | |
| fr = File::open(ARGV[0],"r") | |
| rescue | |
| else | |
| depth = 0 | |
| buf = "" | |
| fr.read.each_char{|c| | |
| if c == '{' | |
| depth = depth + 1 |
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 hoge(NSString* temp) { | |
| DNSLog(@"------------------%ld", temp.length); | |
| NSData *data = [temp dataUsingEncoding:NSUTF8StringEncoding]; | |
| unichar *uni = nil; | |
| uni = (unichar*)malloc(sizeof(unichar) * temp.length); | |
| [temp getCharacters:uni]; | |
| for (int i = 0; i < [temp length]; i++) { | |
| NSLog(@"%d - %04x", i, *(uni + i )); | |
| } |