- Visit: https://github.com/Microsoft/team-explorer-everywhere/releases
- Download:
TEE-CLC-14.114.0.zip
(if version is 14.114.0) - Unzip it and put it somewhere like in your
$HOME
directory. - Create an alias in your shell profile file (
~/.zshrc
for zsh for example):
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
[ | |
{ | |
"country": "Afghanistan", | |
"continent": "Asia" | |
}, | |
{ | |
"country": "Albania", | |
"continent": "Europe" | |
}, | |
{ |
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
.observablehq .octicon { | |
display: inline-block; | |
fill: currentColor; | |
vertical-align: text-bottom; | |
} | |
.observablehq .anchor { | |
float: left; | |
line-height: 1; | |
margin-left: -20px; |
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
{ | |
"date": "2018-09-05", | |
"channelName": "RTS", | |
"programmes": [ | |
{ | |
"id": "2367276", | |
"start": 1538715600000, | |
"name": "La Matinale en vidéo", | |
"fileSize": 28354000 | |
}, |
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
const omit = (keys, obj) => | |
Object.entries(obj) | |
.filter(([ key ]) => !keys.includes(key)) | |
.reduce((acc, [key, value]) => Object.assign({}, acc, { | |
[key]: value, | |
}), {}); | |
omit(['bar'], { foo: 1, bar: 2, baz: 3 }); // { foo: 1, baz: 3 } |
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
/* global expect jest */ | |
const delay = ms => fn => setTimeout(fn, ms); | |
const mockGlobalProperty = globalObject => key => value => { | |
// save original implementation in order to unmock later | |
const original = globalObject[key]; | |
// mock key on the global object | |
Object.defineProperty(globalObject, key, { value, writable: true }); |
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
const capTo = n => fn => (...args) => fn(...args.slice(0, n)); | |
const capRightTo = n => fn => (...args) => fn(...args.slice(-n)); | |
const cap = capTo(0); | |
const add = (a, b) => a + b; | |
const sum = (...args) => args.reduce(add, 0); | |
// Simple Example | |
sum(1, 2, 3, 4); // --> 10 |
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
const parseRgx = rgx => s => { | |
const keys = ['_global', ...rgx.match(/\$(\w+):/g).map(k => k.replace(/\$|:/g,''))]; | |
const matches = s.match(new RegExp(rgx.replace(/\$\w+:/g,''))) || []; | |
return matches.reduce((res, val, i) => Object.assign({}, res, { [keys[i]]: val }), {}); | |
}; | |
const parseEmail = parseRgx('($user:\\w+)@($domain:\\w+)\\.(?:\\w+)'); | |
parseEmail('[email protected]'); // { _global: "[email protected]", domain: "bar", user: "foo" } |
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
const assign = (obj, key, value) => Object.assign({}, obj, { [key]: value }); | |
const promiseAllObject = obj => { | |
const keys = Object.keys(obj); | |
return Promise.all(Object.values(obj)) | |
.then(results => results.map((val, i) => [keys[i], val])) | |
.then(results => results.reduce((res, val) => assign(res, ...val), {})); | |
} |
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
/* ---------------------------------------------- *\ | |
STATEFUL FUNCTIONAL REACT COMPONENT PROPOSAL | |
\* ---------------------------------------------- */ | |
// event handler can return a state change | |
const handleClick = (props, state) => ({ value: state.value + 1 }); | |
// event handler can return function in order to do a async state change | |
const handleClickAsync = (props, state) => setState => { | |
// setState after 1s |
NewerOlder