Skip to content

Instantly share code, notes, and snippets.

@kumavis
kumavis / index.js
Last active December 22, 2015 01:29
requirebin sketch
var pterodactyl = require('pterodactyl')
var esprima = require('esprima')
var src = "var x = 1 + 2"
var obj = esprima.parse(src)
pterodactyl.drawHash({
target: obj,
x: 200,
y: 200,
@kumavis
kumavis / index.js
Created August 31, 2013 08:06
requirebin sketch
// Click and scroll to navigate the fractal tree
// more info: https://github.com/kumavis/node-pterodactyl
var pterodactyl = require('pterodactyl')
var obj = {
a: 1,
b: {
d: 3,
e: 4,
/usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:91
var dir = path.resolve(x, pkg.main);
^
TypeError: Cannot read property 'main' of undefined
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:91:54
at load (/usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:54:43)
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:60:22
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:16:47
at Object.oncomplete (fs.js:107:15)
DEBUG: ------------------------------- ember.js:366
DEBUG: Ember.VERSION : 1.0.0-rc.6 ember.js:366
DEBUG: Handlebars.VERSION : 1.0.0-rc.4 ember.js:366
DEBUG: jQuery.VERSION : 1.10.2 ember.js:366
DEBUG: ------------------------------- ember.js:366
Assertion failed: Your application does not have a 'Store' property defined. Attempts to call 'createRecord' on model classes will fail. Please provide one as with 'YourAppName.Store = DS.Store.extend()' ember.js:366
get(DS, 'defaultStore')
//=> undefined
App.__container__.lookup('store:')
//=> Class {container: Container, _debugContainerKey: "store:", typeMaps: Object, recordCache: Array[0], clientIdToId: Object…}
@kumavis
kumavis / head.html
Created July 6, 2013 05:09
made with requirebin.com
<style type='text/css'> html, body { margin: 0; padding: 0; border: 0; } </style>
@kumavis
kumavis / gist:5931964
Created July 5, 2013 05:11
Browserify blowing up
/usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:91
var dir = path.resolve(x, pkg.main);
^
TypeError: Cannot read property 'main' of undefined
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:91:54
at load (/usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:54:43)
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:60:22
at /usr/local/share/npm/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:16:47
at Object.oncomplete (fs.js:107:15)
[0xac0e2a28: 1.58671 8] ENTER: NuGet.Common.Console:get_CursorLeft ()(this:0x568f70[NuGet.Common.Console NuGet.exe], )
[0xac0e2a28: 1.58673 8] LEAVE: NuGet.Common.Console:get_CursorLeft ()result=0
[0xac0e2a28: 1.58674 8] ENTER: NuGet.Common.Console:get_Out ()(this:0x568f70[NuGet.Common.Console NuGet.exe], )
[0xac0e2a28: 1.58675 8] LEAVE: NuGet.Common.Console:get_Out ()[System.IO.SynchronizedWriter:0x5ddfc0]
[0xac0e2a28: 1.58678 8] ENTER: NuGet.Common.Console:get_CursorLeft ()(this:0x568f70[NuGet.Common.Console NuGet.exe], )
[0xac0e2a28: 1.58679 8] LEAVE: NuGet.Common.Console:get_CursorLeft ()result=0
[0xac0e2a28: 1.58681 8] ENTER: NuGet.Common.Console:get_Out ()(this:0x568f70[NuGet.Common.Console NuGet.exe], )
[0xac0e2a28: 1.58682 8] LEAVE: NuGet.Common.Console:get_Out ()[System.IO.SynchronizedWriter:0x5ddfc0]
@kumavis
kumavis / gist:5789583
Created June 15, 2013 21:04
Process not exiting, emitting whitespace
class NugBug
{
public static void Help() {
int timeout = 5000;
using (Process process = new Process())
{
process.StartInfo.FileName = "mono";
process.StartInfo.Arguments = "--runtime=v4.0 /usr/local/bin/NuGet.exe help";
@kumavis
kumavis / gist:5732958
Created June 7, 2013 22:51
Actual browserified npm console output. Not a dramatization.
NAME DESCRIPTION AUTHOR DATE VERSION KEYWORDS
atlaspack Pack rectangles (or images) into a rectangle (or canvas texture atlas). =shama 2013-04-25 22:30 0.2.4 voxel texture atlas geometry spritemap
craft An HTML5 crafting API. =shama 2013-05-07 16:23 0.1.0 voxel crafting minecraft
greedy-mesher Greedy mesh compiler =mikolalysenko 2013-06-02 19:20 0.0.0 greedy mesh compiler voxel geometry ndarray
isosurface 3D isosurface polygonizer =mikolalysenko 2013-02-11 19:03 0.1.0 voxel isosurface level set 0fps surface nets marching cubes tetrahedra
minecraft-chunk read voxel data from minecraft chunks =maxogden 2013-04-22 07:22 0.3.0
mineflayer-voxel A plugin to give you a web-based view of your mineflay
[response cut]
,"abc-gruntfile-helper":{"name":"abc-gruntfile-helper","description":"Helpers to easier the configuration of gruntfile for ABC","dist-tags":{"latest":"0.0.1"}
,"maintainers":[{"name":"neekey","email":"[email protected]"}
],"author":{"name":"neekey","email":"[email protected]"}
,"repository":{"type":"git","url":"https://github.com/neekey/abc-gruntfile-helper"}
,"time":{"modified":"2013-04-27T09:26:20.701Z"}
,"versions":{"0.0.1":"latest"}
,"keywords":["abc gruntfile helper kissypie"]}
,"abc-tpl-kissypie":{"name":"abc-tpl-kissypie","description":"ABC推荐目录.","dist-tags":{"latest":"0.0.1"}