Skip to content

Instantly share code, notes, and snippets.

View tschiela's full-sized avatar

Thomas Schiela tschiela

View GitHub Profile
1. sudo apt-get install python g++ make checkinstall
2. mkdir ~/src && cd $_
3. wget -N http://nodejs.org/dist/node-latest.tar.gz
4. tar xzvf node-latest.tar.gz && cd node-v*
5. ./configure
6. sudo checkinstall -y --install=no --pkgversion 0.10.24
7. # optional " -- make –j x install" mit x = Anzahl der CPU Kerne
8. sudo dpkg -i node_*
9. Node global aufrufbar machen:
a. /.profile oder ~/.bash_profile oder ~/.bashrc oder ~/.zshenv
@tschiela
tschiela / fixEventType.js
Created November 23, 2015 08:46
fix event types triggered by browser on keyevents (e.g. browser send key and click event if user use SPACE or ENTER on a button or form element)
'use strict';
/**
* @param {Function} callback
* @return {Function}
*/
var fixEventType = function (callback) {
var eventFired = false,
eventStack = [];