Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sebastien-p's full-sized avatar

Sebastien Paul πtt° sebastien-p

View GitHub Profile
@sebastien-p
sebastien-p / LICENSE.txt
Created August 25, 2011 13:00 — forked from 140bytes/LICENSE.txt
base62 decode
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@sebastien-p
sebastien-p / cloudSettings
Last active July 8, 2019 12:27
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-07-08T12:27:47.781Z","extensionVersion":"v3.3.1"}
@sebastien-p
sebastien-p / LICENSE.txt
Created June 14, 2011 09:10
Tweet-sized JavaScript implementation of the Lempel–Ziv–Welch universal lossless data compression algorithm.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
Special thanks to @subzey (you rock) and @kbjr !
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@sebastien-p
sebastien-p / LICENSE.txt
Created June 15, 2011 15:49 — forked from 140bytes/LICENSE.txt
LZW compression
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
Special thanks to @subzey (you rock) and @kbjr !
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
promiseA.then(function (resultA) {
promiseB.then(function (resultB) {
object.method(arg1, arg2, function (resultC) {
console.log(resultC);
});
});
});
@sebastien-p
sebastien-p / LICENSE.txt
Created June 25, 2011 21:02 — forked from 140bytes/LICENSE.txt
Array.prototype.reduceRight
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@sebastien-p
sebastien-p / naming.txt
Created November 5, 2013 12:34
CSS BEM-style naming conventions
namespace-componentName
namespace-componentName--modifier
namespace-componentName__descendant
namespace-u-utilityName
namespace-a-animationName
namespace-s-stateName
namespace-j-jsHookName
//namespace-c-colorName?
//namespace-c-colorName--text?
@sebastien-p
sebastien-p / dabblet.css
Created December 17, 2012 14:31
Untitled
body { background: #666 }
.flower,
.flower > *,
.flower > * > * {
-webkit-user-select: none;
display: block;
margin: 0;
padding: 0
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Infinite carousel using YMslider 1.0.8</title>
<link rel="stylesheet" href="jQuery.YMslider.core-min.css">
<link rel="stylesheet" href="jQuery.YMslider.default-min.css">
<link rel="stylesheet" href="jQuery.YMslider.infinite.css">
</head>
<body>
@sebastien-p
sebastien-p / main-min.js
Created December 18, 2011 17:18
jQuery (or Zepto) plugin AMD adapter
;!function(a,b,c){typeof(c=this.define)=="function"&&c.amd?c(a,b):b(this[(c=/(^|[/!,])(jquery|zepto)(,|!|$)/.exec(a))&&(c[2]=="zepto"?"Zepto":"jQuery")])}(["jquery"],function($){return $});