-
Shortened URL for this gist: https://git.io/v68XM
-
GitHub repository: ES6 in Motion
-
Arrow Functions
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
stage 'CI' | |
node { | |
git branch: 'jenkins2-course', | |
url: 'https://github.com/g0t4/solitaire-systemjs-course' | |
// pull dependencies from npm | |
// on windows use: bat 'npm install' | |
sh 'npm install' |
Link to these links: https://git.io/vKSVZ
Module 1:
- Run jenkins from war file:
jenkins -jar jenkins.war
- Run jenkins from docker:
docker run -d \
--restart unless-stopped \
--name jenkins \
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
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description></description> | |
<keepDependencies>false</keepDependencies> | |
<properties/> | |
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.2"> | |
<configVersion>2</configVersion> | |
<userRemoteConfigs> | |
<hudson.plugins.git.UserRemoteConfig> |
From my Pluralsight course: https://app.pluralsight.com/library/courses/asynchronous-javascript-reasoning/table-of-contents
- Weather http://plnkr.co/edit/ZOAaSdtnfvR6WwiuVZ6s
- Avoid Blocking – Red Background http://plnkr.co/edit/z29VyH5BPvC4oc40EyOu
- setTimeout Pyramid Challenge http://plnkr.co/edit/DGiHFQOQfnipCcpex2RH
- Drag and Drop Red Box http://plnkr.co/edit/SmSpPS5ZgPvkgn8RE6y1
- Timer onReady http://plnkr.co/edit/gafgKCrxnDIJ6YaG9Jpx
- Timer measure http://plnkr.co/edit/kPOgzEuIvUmN4o6Jenem
- Progress Number Crunching - Web Worker https://plnkr.co/edit/Yy7BOZU9sIa8EyrxJwGH
- Event Listeners Are Synchronous http://plnkr.co/edit/mDvSHpF3HcTjtvltGmQn
- Node - a physical or virtual machine that hosts services
- Nodes also referred to as members.
- Examples
- Your computer
- An AWS EC2 instance
- A bare metal machine in your private data center
- Service - executing software that provides utility via an interface
- Typically long-lived process listening on a port(s)
- Examples
- A web server (nginx, apache, iis)
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
version: '2' | |
services: | |
teamcity: | |
image: sjoerdmulder/teamcity | |
ports: | |
- 8111:8111 | |
teamcity-agent: | |
image: sjoerdmulder/teamcity-agent | |
environment: |
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 normalize = System.normalize; | |
System.normalize = function (name, parentName, parentAddress) { | |
console.log("normalize: " + JSON.stringify({ | |
name: name, | |
parentName: parentName, | |
parentAddress: parentAddress | |
})); | |
return normalize.call(this, name, parentName, parentAddress); | |
}; |
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
private QueryAnalysis[] GetQueriesToAnalyze() | |
{ | |
var queries = _Project.GetRulesInProjectFileAndInRuleFilesAndDeclaredInSourceCode(_Analysis.RulesExtractedFromCode).RootParent; | |
var activeQueries = queries.GetActiveQueries(); | |
var compiledQueriesByQueryString = GetCompiledQueriesByQueryString(activeQueries); | |
var justMyCode = queries.ComputeJustMyCode(_Analysis.CodeBase); | |
return activeQueries | |
.Select(query => new QueryAnalysis(query, compiledQueriesByQueryString[query.QueryString], justMyCode, _Project)) | |
.ToArray(); |
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 ArgumentBuilder(private val runnerParameters: Map<String, String>) { | |
public fun build(): List<String> { | |
return arrayListOf<String>() | |
.addIfSet("--Project", RunnerSettings.PROJECT_FILE) | |
.addIfSet("--Output", RunnerSettings.OUTPUT) | |
.addFlagIfSet("--Flag1", RunnerSettings.FLAG_1) | |
.addFlagIfSet("--Flag2", RunnerSettings.FLAG_2) | |
.addFlagIfSet("--Flag3", RunnerSettings.FLAG_3) | |
.addMultipleIfSet("--InputFiles", RunnerSettings.INPUTS) |