This file contains hidden or 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
| using System; | |
| namespace DependencyInjection | |
| { | |
| public interface IDependent | |
| { | |
| void DoSomething(); | |
| } | |
| public class Dependent1 : IDependent | |
| { |
This file contains hidden or 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
| using System; | |
| namespace DependencyInjection | |
| { | |
| public interface IDependent | |
| { | |
| void DoSomething(); | |
| } | |
| public class Dependent1 : IDependent | |
| { |
This file contains hidden or 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
| using System; | |
| namespace DependencyInjection | |
| { | |
| public interface IDependent | |
| { | |
| void DoSomething(); | |
| } | |
| public class Dependent1 : IDependent | |
| { |
This file contains hidden or 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
| using System; | |
| namespace DependencyInjection | |
| { | |
| public interface IDependent | |
| { | |
| void DoSomething(); | |
| } | |
| public class Dependent1 : IDependent | |
| { |
This file contains hidden or 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
| using System; | |
| namespace DependencyInjection | |
| { | |
| public interface IDependent | |
| { | |
| void DoSomething(); | |
| } | |
| public class Dependent1 : IDependent | |
| { |
This file contains hidden or 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
| --log_gc (Log heap samples on garbage collection for the hp2ps tool.) | |
| type: bool default: false | |
| --expose_gc (expose gc extension) | |
| type: bool default: false | |
| --max_new_space_size (max size of the new generation (in kBytes)) | |
| type: int default: 0 | |
| --max_old_space_size (max size of the old generation (in Mbytes)) | |
| type: int default: 0 | |
| --max_executable_size (max size of executable memory (in Mbytes)) | |
| type: int default: 0 |
This file contains hidden or 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
| let params = { | |
| TableName: 'xxx', | |
| Limit: 50 // Configure based on needs | |
| }; | |
| let aItems = []; | |
| const recursiveScan = (params) => { | |
| return client.scan(params).promise().then((data) => { | |
| // Simple Changes to input, optional | |
| let newItems = data.Items.map((item) => { | |
| return item; |
This file contains hidden or 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
| # remove commits local and remoute | |
| git checkout <remoute branch> | |
| git reset --hard <last_working_commit_id> | |
| git push --force |
This file contains hidden or 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
| // under Google Chrome 36 | |
| Object.prototype.toString.call([]) | |
| // "[object Array]" | |
| Object.prototype.toString.call(function(){}) | |
| // "[object Function]" | |
| Object.prototype.toString.call({}) | |
| // "[object Object]" | |
| Object.prototype.toString.call(null) | |
| // "[object Null]" |
This file contains hidden or 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
| const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = async (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) |
NewerOlder