Skip to content

Instantly share code, notes, and snippets.

View mscandal's full-sized avatar
🌱

Matt Scandalis mscandal

🌱
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mscandal on github.
  • I am mscandal (https://keybase.io/mscandal) on keybase.
  • I have a public key ASBVjXGU4g2w-0PrZ7g5O6MOR4C9EqCe4DrYPP4s1INX0Qo

To claim this, I am signing this object:

@mscandal
mscandal / -Users-mscandal-.bash_profile
Last active September 30, 2015 22:31
.bash_profile
#!/bin/bash
. resty
. /usr/local/etc/bash_completion.d/git-completion.bash
. /usr/local/etc/bash_completion.d/git-prompt.sh
COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
export COMP_WORDBREAKS
@mscandal
mscandal / -Users-mscandal-ga.js
Last active September 30, 2015 22:30
git regex add
const co = require('co');
const spawn = require('child_process').spawn;
const minimatch = require('minimatch');
const pathfinder = /\s*.+\s+(.*)/;
const r = require('readline').createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
@mscandal
mscandal / gist:5fa8a0b4b49fe2b00493
Created August 25, 2015 15:38
npm i leveldown --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node', '/opt/local/bin/npm', 'i', 'leveldown', '--verbose' ]
npm info using npm@2.14.0
npm info using node@v0.10.33
npm verb install initial load of /home/bloompop/Bloompop/package.json
npm WARN package.json Bloompop@0.0.0 license should be a valid SPDX license expression
npm verb installManyTop reading scoped package data from /home/bloompop/Bloompop/node_modules/aws-sdk/package.json
npm verb installManyTop reading scoped package data from /home/bloompop/Bloompop/node_modules/bcrypt/package.json
npm verb installManyTop reading scoped package data from /home/bloompop/Bloompop/node_modules/browserify/package.json
npm verb installManyTop reading scoped package data from /home/bloompop/Bloompop/node_modules/cheerio/package.json
var ship, bullet;
window.onload = function() {
var angle;
var button1 = 'up';
var button2 = 'up';
ship = (function() {
var xVel = 10;
var yVel = 10;
var vel = 0;
var five = require('johnny-five'),
board, b1, b2;
board = new five.Board();
module.exports.ready = function(callback) {
board.on('ready', function() {
b1 = new five.Button(8);
b2 = new five.Button(12);
var express = require('express');
var app = express();
var http = require('http');
var server = http.createServer(app);
var io = require('socket.io')(server);
app.use(express.static(__dirname + '/public'));
var paddle = require('./../paddle');