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 bash | |
if [ $# -eq 0 ] | |
then | |
PORT=7777 | |
else | |
PORT="$1" | |
fi | |
HOST="vtt.dungeon20.com" |
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
declare module 'resonance-audio' { | |
export namespace ResonanceAudio { | |
/** Options for constructing a new ResonanceAudio scene */ | |
export interface Options { | |
/** Desired ambisonic Order */ | |
ambisonicOrder?: number; | |
/** The listener's initial position (in meters), where origin is the center of | |
* the room */ | |
listenerPosition?: Float32Array; |
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/bash | |
export set DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer | |
for i in `find . -type f -name \*.crash`; do | |
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash $i --verbose --output $i.sym | |
mv $i $i.bak | |
mv $i.sym $i | |
done |
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
import Foundation | |
enum APIResult<T> { | |
case success(T) | |
case error(Error) | |
} | |
extension APIResult { | |
var error: Error? { |
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
SELECT date_trunc('day', "date") "timestamp", SUM(prints) prints, SUM(opens) opens, SUM(link_opens) link_opens, SUM(new_users) new_users, SUM(unique_users) unique_users | |
FROM app_hourly_stats | |
WHERE app_id = 6 | |
GROUP BY "timestamp" | |
ORDER BY "timestamp" ASC |
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
TRACEROUTE: | |
traceroute to 47.59.21.109 (47.59.21.109), 15 hops max, 60 byte packets | |
1 Blizzard (Blizzard) 0.584 ms 0.640 ms 0.715 ms | |
2 * * * | |
3 37.244.10.102 (37.244.10.102) 2.248 ms 2.279 ms 2.380 ms | |
4 37.244.10.34 (37.244.10.34) 3.583 ms 5.059 ms 5.062 ms | |
5 amsix.xcr1.att.cw.net (80.249.209.144) 0.943 ms 0.943 ms 1.095 ms | |
6 et-10-1-0-xcr1.ptl.cw.net (195.2.8.26) 11.047 ms 11.561 ms 11.550 ms | |
7 ae0-xcr1.mal.cw.net (195.2.30.182) 30.037 ms 30.036 ms 30.026 ms | |
8 * * * |
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
import Foundation | |
import FutureKit | |
extension Future { | |
// Executes the block iff the future is successful and leaves the result immutable | |
public final func then(executor : Executor, block: T throws -> Void) -> Future<T> { | |
return onSuccess(executor) { (result: T) -> Completion<T> in | |
do { | |
try block(result) | |
return .Success(result) |
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
using System; | |
using ObjCRuntime; | |
[assembly: LinkWith ("libMLPAutoCompleteTextFieldSDK.a", LinkTarget.Simulator | LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Arm64, Frameworks = "CoreGraphics", ForceLoad = true)] |
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
- (BOOL)shouldRegisterDeviceWithAlias:(NSString *)alias token:(NSString *)token { | |
return alias.length > 0; | |
} |
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
using System; | |
using System.Drawing; | |
using MonoTouch.UIKit; | |
namespace TwinCoders.TouchUtils.CodeViews | |
{ | |
public abstract class CodeIcon : CodeImage | |
{ | |
public UIColor FillColor { get; set; } | |
public float WidthHeightProportion { get; private set; } |
NewerOlder