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 arr = [10, 11, 12, 13]; | |
console.log(arr.length); // 4 | |
arr.foo = "bar"; | |
console.log(arr.length); // 4 | |
console.log(1 in arr); // true | |
console.log(arr[10] === undefined); // true | |
console.log(10 in arr); // false |
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
class Alpha { | |
constructor() { | |
this.a = "red"; | |
this.#b = "green"; | |
} | |
identify() { | |
console.log(this.a, this.#b); | |
} | |
} |
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
class A { | |
__identify() { | |
return "Class A" | |
} | |
idNotBound() { | |
return this.__identify() | |
} | |
idBound = () => { |
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
#! /usr/local/bin/node | |
"use strict"; | |
var wordsPerLine = 4; | |
var crypto = require("crypto"); | |
var fs = require("fs"); | |
var words = JSON.parse(fs.readFileSync(__dirname + "/words.json").toString("UTF8")).words; | |
var count = words.length; |
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
node { | |
stage('Alpha') { | |
sh 'echo doing stuff' | |
sh 'sleep 10' | |
} | |
stage('Bravo') { | |
sh 'echo doing stuff' | |
sh 'sleep 10' | |
} | |
stage('Charlie') { |
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
class Foo extends Error { | |
type: string; | |
constructor(type: string, message: string) { | |
super(message); | |
// Clean up the changes made by super() | |
this.constructor = Foo; | |
if ((Object as any).setPrototypeOf) { |
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
Example showing structure: | |
[ | |
{ | |
"name": "Alpha", | |
"children": [ | |
{ | |
"name": "Homer", | |
"children": [], | |
"state": "not_built", |
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
stage ("Alpha") { | |
echo "From Alpha" | |
} | |
stage ("Bravo-stack") { | |
parallel( | |
alpha: { | |
echo 'Bravo-alpha' | |
}, | |
bravo: { | |
echo 'Bravo-bravo' |
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
pipeline { | |
agent any | |
stages { | |
stage("Alpha") { | |
steps { | |
echo "From Alpha" | |
} | |
} | |
stage('Tall') { |
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
pipeline { | |
agent any | |
stages { | |
stage('T1 Triggers Bug') { | |
parallel { | |
// Removing T1-S1 completely does not trigger bug | |
stage('T1-S1') { | |
stages { |