C++,python,热爱算法和机器学习
全部博文(1214)
发布时间:2018-08-01 11:55:47
https://ox0spy.github.io/post/aws/note-cross-account-with-roles/方案一在 B-account 上创建一个用户,赋予该用户访问 S3 bucket 的权限,为该用户生成 aws key,然后用 aws key 访问 B-account S3。但,这个方案并不好:需要创建新的用户应该尽可能的减少使用 aws key,而多使.........【阅读全文】
发布时间:2018-07-20 11:10:38
https://davidwalsh.name/es6-generatorsThe way we control generator functions from the outside is to construct and interact with a generator iterator. That sounds a lot more complicated than it really is. Consider this silly example:To step through the values of that *foo() gene.........【阅读全文】
发布时间:2018-07-20 11:06:23
https://davidwalsh.name/es6-generators"Generator Iterator". Quite a mouthful, huh?The way we control generator functions from the outside is to construct and interact with a generator iterator. That sounds a lot more complicated than it really is. Consider this silly example:To step .........【阅读全文】
发布时间:2018-07-18 15:35:08
Motivationfunction readJSONSync(filename) { return JSON.parse(fs.readFileSync(filename, 'utf8'));}function readJSON(filename, callback){ fs.readFile(filename, 'utf8', function (err, res){ if (err) return callback(err); callback(null, JSON.parse(res)); });}We need to handle errors t.........【阅读全文】
发布时间:2018-07-18 15:02:00
https://developer.ibm.com/node/2016/08/24/promises-in-node-js-an-alternative-to-callbacks/var promise = doSomethingAync()promise.then(onFulfilled, onRejected)onFulfilled and onRejected are called when the promise is resolved (the asynchronous processing has complete.........【阅读全文】
chinaunix网友2009-10-12 16:19
你好,你在Google Code上放的sg2fcitx的mainme.c源代码我下载编译会出现段错误。请问你的编译环境是什么?GCC版本是多少? 谢谢。