Skip to content

Instantly share code, notes, and snippets.

View made-by-chris's full-sized avatar
🏁

Christopher Shelley made-by-chris

🏁
View GitHub Profile
grunt serve
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
for(i = 0;i < 10; i++){
console.log(process.argv[2[i]]);
}
sudo yo
events.js:85
throw er; // Unhandled 'error' event
^
Error: EACCES, permission denied '/home/bl/dev/deskbox/node_modules'
at Error (native)
at Object.fs.readdirSync (evalmachine.<anonymous>:682:18)
at Glob._readdir (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:682:20)
at Glob._process (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:458:15)
at Glob.iterator (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:193:10)
module.js:338
throw err;
^
Error: Cannot find module './lib/env'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/bl/node_modules/generator-node-webkit/node_modules/yeoman-generator/index.js:7:19)
at Module._compile (module.js:460:26)
events.js:85
throw er; // Unhandled 'error' event
^
Error: EACCES, permission denied '/home/b/dev/webkit/node_modules'
at Error (native)
at Object.fs.readdirSync (evalmachine.<anonymous>:682:18)
at Glob._readdir (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:682:20)
at Glob._process (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:458:15)
at Glob.iterator (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/glob/glob.js:193:10)
at Array.forEach (native)
[10051:10051:0719/160255:13938268133:FATAL:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
./breach: line 6: 10051 Aborted (core dumped) $SRC_DIR/__AUTO_UPDATE_BUNDLE__/exo_browser/exo_browser --raw $SRC_DIR/__AUTO_UPDATE_BUNDLE__/breach_core
@made-by-chris
made-by-chris / gist:a02e72de6f40de045506
Created July 26, 2014 12:59
bourbon - sass watch bug
error 0-plugins/bourbon/helpers/_linear-angle-parser.scss (Line 21: Invalid CSS after " webkit-image": expected ")", was ": -webkit- + $p...")
node.append("circle")
.attr("r", 60)
.style("fill", function(color) {
var colors = ["blue","green","red","orange"]
for(var i in links; i++){
color = colors[i];
return color;
};
});
var links = [
{source: "Healthcare", target: "Opportunity", id:"Healthcare"}, //1
{source: "Dignity", target: "Healthcare", id:"Dignity"}, //2
{source: "Social Justice", target: "Security", id:"Development"}, //3
{source: "Development", target: "Dignity", id:""}, //4
{source: "Portable Water", target: "Education", id:"Portable Water"}, //5
{source: "Peace", target: "Education", id:"Peace"}, //6
{source: "Education", target: "Productivity", id:"Education"}, //7
{source: "Security", target: "Productivity", id:"Security"}, //8
{source: "Opportunity", target: "Development", id:""}, //9
var fs = require(fs);
var blob = fs.readFile('dummy.txt');
console.log(blob);
var ln = blob.toString().split('\n');
console.log((ln.length)-1);