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
[user] | |
name = Yasuhiro Inami | |
email = inamiy@gmail.com | |
[color] | |
ui = auto | |
[core] | |
autocrlf = false | |
excludesfile = ~/.gitignore | |
attributesfile = ~/.gitattributes | |
editor = /usr/bin/vim |
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
<CFRunLoop 0x7d23a2d0 [0xb9e380]>{wakeup port = 0x1103, stopped = false, ignoreWakeUps = true, | |
current mode = UIInitializationRunLoopMode, | |
common modes = <CFBasicHash 0x7d23a5e0 [0xb9e380]>{type = mutable set, count = 2, | |
entries => | |
0 : <CFString 0x18a2148 [0xb9e380]>{contents = "UITrackingRunLoopMode"} | |
1 : <CFString 0xb8bd38 [0xb9e380]>{contents = "kCFRunLoopDefaultMode"} | |
} | |
, | |
common mode items = <CFBasicHash 0x7d53a450 [0xb9e380]>{type = mutable set, count = 16, | |
entries => |
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
/* Prevent font scaling when switching orientations */ | |
html { | |
-webkit-text-size-adjust: none; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
word-wrap: break-word; | |
} |
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
let str: NSString? = nil | |
str?.length == 0 // false | |
str?.length > 0 // false | |
str?.length < 0 // true | |
nil == 0 // false | |
nil > 0 // false | |
nil < 0 // true |
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
# Memo: no `spec.requires_arc = true` in podspec (push failed) | |
inamiy@inamiy-MBPR:~/github/Swizzle (master *)$ pod trunk push --verbose | |
[!] Found podspec `Swizzle.podspec` | |
Validating podspec | |
Swizzle (0.0.2) - Analyzing on OS X platform. | |
Preparing | |
Analyzing dependencies |
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
for i in 0..<5 { | |
let startTime: CFAbsoluteTime = CFAbsoluteTimeGetCurrent(); | |
for _ in 0..<100 { | |
let task = Task<Float, String, NSError> { p, f, r, c in } | |
//let signal = Signal<Int>.never() | |
} | |
let elapsedTime: CFAbsoluteTime = CFAbsoluteTimeGetCurrent() - startTime; | |
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
// | |
// ARC Helper | |
// | |
// Version 1.3.1 | |
// | |
// 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 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
/** | |
Copyright (C) 2011 Evan Long | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do | |
so, subject to the following conditions: |
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
#import <Foundation/Foundation.h> | |
static inline NSString* LoremIpsum(NSUInteger count) | |
{ | |
NSString* str = @"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "; | |
while ([str length] < count) { | |
str = [str stringByAppendingString:str]; | |
} | |
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
#!/bin/sh | |
modelds=`find . -name '*.xcdatamodeld'` | |
for modeld in $modelds; do | |
# if xccurrentversion exists | |
if [ -a "${modeld}/.xccurrentversion" ]; then | |
currentModel=`/usr/libexec/PlistBuddy "${modeld}/.xccurrentversion" -c 'print _XCCurrentVersionName'` | |
else | |
currentModel=`ls ${modeld} | grep .xcdatamodel | head -1` |
OlderNewer