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 | |
function fetchProvisioningProfiles() | |
{ | |
ios profiles:download:all --type development | |
DEVELOPMENT_RESULT=$? | |
if [ "$DEVELOPMENT_RESULT" -ne "0" ]; then | |
return 1 | |
fi |
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
find . -name '*.p12' -depth 1 -type f | sed 's/^\.\/\(.\)/\1/' | xargs -I '{}' openssl pkcs12 -passin 'pass:' -in '{}' -out '{}'.pem -nodes |
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
static RACSignal *BodyImageURLs(NSString *postBody) | |
{ | |
NSRange (^lastRangeFromMatch)(NSTextCheckingResult *) = ^(NSTextCheckingResult *match) { | |
if (match == nil) { | |
return NSMakeRange(NSNotFound, 0); | |
} | |
else { | |
return [match rangeAtIndex:match.numberOfRanges - 1]; | |
} | |
}; |
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
Pod::Spec.new do |s| | |
s.name = "ReactiveCocoa" | |
s.version = "3.0-dev" | |
s.summary = "A framework for composing and transforming streams of values." | |
s.homepage = "https://github.com/blog/1107-reactivecocoa-is-now-open-source" | |
s.author = { "Josh Abernathy" => "josh@github.com" } | |
s.source = { :git => "https://github.com/ReactiveCocoa/ReactiveCocoa.git", :commit => "7fe93c972aed2dc1f1c9ac1b75cd955d1773fd35" } | |
s.license = 'MIT' | |
s.description = "ReactiveCocoa (RAC) is an Objective-C framework inspired by Functional Reactive Programming. It provides APIs for composing and transforming streams of values." | |
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
protocol ISubscriber { | |
typealias Element | |
func disposable() -> RACCompoundDisposable | |
func sendNext(e: Element) | |
func sendError(e: NSError) | |
func sendCompleted() | |
} |
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
esm.getHNExact(&rawHeights, sizeof(VHGT), "VHGT"); | |
float base = rawHeights.heightOffset; | |
int currentHeightIndex = 0; | |
for (int y = 0; y < LAND_SIZE; y++) | |
{ | |
uint8_t delta = rawHeights.heightData[currentHeightIndex]; | |
currentHeightIndex++; | |
base += delta; | |
landData->heights[y * LAND_SIZE] = base * HEIGHT_SCALE; |
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) 2006, 2009 The Pampered Chef, Inc. and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* The Pampered Chef, Inc. - initial API and implementation | |
* Tom Schindl - cell editing |
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
public static Node loadColladaModel(final String modelFileStr) throws Exception { | |
final int a = modelFileStr.lastIndexOf("/"); | |
String modelDirStr = modelFileStr.substring(0, a); | |
final String modelNameStr = modelFileStr.substring(modelFileStr.lastIndexOf("/") + 1); | |
final File modelDir = new File(modelDirStr); | |
modelDirStr = modelDir.getAbsolutePath(); | |
final ColladaImporter importer = new ColladaImporter(); |
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
val numbers = io.Source.fromFile("IntegerArray.txt").getLines.map({v => v.toInt}).toArray | |
def analyze(a : Array[Int]) : Tuple2[Long, Array[Int]] = a.size match { | |
case 1 => (0, a.clone) | |
case 2 => if (a(0) > a(1)) (1, a.reverse) else (0, a) | |
case _ => { | |
val l = a.size / 2 | |
val (lcount, larr) = analyze(a.slice(0, l).toArray) | |
val (rcount, rarr) = analyze(a.slice(l, a.size).toArray) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<keymap version="1" name="Eclipse for OS X" parent="Eclipse"> | |
<action id="$Copy"> | |
<keyboard-shortcut first-keystroke="meta C" /> | |
</action> | |
<action id="$Cut"> | |
<keyboard-shortcut first-keystroke="meta X" /> | |
</action> | |
<action id="$Paste"> | |
<keyboard-shortcut first-keystroke="meta V" /> |
OlderNewer