Skip to content

Instantly share code, notes, and snippets.

View refack's full-sized avatar
🕺
status

Refael Ackermann refack

🕺
status
View GitHub Profile
@refack
refack / package.json
Last active November 10, 2018 22:54 — forked from hudochenkov/package.json
{"name": "sort-error", "version": "0.0.0", "bin": "./sort.js"}
@refack
refack / node-check-collaborators.js
Last active May 11, 2017 20:37 — forked from vsemozhetbyt/node-check-collaborators.js
Check if comment authors in PRs are Node.js collaborators
javascript: {
const collaboratorsUsernames = [];
function getPage(url) {
return fetch(url, {mode: 'same-origin', credentials: 'same-origin'}).then(r => {
return r.text();
}).then(text => {
const x = /itemprop="name"\>(\w+)\<\/span>/g;
let r;
while ((r = x.exec(text)) !== null) {
r[1] && collaboratorsUsernames.push(r[1].trim().toLowerCase());