Skip to content

Instantly share code, notes, and snippets.

@edubkendo
edubkendo / error.txt
Created April 21, 2012 05:29
Error I get when trying to install latest design.io
:~/trial/demoApp$ npm install -g http://github.com/viatropos/design.io.git
npm http GET http://github.com/viatropos/design.io.git
npm ERR! Not a package /tmp/npm-1334985810977/1334985810977-0.9086782552767545/tmp.tgz
npm ERR! Error: ENOENT, open '/tmp/npm-1334985810977/1334985810977-0.9086782552767545/package/package.json'
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
@edubkendo
edubkendo / hello.coffee
Created April 27, 2012 06:47
hello world with shebang
#!/usr/bin/env coffee
console.log("hey")
@edubkendo
edubkendo / runtests.sh
Created April 27, 2012 08:55
Run tests for tower.js
#!/bin/bash
mocha test/cases/*/*.coffee
echo 'Complete!'
mocha test/cases/*.coffee
echo 'Complete!'
mocha test/cases/server/controller/*.coffee
echo 'Complete!'
@edubkendo
edubkendo / ctags_subl_coffee.md
Created June 9, 2012 15:11
Ctags, Sublime Text, Coffeescript

Ctags with Sublime Text and Coffeescript

Get Ctags

Step one is to install Exuberant Ctags on your system. For those on an Ubuntu system, this is as simple as:

sudo apt-get install ctags

Get the Sublime Text Plug-in

@edubkendo
edubkendo / Coffeescript ctags
Created June 10, 2012 07:20 — forked from bjornharrtell/Coffeescript ctags
ctags definitions for coffeescript. Detects classes, static/class methods, fields, static fields, plain functions, variables.
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/(^|=[ \t])*class ([A-Za-z]+\.)*([A-Za-z]+)( extends [A-Za-z.]+)?$/\3/c,class/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?@?([A-Za-z.]+):.*[-=]>.*$/\3/m,method/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[ \t]*@([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/f,field/
--regex-coffee=/^[ \t]*@([A-Za-z.]+):[^->\n]*$/\1/f,static field/
--regex-coffee=/^[ \t]*([A-Za-z.]+):[^->\n]*$/\1/f,field/
--regex-coffee=/(constructor: \()@([A-Za-z.]+)/\2/f,field/
@edubkendo
edubkendo / clone_all_remote_git_branches.md
Created June 25, 2012 08:01
Clone All Remote Branches

How Do I Clone All Remote Branches of a Repository

From Stack Overflow :

First, clone a remote git repository and cd into it:

$ git clone git://example.com/myproject
$ cd myproject

Next, look at the local branches in your repository:

@edubkendo
edubkendo / .gitconfig
Created June 26, 2012 06:24 — forked from dpwright/.gitconfig
Git alias to amend a specific commit earlier in the tree
amend-commit = "!f() { START=`(git symbolic-ref -q HEAD || git rev-parse HEAD) | cut -d"/" -f 3`; git checkout -q $1 && git commit --amend && git rebase --onto HEAD $1 $START; }; f"
@edubkendo
edubkendo / errors.md
Created July 10, 2012 06:24
Errors recieved from odd emberjs configuration

Errors

Ember.EnumerableUtils is undefined [Break On This Error]

removeObject = Ember.EnumerableUtils.removeObject;

ember-data.js (line 385) DS.Store is undefined [Break On This Error]

@edubkendo
edubkendo / npm-debug.md
Created August 4, 2012 08:03
Errors on running NPM install

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ] 2 info using npm@1.1.36 3 info using node@v0.8.2 4 verbose config file /home/eric/.npmrc 5 verbose config file /usr/local/etc/npmrc 6 verbose config file /usr/local/lib/node_modules/npm/npmrc 7 verbose read json /home/eric/git/community/tower/package.json 8 verbose readDependencies using package.json deps 9 verbose install where, deps [ '/home/eric/git/community/tower',

@edubkendo
edubkendo / npm-debug-log.md
Created August 4, 2012 08:07
errors on running npm install when setting up tower/development branch

911 error Error: git "checkout" "node-0.8" failed with 1

911 error at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:56:20)

911 error at ChildProcess.EventEmitter.emit (events.js:91:17)

911 error at Process._handle.onexit (child_process.js:674:10)

911 error [Error: git "checkout" "node-0.8" failed with 1]