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
/* eslint-disable no-param-reassign */ | |
/* eslint-disable object-curly-newline */ | |
// requirements | |
const ws = require('ws'); | |
const { SubscriptionServer } = require('subscriptions-transport-ws'); | |
const { formatApolloErrors } = require('apollo-server-errors'); | |
const { execute, subscribe } = require('graphql'); | |
// export patch |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var width = 960, |
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
#!/bin/sh -e | |
# /etc/rc.local | |
### BEGIN INIT INFO | |
# Provides: vmbootstrap | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: vmbootstrap |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// npm install lodash glob | |
// dependencies | |
var glob = require('glob'); | |
var _ = require('lodash'); | |
var path = require('path'); | |
var fs = require('fs'); | |
// unformatted files are in a subfolder 'index' | |
// output subfolder 'parsed' has already been made |
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
find . -name "node_modules" -exec rm -rf '{}' + |
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
'use strict'; | |
// instructions | |
// 0. save this code to sing.js | |
// 1. npm install request cheerio commander | |
// 2. node sing.js -l http://tinyurl.com/qxmreql -s 50 | |
// dependencies | |
var request = require('request') | |
, cheerio = require('cheerio') |
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
'use strict'; | |
///////////////////// | |
// COLLECTIEF HUGS // | |
///////////////////// | |
// dependencies | |
var inquirer = require('inquirer') | |
, nyanstream = require('nyanstream') | |
, colors = require('colors') |