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
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event | |
{ | |
for (UIControl *control in self.view.subviews) { | |
if ([control isKindOfClass:[UITextField class]]) { | |
[control endEditing:YES]; | |
} | |
} | |
} |
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
var fs = require('fs'), | |
querystring = require('querystring'), | |
redis = require('redis'), | |
r = redis.createClient(), | |
allowedTypes = { | |
'text/javascript': 'js', | |
'text/css': 'css', | |
'image/png': 'png', | |
'image/jpeg': 'jpg', |
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
meteor create --example todos | |
meteor bundle myapp.tgz | |
tar xzf myapp.tgz | |
cd bundle | |
(create package json with settings below) | |
jitsu databases create mongo <dbname> | |
(grab dbstring) | |
jitsu env set PORT 3000 | |
jitsu env set MONGO_URL <dbstring> | |
jitsu deploy |
NewerOlder