Skip to content

Instantly share code, notes, and snippets.

View manolenso's full-sized avatar

Laurent Rémy manolenso

  • TV Magazine
  • Paris IX
View GitHub Profile
@manolenso
manolenso / quick-git.sh
Created January 31, 2014 08:07
script bin.sh for quick commit
#!/usr/bin/env bash
# for quick commit
#
#
git add .
echo "Give commit Name:"
read $commit
git commit -m '$commit'
git push
@manolenso
manolenso / gulpfile.js
Created February 4, 2014 22:24
gupfile.js
var gulp = require('gulp');
var minifycss = require('gulp-minify-css');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-ruby-sass');
var convert = require('gulp-rsvg');
var watch = require('gulp-watch');
gulp.task('sass', function() {
@manolenso
manolenso / Gulp Server
Created March 6, 2014 22:19
Gulp server
/*
* Runs a static server on port 3000
**/
gulp.task('serve', function () {
const PORT = 3000;
var fileServer = new (require('node-static')).Server(SITE_DIR);
require('http').createServer(function (request, response) {
request.addListener('end', function () {
fileServer.serve(request, response);
}).resume();
" Vimrc File for @manolenso
set nocompatible " Disable vi-compatibility
filetype off "required by vundle
" Initialisation de pathogen
call pathogen#infect()
call pathogen#helptags()
"Load custom settings inspired by https://github.com/shawnplus/dotfiles/
source ~/.vim/startup/color.vim
[user]
name = Laurent
email = rlaurent@tvmag.com
[color]
ui = true
diff = auto
status = auto
branch = auto
@manolenso
manolenso / index.js
Created May 12, 2014 21:31
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 200
canvas.height = 200
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
@manolenso
manolenso / index.js
Created May 14, 2014 20:26
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
@manolenso
manolenso / .gitconfig
Last active August 29, 2015 14:01
my git config
[user]
name = Laurent
email = rlaurent@tvmag.com
[color]
ui = true
diff = auto
status = auto
branch = auto
@manolenso
manolenso / open-w-atom.reg
Created October 8, 2014 20:15
Open Atom reg
Windows Registry Editor Version 5.00
;
; Adds 'Open in Atom' to context menu (when you right click) in Windows Explorer.
;
; Based on https://github.com/Zren/atom-windows-context-menu. It didn't work
; https://github.com/Zren/atom-windows-context-menu/issues/1.
;
; Save this file to disk with a .reg extension. Replace C:\\Atom\\atom.exe with
; the path to the atom executable on your machine.
@manolenso
manolenso / cdn-jquery&fallback
Created October 17, 2014 05:27
cdn-jquery&fallback
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.
js"></script>
<script>window.jQuery || document.write('<script src="js/lib/
jquery.js"><\/script>')
</script>