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 cluster = require('cluster'); | |
const MULTIPLY_EVENT = 'multiply'; | |
if (cluster.isMaster) { | |
(function run({ dataset, compare, length }) { | |
if (global.gc) global.gc(); | |
const results = []; |
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 loading node module bin files into PATH | |
NPM_LOCAL_MODULES=/dev/null | |
function npm_bin_loader() { | |
CURRENT_NPM_MODULE=$NPM_LOCAL_MODULES | |
if [ -d "node_modules" ] | |
then | |
NPM_LOCAL_MODULES="$(pwd)/node_modules/.bin" |
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 { graphql, buildSchema, introspectionQuery } = require('graphql'); | |
const importSchema = require('./importSchema'); | |
module.exports = async function buildSchemaDocument({ | |
// schema.graphql | |
schemaPath, | |
// schema.json | |
outputPath, |
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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |