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
# This is Git's per-user configuration file. | |
[user] | |
# Please adapt and uncomment the following lines: | |
name = YourName | |
email = test@test.com | |
# This is Git's per-user configuration file. | |
[merge] | |
tool = meld | |
conflictstyle = diff3 | |
[core] |
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
public class Program | |
{ | |
/* Demonstrate Async Await | |
* This is a good starting point to understand async: http://blog.stephencleary.com/2012/02/async-and-await.html | |
* Slightly confuse between Task and Thread?: https://youtu.be/No7QqSc5cl8 | |
* Here's some good videos: | |
* * Task Parallel Library - https://youtu.be/gfkuD_eWM5Y | |
* * Async & Await - https://youtu.be/DqjIQiZ_ql4 | |
* Bad Practice: | |
* Don't use Wait() use await |
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
/* Context: | |
* We are building an array of http calls that needs to be run synchronously (ie in serial). | |
* We have no idea how many calls we need to make so we have to go through an array but not have it run async. | |
* | |
* What's Involve: | |
* - angular's $http & $q to deal with promises, so we can resolve the calls when we want to. | |
* See: http://www.codelord.net/2015/09/24/$q-dot-defer-youre-doing-it-wrong/ | |
* - Array.reduce to cascade down the array, with knowing the current and next value. | |
* See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce | |
* - Lodash to do collection manipulation for us. |
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
# Referencing to https://gist.github.com/octocat/9257657# | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
# *.dll - some work projects do want to include this | |
# *.exe - some work projects do want to include this | |
# *.o | |
# *.so |
NewerOlder