- One commit per pull request. Squash commits before merging.
- Strive for one feature or bugfix per pull request.
- Link the pull request to a jira using the git branch name.
- The branch name of the pull request has the following convention: feature|bugfix/MTB-####-short-description-of-change
This is a summary of the Octave Tutorial of the Coursera Machine Learning course by Andrew Ng.
>> 5 + 6
ans = 11
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="author" content="Thomas Junghans"> |
If you have multiple promises, an array of promises, and you want to perform an action after they all have resolved you can use Promise.resolve()
.
However if you'd like the same result, whilst having the promises called in order you will need to come up with a custom solution because there is no
api for that.
Let's create a promise factory to generate our promises that we want to execute in sequence:
function createP(id) {
Although the title contains "TypeScript" what I'm about to show is not TypeScript specific and can and should also be done with JavaScript. The reason I am writing in the context of TypeScript is because we rely on TypeScript for type checking in most cases. An exception is when we get data from an API response such as HTTP GET and expect the data to be a certain type.
The advantage of TypeScript is that it can check variable, property, argument and function/method return types during compilation, catching errors that would possibly be thrown during run time. TypeScript cannot anticipate the shape of an API response, hence we cannot rely on TypeScripts type checking and need to do this manually.
interface Car {
function log(value, label = "-") { | |
console.log(" "); | |
console.log(" "); | |
console.log(label, JSON.stringify(value, null, " ")); | |
} |
# Run Chrome as IE11 | |
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; Ypkch32; rv:11.0) like Gecko" |