Skip to content

Instantly share code, notes, and snippets.

View shapeshifta78's full-sized avatar
💜
fiddling

Thomas Horster shapeshifta78

💜
fiddling
View GitHub Profile
@shapeshifta78
shapeshifta78 / debounce.js
Created November 8, 2017 17:39 — forked from tcase360/debounce.js
Debounce function in ES6
const debounce = (fn, time) => {
let timeout;
return function() {
const functionCall = () => fn.apply(this, arguments);
clearTimeout(timeout);
timeout = setTimeout(functionCall, time);
}
}
@shapeshifta78
shapeshifta78 / gource.sh
Created March 15, 2017 16:47 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@shapeshifta78
shapeshifta78 / install-nodejs.sh
Created August 13, 2012 08:11 — forked from TooTallNate/install-nodejs.sh
Simple Node.js installation script using the precompiled binary tarballs
#!/bin/sh
#version details
VERSION=0.8.8
PLATFORM=linux
ARCH=x86
PREFIX="$HOME/node-v$VERSION-$PLATFORM-$ARCH"
#download binaries
mkdir -p "$PREFIX" && \
@shapeshifta78
shapeshifta78 / grunt.js
Created August 3, 2012 14:48 — forked from pamelafox/grunt.js
Grunt for a CSS/JS WebApp
/*global module:false*/
module.exports = function(grunt) {
var CSS_DIR = 'src/css/';
var JS_DIR = 'src/js/';
var BUILD_DIR = '../build/';
// Project configuration.
grunt.initConfig({