I hereby claim:
- I am pwc3 on github.
- I am pwc (https://keybase.io/pwc) on keybase.
- I have a public key whose fingerprint is 54D6 83ED A697 10D0 9197 0AC4 EB1D 31E1 F05D EB34
To claim this, I am signing this object:
#!/usr/bin/env bash | |
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift |
#import <Foundation/Foundation.h> | |
#import <stdio.h> | |
@interface ExampleObject : NSObject | |
// BLOCK AS A PROPERTY | |
// ------------------- | |
// | |
// @property (copy, ...) return_type (^block_name)(parameter_types); | |
// |
I hereby claim:
To claim this, I am signing this object:
set appleID to "ENTER YOUR APPLE ID HERE" | |
activate application "Xcode" | |
tell application "System Events" | |
tell process "Xcode" | |
-- open the preferences dialog | |
click menu item "Preferences…" of menu "Xcode" of menu bar 1 | |
-- find and select the Accounts tab |
tell application "System Events" | |
tell process "Tweetbot" | |
repeat | |
-- need to put this in a try block as it sometimes fails | |
try | |
-- loop over all of the windows | |
repeat with _window in windows | |
-- if the title isn't "Main Window"... | |
if title of _window is not "Main Window" then | |
-- ... close it by performing AXPress on button 1 (which corresponds to the red stoplight button) |
NSDictionary *aDictionary = nil; | |
NSArray *anArray = nil; | |
void (^aBlock)() = ^{ }; | |
// no warning | |
aDictionary = aBlock; | |
// no warning | |
anArray = aBlock; | |
// warning assigning NSArray to NSDictionary, but not for block assignment | |
aDictionary = anArray = aBlock; |
#!/usr/bin/env python | |
import argparse | |
import subprocess | |
import sys | |
EDITOR = 'vim' | |
BINARY = 'Apple binary property list' | |
XML = 'XML document text' |
# set interpreter to /bin/bash | |
case "{query}" in | |
"monday") code="12345#,,#" ;; | |
"wednesday") code="23456#,,#" ;; | |
"friday") code="34567#,,#" ;; | |
*) code="{query}#,,#" ;; | |
esac | |
$HOME/bin/skypecall "800-555-1212" "$code" |
#!/usr/bin/env python | |
import argparse | |
import codecs | |
import glob | |
import os | |
import plistlib | |
import re | |
import sys |