Skip to content

Instantly share code, notes, and snippets.

Avatar
💰
Alwayz Into Somethin'

Romain Lafourcade romainl

💰
Alwayz Into Somethin'
  • Razorfish France
  • Paris, France
View GitHub Profile
@romainl
romainl / javascript_deep_dive.md
Created Oct 7, 2017 — forked from faressoft/javascript_deep_dive.md
JavaScript Deep Dive to Crack The JavaScript Interviews
View javascript_deep_dive.md
@romainl
romainl / guessindent.vim
Created May 7, 2017 — forked from adscriven/guessindent.vim
Vim: guess indentation
View guessindent.vim
" adscriven@gmail.com 2017-05-07. Public domain.
" From vimrc. Usual caveats apply. Comparable in effectiveness to
" DetectIndent and Sleuth in practice, IME. Different trade-offs.
" This works better for code rather than for arbitrarily formatted
" files such as the help files, though it sometimes gets those right
" too. If somebody has used set noet ts=4 in a file that should be
" et sw=4, there's no easy way to detect that. You'll probably get
" ts=8 in that situation. But the file will need fixing anyway.
@romainl
romainl / rAF.js
Created Aug 5, 2016 — forked from lenville/rAF.js
requestAnimationFrame polyfill
View rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@romainl
romainl / easing.js
Created Aug 5, 2016 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@romainl
romainl / README.md
Created Mar 10, 2016 — forked from plugnburn/README.md
Zen.js - reactive nano-framework in 50 lines of JS
View README.md

Zen.js

It seems that perfection is attained not when there is nothing more to add, but when there is nothing more to take away.

Antoine de Saint Exupéry

Zen.js is tiny attempt to create the Zen of reactive in-memory storage on the JS client-side environment.

How to obtain

@romainl
romainl / README.md
Created Mar 10, 2016 — forked from plugnburn/README.md
Q.js - DOM nano-framework in 50 lines of JS
View README.md

Q.js

Q.js is a very simple, tiny and elegant DOM manipulation library that provides the essentials in an original and minimalistic way.

How to obtain

Just download the minified version here or include it directly in your HTML:

@romainl
romainl / README.md
Created Mar 10, 2016 — forked from plugnburn/README.md
XT.js - DOM construction / templating library in 18 lines of JS, 323 bytes minified
View README.md

XT.js

Let's close the ultra-small library cycle with some awesome array-based templating. 323 bytes minified.

How to obtain

Just download the minified version here or include it into your code:

@romainl
romainl / README.md
Created Mar 10, 2016 — forked from plugnburn/README.md
R.js - parameterized client-side routing in 30 lines of JS
View README.md

R.js

R.js is a 30-line JS library that brings life to the third part of minimalistic saga: parameterized client-side routing.

How to obtain

Download the library here or include the following into your HTML:

@romainl
romainl / epictetus.adoc
Created Nov 23, 2015 — forked from dahu/epictetus.adoc
Epictetus quotes
View epictetus.adoc

Epictetus

Philosophy is a way of life and not just a theoretical discipline.

Epictetus (55 — 135 AD) was a Greek slave of Rome. He became a great Stoic philosopher and teacher, and was eventually freed.

Although he was a fatalist, he believed that individuals are responsible for their own actions, which they can examine and control through rigorous self-discipline.