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
### Keybase proof | |
I hereby claim: | |
* I am kmccanless on github. | |
* I am kmccanless (https://keybase.io/kmccanless) on keybase. | |
* I have a public key ASDjWO559ZYXuKythr8Ba1bBsGGxOKVZkucJhcczjolkrAo | |
To claim this, I am signing this object: |
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 AWS = require('aws-sdk'), | |
_ = require('lodash-node'); | |
//AWS.config.update({region: 'us-east-1'}); | |
var ec2 = new AWS.EC2({region: 'us-east-1'}); | |
var params = { | |
DryRun: false | |
}; |
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 init(list) { | |
var result = []; | |
for (var i = 0; i < list.length; i++) { | |
var item = 'item' + list[i]; | |
result.push(function () { | |
alert(item + '' + list[i]) | |
}); | |
} | |
return result; | |
} |