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 fs = require('fs'); | |
const parse = require('csv-parse'); | |
const all = fs.readFileSync('./all.csv'); | |
const confirm = fs.readFileSync('./confirm.csv'); | |
parse(all, {}, (err, allMembers) => { | |
parse(confirm, {}, (err, confirmedMembers) => { | |
const confirmedMembersEmails = {}; | |
confirmedMembers.forEach(member => { |
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
#!/bin/bash | |
case "$OSTYPE" in | |
darwin*) PLATFORM="OSX" ;; | |
linux*) PLATFORM="LINUX" ;; | |
bsd*) PLATFORM="BSD" ;; | |
*) PLATFORM="UNKNOWN" ;; | |
esac | |
replace() { |
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
// Полная запись deps-сущности | |
{ | |
block : 'bBlock', | |
elem : 'elem', | |
mod : 'modName', | |
val : 'modValue', | |
tech : 'techName', // технология, для которой собираются зависимости (например, js) | |
mustDeps : [], // подключатся до блока | |
shouldDeps : [], // порядок подключения не важен (важно лишь подключить) |
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/bin/env node | |
/* | |
* File watch and exec command cli tool. | |
* | |
* Example | |
* | |
* $ watcher *.less -- lessc style.less style.css | |
* | |
*/ |
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
for (var i = 0; i < 1024 * 1024; i++) { | |
process.nextTick(function () { Math.sqrt(i) } ) | |
} |