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
/*! Socket.IO.js build:0.9.6, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */ | |
/** | |
* Originally Ported to titanium by Jordi Domenech <jordi@iamyellow.net> | |
* source: https://github.com/iamyellow/socket.io-client | |
*/ | |
this.io = {}; | |
module.exports = this.io; | |
/** |
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"?> | |
<projectDescription> | |
<name>g_2tabbed</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>com.appcelerator.titanium.core.builder</name> | |
<arguments> |
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 iOS7 only, set the window's top to 20 so they start under the status bar. | |
Alloy.Globals.windowTop = (OS_IOS && parseInt(Ti.Platform.version[0], 10) >= 7) ? 20 : 0; |
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
task("pre:compile", function(event,logger) { | |
logger.info('----- PRE:COMPILE -----'); | |
}); | |
task("post:compile",function(event,logger){ | |
logger.info('----- POST:COMPILE -----'); | |
var fs = require('fs'), | |
path = require('path'), | |
platform = event.alloyConfig.platform === 'ios' ? 'iphone' : event.alloyConfig.platform; // Resources/iphone |
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 interface | |
@interface UBNTDiscardableThumbnail : NSObject<NSDiscardableContent> | |
+ (instancetype)discardableThumbnailWithImage:(UIImage *)image; | |
- (instancetype)initWithImage:(UIImage *)thumbnail; | |
@property (nonatomic, readonly) UIImage *thumbnail; | |
@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
/** | |
* Available node core libraries | |
*/ | |
var node = require('node') | |
, assert = node.assert | |
, buffer = node.buffer | |
, events = node.events | |
, net = node.net | |
, stream = node.stream |
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 debounce(delay: Int, queue: DispatchQueue, action: (()->()) ) -> ()->() { | |
var lastFireTime = DispatchTime.now() | |
let dispatchDelay = DispatchTimeInterval.seconds(delay) | |
return { | |
lastFireTime = DispatchTime.now() | |
let dispatchTime: DispatchTime = lastFireTime + dispatchDelay | |
queue.after(when: dispatchTime) { | |
let when: DispatchTime = lastFireTime + dispatchDelay | |
let now = DispatchTime.now() |
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
// Actual gzipping from https://github.com/1024jp/NSData-GZIP | |
// Example: ParameterEncoding.JSON.gzipped | |
infix operator • { associativity left } | |
func • <A, B, C>(f: B -> C, g: A -> B) -> A -> C { | |
return { x in f(g(x)) } | |
} | |
extension ParameterEncoding { |
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/bash | |
if [[ $BASH_SOURCE != $0 ]]; then echo "$BASH_SOURCE must be executed, not sourced."; return 255; fi | |
# | |
# A script to fool iOS playgrounds into allowing access to CommonCrypto | |
# | |
# The script creates a dummy CommonCrypto.framework in the SDK's System | |
# Framework Library Directory with a module map that points to the | |
# umbrella header | |
# | |
# Usage: |
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
actions=true | |
ads=true | |
analytics=true | |
appindexing=true | |
appstate=true | |
auth=true | |
cast=true | |
common=true | |
drive=false | |
dynamic=true |