Skip to content

Instantly share code, notes, and snippets.

Mickael Daniel mklabs

Block or report user

Report or block mklabs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
. /etc/bash_completion.d/git-prompt
export PS1='\[$(tput bold)\]\[\033[38;5;10m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;6m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]$(__git_ps1 " (%s)")\\$\[$(tput sgr0)\] \[$(tput sgr0)\]'
View draft
Rebirth & Rework
- rewrite from scratch
- ES6 / eslint standard config
- ES7 stuff, decorators, di (experimental)
- make / npm run scripts as default built tool
- popular build tools adapters (grunt, gulp, etc.)
- "progressive" / "immersive" cli
mklabs /
Last active Jun 6, 2016
fisherman/nvm without node / npm before hand
git clone ~/.config/fish/bass
git clone ~/.config/fish/nvm
cp ~/.config/fish/{bass,nvm}/*.fish ~/.config/fish/
mklabs /
Created Jun 1, 2016
component / browserify bundles
mklabs / Makefile
Last active Aug 26, 2017
node makefile - babel / eslint / mocha / watch
View Makefile
mocha test/
babel lib/ -d src/
eslint .
build: babel test lint
mklabs / Gruntfile.js
Last active Dec 10, 2015
A simple example of using yeoman on an express app
View Gruntfile.js
module.exports = function(grunt) {
function noop() {}
watch: {
reload: {
files: ['public/**', 'views/**'],
tasks: 'reload'
mklabs / docs.js
Created Sep 19, 2012
Grunt markdown task, compiling down to html, triggering reload
View docs.js
var path = require('path');
var hogan = require('hogan');
var marked = require('marked');
module.exports = function(grunt) {
// Basic grunt task to use along watch task, possibly the reload task
// of yeoman server. Designed to work with any given webserver, as
// long as the LiveReload extension for your favorite browser is used
// (
mklabs / client.js
Created May 23, 2012
node script experiments at driving chrome via ws
View client.js
var nopt = require('nopt'),
parse = require('url').parse,
WebSocket = require('faye-websocket');
// All based and derived on:
// The remote debugging protocol is... I don't have words right now.
// Other than thanks thanks thanks thanks x10e901920
# A word about this shell script:
# It must work only on systems with a /bin/bash.
# cat || exit 1
View test.txt
# cucumberjs + zombiejs + grunt
# this makes testing easier than ever
> node-build-script@0.0.1 pretest /Users/mk/Temp/dev/mklabs/node-build-script
> git submodule update --init && rm -rf .test && mkdir .test && cp -r test/h5bp/* test/h5bp/.htaccess .test/
> node-build-script@0.0.1 test /Users/mk/Temp/dev/mklabs/node-build-script
> node test --log && cd test && node ../node_modules/cucumber/bin/cucumber.js
You can’t perform that action at this time.