Skip to content

Instantly share code, notes, and snippets.

@stijnj
stijnj / .bash_profile
Created May 20, 2011 13:40
My bash profile
# Avoid duplicate commands in the history
export HISTCONTROL=ignoredups;
# Make it less case sensitive
shopt -s nocaseglob
# Make the PS1 better
source ~/.git-completion.sh
PS1='\e[0;34m\][\t] \e[0;32m\]\w`__git_ps1`:\e[0m\] '
@stijnj
stijnj / dabblet.css
Created January 30, 2012 10:13
Pukkelpop 2012 - countdown
/**
* Pukkelpop 2012 - countdown
*/
body { padding-top: 10px; font-family: Arial; }
span {
dipslay: block;
float: left;
padding-top: 30px;
text-align: center;
background-color: #ffe7c4;
@stijnj
stijnj / dabblet.css
Created April 11, 2012 12:21
Centered website
/**
* Centered website
*/
.container { width: 960px; margin: 0 auto; border: 1px solid red; }
@stijnj
stijnj / dabblet.css
Created April 19, 2012 16:58
Date picker
/**
* Date picker
*/
form { width: 250px; padding: 10px; padding-top: 125px; }
@stijnj
stijnj / dabblet.css
Created June 14, 2012 14:12
Responsive content ordering with images
/* Responsive content ordering with images */
@media screen and (min-width: 600px) {
.desktop-left { float: left; width: 60%; }
.desktop-right { float: right; width: 30%; }
}
@stijnj
stijnj / dabblet.css
Created July 11, 2012 13:17
Border on rounded corners
/**
* Border on rounded corners
*/
img {
box-shadow: 0 0 0 2px green;
border-radius: 20px
}
@stijnj
stijnj / dabblet.css
Created August 8, 2012 12:52
Border on rounded corners
/**
* Border on rounded corners
*/
img {
box-shadow: 0 0 0 2px green;
border-radius: 20px
}
@stijnj
stijnj / grid.less
Created September 12, 2012 11:27
LESS vs Sass: grid
@desktopColumnWidth: 60px;
@tabletColumnWidth: 95px;
@gutter: 10px;
.desktop-column (@theColumn: 1) {
width: (@desktopColumnWidth * @theColumn) + (@gutter * (@theColumn - 1) * 2);
}
.tablet-column (@theColumn: 1) {
width: (@tabletColumnWidth * @theColumn) + (@gutter * (@theColumn - 1) * 2);
}
@stijnj
stijnj / dabblet.css
Created December 19, 2012 20:19
Box-model: simple example
/**
* Box-model: simple example
*/
div {
float: left;
padding: 30px;
border: 1px solid green;
margin: 10px;
font-size: 100px;
}
@stijnj
stijnj / dabblet.css
Created December 19, 2012 20:29
Box-model: content-box vs. border-box
/**
* Box-model: content-box vs. border-box
*/
div {
width: 300px;
border: 1px solid black;
}
span {
display: inline-block;
float: left;