Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mattyod on github.
  • I am mattyod (https://keybase.io/mattyod) on keybase.
  • I have a public key ASBobkXg9MJEFKl2jLGy2q3c8AopRdhWrE796WQxMylB3Ao

To claim this, I am signing this object:

writeFile.write.args.map(arg => arg.map(file => fs.writeFileSync(`${__dirname}/../fixtures/parse/${file.fileName}.js`, file.code)));
"pack": "bash -c 'node src/$0.js > $0.json && zip $0.zip $0.json && rm -rf $0.json'",
data:text/html, <html style="font-family: sans-serif; background-color: #00171f; color:#fdfffc; padding: 20px; font-size:16px;" contenteditable>
'use strict';
var http = require('http'),
fs = require('fs');
var filePath = './feeds/feed.json';
http.createServer(function (req, res) {
var readStream;
var demethodise = function (fn) {
var curry = [].slice.call(arguments, 1);
return function () {
var args = curry.concat([].slice.call(arguments, 1));
return fn.apply(arguments[0], args);
};
};
@mattyod
mattyod / .jshintrc
Created March 12, 2015 10:15
A jshintrc file for Node app
{
"predef": [
],
"node": true,
"bitwise" : true,
"curly" : true,
"eqeqeq" : true,
"forin" : true,
@mattyod
mattyod / get ip
Created December 22, 2014 09:18
ip
ifconfig | grep 'inet' | cut -d: -f2 | awk '{ print $2}'
@mattyod
mattyod / jscsrc
Last active July 19, 2016 19:33
JSCS
{
"requireCamelCaseOrUpperCaseIdentifiers" : "ignoreProperties",
"requireParenthesesAroundIIFE" : true,
"requireCapitalizedConstructors" : true,
"disallowEmptyBlocks" : true,
"requireDotNotation" : true,
"requireCurlyBraces" : ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords" : ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
Vagrant.configure("2") do |config|
#provider blocks
config.vm.provider :virtualbox do |config, override|
override.vm.box = "opscode-ubuntu-12.04"
override.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"
config.vm.network :private_network, ip: "192.168.56.11"
config.customize ["modifyvm", :id, "--memory", 1024]
end