Skip to content

Instantly share code, notes, and snippets.

@ddprrt
ddprrt / Gulpfile.js
Created October 29, 2015 21:21
Gulp task system and Promises
/**
* Bluebird allows us to promisify existing Node.js
* technologies. So fs.writeFile and fs.readFile
* are usable with Promises.
*
* `fetch` fetches Ressources. This code fetches
* jQuery, and saves the responses body in a file
**/
var gulp = require('gulp');
@ddprrt
ddprrt / dabblet.css
Created September 10, 2012 09:20
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
span::before {
border-left: 20px solid transparent;
border-top: 20px solid blue;
border-right: 20px solid transparent;
border-bottom: 20px solid transparent;
content: "";
@ddprrt
ddprrt / dabblet.css
Created September 10, 2012 09:19
Tooltip *
/** Tooltip **/
p {font-size: 1.4em; line-height: 140%; font-family: Georgia; position: relative;}
p:first-child {font-size: 1.5em;}
[data-tooltip]{
text-decoration: underline;
cursor: pointer;
position: relative;
}
@ddprrt
ddprrt / dabblet.css
Created August 24, 2012 11:57
Tooltip *
/** Tooltip **/
p {font-size: 1.4em; line-height: 140%; font-family: Georgia; position: relative;}
p:first-child {font-size: 1.5em;}
[data-tooltip]{
text-decoration: underline;
cursor: pointer;
position: relative;
}
@ddprrt
ddprrt / dabblet.css
Created August 24, 2012 10:25
Tooltip *
/** Tooltip **/
p {font-size: 1.4em; line-height: 140%; font-family: Georgia; position: relative;}
p:first-child {font-size: 1.5em;}
[data-tooltip]{
text-decoration: underline;
cursor: pointer;
position: relative;
@ddprrt
ddprrt / dabblet.css
Created August 24, 2012 09:03
Tooltip *
/** Tooltip **/
p {font-size: 1.4em; line-height: 140%; font-family: Georgia; position: relative;}
p:first-child {font-size: 1.5em;}
[data-tooltip]{
text-decoration: underline;
cursor: pointer;
position: relative;
}
@ddprrt
ddprrt / dabblet.css
Created August 24, 2012 08:53
Tooltip *
/** Tooltip **/
p {font-size: 1.4em; line-height: 140%; font-family: Georgia; position: relative;}
p:first-child {font-size: 1.5em;}
.tooltip {
text-decoration: underline;
cursor: pointer;
position: relative;
}
@ddprrt
ddprrt / dabblet.css
Created July 10, 2012 14:16
Untitled
.pie {
width: 200px;
height: 200px;
border-radius: 50%;
background-color: black;
border: 5px solid white;
position: relative;
}
.pie:before,
@ddprrt
ddprrt / dabblet.css
Created June 12, 2012 09:15
Galleria
/**
* Galleria
*/
body {
background-color:white;
background-image: linear-gradient(0, rgba(200,0,0,.5) 50%, transparent 50%),
linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%);
background-size:50px 50px;
}
@ddprrt
ddprrt / dabblet.css
Created June 11, 2012 11:47
Galleria
/**
* Galleria
*/
body {
background-color:white;
background-image: linear-gradient(0, rgba(200,0,0,.5) 50%, transparent 50%),
linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%);
background-size:50px 50px;
}