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
/*Main.java*/ | |
public class Main { | |
public static void main(String[] args) { | |
Animal dog = new Dog(); | |
dog = new Name(dog, "Fido"); | |
dog = new Color(dog, "brown"); |
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
uploadS3: function (file, callback, callbackArgs) { | |
var s3 = new AWS.S3(); | |
var options = { | |
partSize: 10 * 1024 * 1024, | |
queueSize: 1 | |
}; | |
s3.upload(file, options, function (error, data) { | |
if (callback) { | |
Meteor.wrapAsync(Meteor.call(callback, callbackArgs, {error: error, data: data})); //Barfs | |
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
https://github.com/mitsuhiko/click/blob/master/click/_bashcomplete.py#L42 | |
def do_complete(cli, prog_name): | |
cwords = split_arg_string(os.environ['COMP_WORDS']) | |
cword = int(os.environ['COMP_CWORD']) | |
args = cwords[1:cword] | |
try: | |
incomplete = cwords[cword] | |
except IndexError: | |
incomplete = '' |
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
http://www.spritekitlessons.com/day-5-learn-sprite-kit-and-swift/ |
OlderNewer