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
/** | |
Provides the ability to verify key paths at compile time. | |
If "keyPath" does not exist, a compile-time error will be generated. | |
Example: | |
// Verifies "isFinished" exists on "operation". | |
NSString *key = SQKeyPath(operation, isFinished); | |
// Verifies "isFinished" exists on self. |
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
function swift | |
set developer_dir $DEVELOPER_DIR | |
set -x DEVELOPER_DIR /Applications/Xcode6-Beta.app/Contents/Developer/ | |
xcrun swift | |
if echo $developer_dir | grep "/" | |
set -x DEVELOPER_DIR $developer_dir | |
else | |
set -e DEVELOPER_DIR | |
end | |
end |
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 | |
struct SetGenerator<T:Hashable> : Generator { | |
var backingGenerator: DictionaryGenerator<T, Void> | |
init(backingGenerator: DictionaryGenerator<T, Void>) { | |
self.backingGenerator = backingGenerator; | |
} |
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
def get_local_timezone_str | |
# Yes, this is actually a shell script… | |
olsontz = `if [ -f /etc/timezone ]; then | |
cat /etc/timezone | |
elif [ -h /etc/localtime ]; then | |
readlink /etc/localtime | sed "s/\\/usr\\/share\\/zoneinfo\\///" | |
else | |
checksum=\`md5sum /etc/localtime | cut -d' ' -f1\` | |
find /usr/share/zoneinfo/ -type f -exec md5sum {} \\; | grep "^$checksum" | sed "s/.*\\/usr\\/share\\/zoneinfo\\///" | head -n 1 | |
fi`.chomp |
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
#include "scheduler.h" | |
#include <stddef.h> | |
#include <stdbool.h> | |
// | |
// Compatibility macros | |
// | |
// Missing from Arduino toolchain | |
#ifndef UINT16_MAX |
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
func ==<T:Feed>(lhs: T, rhs: T) -> Bool { | |
return lhs.link == rhs.link | |
} | |
protocol Feed : Equatable { | |
var link : String {get} | |
} | |
protocol Folder { | |
typealias FeedType: Feed |
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 © 2011 by Alexander Micek and Scott Perry | |
* Released under the MIT License; its terms are at the end of this file. | |
* | |
* This file depends on: | |
* • jQuery (tested against v1.4.2) | |
* http://jquery.com/ | |
* • jQuery doTimeout (tested against v1.0) | |
* by "Cowboy" Ben Alman | |
* http://benalman.com/projects/jquery-dotimeout-plugin/ |
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 © 2011 by Scott Perry | |
* Released under the MIT License; its terms are at the end of this file. | |
* | |
* This file depends on: | |
* • jQuery (tested against v1.4.2) | |
* http://jquery.com/ | |
* | |
* To use this file, ensure that: | |
* • jkInterestingElements() returns all available scroll targets |
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 © 2011 by Scott Perry | |
* Released under the MIT License; its terms are at the end of this file. | |
* | |
* This file depends on: | |
* • jQuery (tested against v1.4.2) | |
* http://jquery.com/ | |
* | |
* Pages that include this file should load all their javascript files (other |
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
// | |
// Generated on Sun Dec 02 00:41:17 -0800 2012. | |
// Contents copyright © 2012 Scott Perry (http://numist.net) | |
// | |
// 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: | |
// | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
OlderNewer