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
| // | |
| // ARC Helper | |
| // | |
| // Version 2.2 | |
| // | |
| // Created by Nick Lockwood on 05/01/2012. | |
| // Copyright 2012 Charcoal Design | |
| // | |
| // Distributed under the permissive zlib license | |
| // Get the latest version from here: |
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
| // | |
| // NSObject+setValuesForKeysWithJSONDictionary.h | |
| // SafeSetDemo | |
| // | |
| // Created by Tom Harrington on 12/29/11. | |
| // Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
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
| function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } | |
| function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } | |
| function trim(s) { return rtrim(ltrim(s)); } | |
| BEGIN { | |
| # whatever | |
| } | |
| { | |
| # whatever | |
| } | |
| END { |
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
| #! /bin/sh | |
| # On alternate invocations, this script | |
| # saves the path of the source file currently open in Xcode | |
| # and restores the file at that path in Xcode. | |
| # | |
| # By setting Xcode (in Behaviors) to run this script when "Run Starts" | |
| # and when "Run Completes", you can prevent it from switching to main.m | |
| # when a run finishes. | |
| # See http://stackoverflow.com/questions/7682277/xcode-4-2-jumps-to-main-m-every-time-after-stopping-simulator |
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
| in upload handler | |
| in file close | |
| .. | |
| ---------------------------------------------------------------------- | |
| Ran 2 tests in 0.021s | |
| OK |
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
| unzip -Uo 10k_records.xlsx xl/worksheets/sheet1.xml xl/sharedStrings.xml -d proc | |
| cat proc/xl/sharedStrings.xml \ | |
| | sed -e 's/[^[:print:][:blank:][:space:]]/[?]/g' -e 's/|/-delim-/g' \ | |
| | mawk 'BEGIN {RS = "</t></si><si><t>|<si><t>|</t></si></sst>|</t></si><si><t xml:space=\"preserve\">" | |
| FS = "999ABCDE" | |
| OFS = "|"} | |
| { print NR - 2, $1 }' \ | |
| | LANG=C sort -f -t "|" -k1 \ | |
| | grep -v "<sst xmlns=\|<?xml version" \ |
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
| Date: Thu, 16 Feb 2012 13:54:23 -0500 | |
| From: Kenneth Reitz <me@kennethreitz.com> | |
| To: homebrew@librelist.com | |
| Subject: [homebrew] Command Line Tools for XCode | |
| Hey guys — I've been working with Apple since the release of my osx-gcc-installer. | |
| I helped them come up with the requirements and command_line_tools_for_xcode is the result of that effort. Apple should be putting a link to it on their open source page soon. | |
| I know there were some reservations about hombrew supporting osx-gcc-installer, but since this is a real Apple product now, made *specifically* with Hombrew users in mind, we need to do our best to support it. Apple's doing their best to support us. |
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/env ruby | |
| # code2png - Render code to an image on OS X | |
| # Peter Cooper (@peterc) | |
| # MIT license | |
| # | |
| # code2png converts source code into a PNG graphic | |
| # (with syntax coloring, if you want). Ideal for | |
| # Kindle document production, RSS feeds, etc. | |
| # |
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
| brew install https://raw.github.com/adammw/homebrew-alt/automake/duplicates/autoconf.rb | |
| brew install https://raw.github.com/adammw/homebrew-alt/automake/duplicates/automake.rb | |
| brew link autoconf automake |
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
| { | |
| NSURL *baseURL = [NSURL URLWithString:@"http://duckduckgo.com/"]; | |
| NSDictionary *parameters = @{ @"q" : @"TWRequest -site:apple.com" }; | |
| // With TWRequest: 1 line with **correct percent escaping** | |
| NSURL *urlA = [[[[TWRequest alloc] initWithURL:baseURL parameters:parameters requestMethod:TWRequestMethodGET] signedURLRequest] URL]; | |
| // Without TWRequest: 10 lines with wrong percent escaping (http://www.openradar.me/6546984) | |
| NSMutableString *query = [NSMutableString string]; | |
| for (NSString *key in parameters) |