Skip to content

Instantly share code, notes, and snippets.

View decthomas's full-sized avatar

Thomas Deceuninck decthomas

View GitHub Profile
@decthomas
decthomas / SassMeister-input.scss
Created December 18, 2015 10:55
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
$baseline: 6px;
@function line-height($font-size, $lines: false) {
// Get the correct # of baseline units for the given font-size
// unless an override is provided
@if not $lines {
@decthomas
decthomas / SassMeister-input.scss
Created July 30, 2015 14:42
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
//**********
// VARIABLES
//**********
// Color setup
$blue: #4078c0;
@decthomas
decthomas / Gruntfile.js
Last active December 15, 2015 22:59
Example Gruntfile.js for use with Jekyll
// This is the main application configuration file. It is a Grunt
// configuration file, which you can learn more about here:
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md
/*jslint nomen: true*/
'use strict';
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
// The clean task ensures the entire XXX folder is removed
clean: {
@decthomas
decthomas / Git autocompletion
Created February 4, 2013 08:56
Git autocompletion include
# Git autocompletion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
# otherwise the 'g' alias won't autocomplete
complete -o default -o nospace -F _git g
fi
##
# Git aliases
##
@decthomas
decthomas / bookmarklet.js
Created September 11, 2012 10:29
Read later bookmarklet for Instapaper
javascript:function iprl5(){var d=document,z=d.createElement('scr'+'ipt'),b=d.body;try{if(!b)throw(0);d.title='(Saving...) '+d.title;z.setAttribute('src','http://www.instapaper.com/j/VIbChxExXDOZ?u='+encodeURIComponent(d.location.href)+'&t='+(new Date().getTime()));b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}iprl5();void(0)
@decthomas
decthomas / gist:2576539
Created May 2, 2012 13:33
Password generator
##
# Random 14 character password generator using base64
##
alias passgen='openssl rand -base64 14 | pbcopy'
@decthomas
decthomas / .bash_profile
Created February 7, 2012 21:03
Configure ssh host
# creates an SSH key and uploads it to the given host
configure_ssh_host()
{
username=$1
hostname=$2
identifier=$3
keyfile=$4
if [[ "$identifier" == "" ]] || [[ "$username" == "" ]] || [[ "$hostname" == "" ]] || [[ "$keyfile" == "" ]]
then
@decthomas
decthomas / reset.css
Created September 6, 2011 06:36
CSS reset
/*
Reset
*/
article, aside, dialog, figure, footer, header, hgroup, nav, section { display: block; }
body, form, ol, ul, dl, li, dt, dd, td, th ,tr, h1, h2, h3, h4, h5, h6, p, pre, blockquote, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { border: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
input, select, textarea { font-size: 100%; vertical-align: middle; }