- Visit the milestone at eg. https://github.com/USER/REPO/milestone/1
- Run this in your console
[...document.querySelectorAll('.from-avatar')].map(el => el.getAttribute('alt'))
- An array of GitHub usernames will be logged.
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
const childProcess = require('child_process'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const glob = require('glob'); | |
const filePaths = glob | |
.sync('package.json') | |
.concat(glob.sync('packages/*/package.json')) | |
.map(filePath => path.resolve(process.cwd(), filePath)); |
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
const exec = require('child_process').exec; | |
const sortBy = (key, reverse) => { | |
const moveSmaller = reverse ? 1 : -1; | |
const moveLarger = reverse ? -1 : 1; | |
return (a, b) => { | |
if (a[key] < b[key]) { | |
return moveSmaller; | |
} | |
if (a[key] > b[key]) { |
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
function Maybe(x) { | |
if (this instanceof Maybe === false) { | |
return new Maybe(x); | |
} | |
this.value = x; | |
} | |
Maybe.prototype.map = fn => (this.value == null ? this : new Maybe(fn(this.value))); | |
function Either(left, right) { |
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
import chalk from 'chalk'; | |
export const info = message => console.log(chalk.blue('i %s'), message); | |
export const warning = message => console.log(chalk.yellow('! %s'), message); | |
export const error = message => err => | |
console.log(chalk.red('! %s\n\n! %s'), message, String(err.stack).replace(/^/gm, ' ')); | |
export const verbose = |
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
code --install-extension akamud.vscode-caniuse && \ | |
code --install-extension andys8.jest-snippets && \ | |
code --install-extension auiworks.amvim && \ | |
code --install-extension bibhasdn.unique-lines && \ | |
code --install-extension christian-kohler.npm-intellisense && \ | |
code --install-extension cssho.vscode-svgviewer && \ | |
code --install-extension dbaeumer.vscode-eslint && \ | |
code --install-extension dzannotti.vscode-babel-coloring && \ | |
code --install-extension eamodio.gitlens && \ | |
code --install-extension eg2.tslint && \ |
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
/* | |
* turn this into a bookmarklet using https://mrcoles.com/bookmarklet/ | |
*/ | |
(function() { | |
var colors = { | |
'data-content-id': '#cddc39', | |
'data-test-id': '#4dd0e1', | |
default: '#fff176' | |
}; | |
function showAttribute(attrName) { |