Skip to content

Instantly share code, notes, and snippets.

View sebastien-p's full-sized avatar

Sebastien Paul πtt° sebastien-p

View GitHub Profile
promiseA.then(function (resultA) {
promiseB.then(function (resultB) {
object.method(arg1, arg2, function (resultC) {
console.log(resultC);
});
});
});
@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 / 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 $});
@sebastien-p
sebastien-p / production.js
Created September 11, 2011 21:09
jQuery CORD plugin boilerplate
/*!
* Copyright (c) 2011 Sebastien P.
* http://twitter.com/_sebastienp
* Licensed under the MIT license
*
* Wed Sep 14 2011 11:53:40 GMT+0200 (CEST)
*/
;!function (PLUGIN_NAME, WINDOW, DOCUMENT, TRUE, FALSE, NULL, UNDEFINED, $, PLUGIN_DEFAULTS, j) {
@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 / LICENSE.txt
Created August 24, 2011 16:13 — forked from 140bytes/LICENSE.txt
base62 encode
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 / 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