Skip to content

Instantly share code, notes, and snippets.

View kaelig's full-sized avatar

Kaelig Deloumeau-Prigent kaelig

View GitHub Profile
@kaelig
kaelig / gist:457517
Created June 29, 2010 17:25
Export csv avec sqlite
## Output csv from sqlite
$ sqlite3 db.sqlite
sqlite> .mode csv
sqlite> .header on
sqlite> .output db.csv
sqlite> .separator ,
sqlite> select * from table;
sqlite> .exit
@kaelig
kaelig / gist:458477
Created June 30, 2010 10:04
Make Outlook 2007+ behave with line-heights
// Make Outlook 2007+ behave with line-heights
element {
mso-line-height-rule:exactly;
-mso-line-height-rule:exactly;
}
@kaelig
kaelig / id_dsa.pub
Created July 10, 2010 16:25
Ma clé publique DSA
ssh-dss AAAAB3NzaC1kc3MAAACBAJYjOq/Db8j7dYzsoHt6FkAvB8ybv1I6r7/UzGM5iuGJUfvSX7v6E4oIsfRDiVFH63olR4BUI2+oG6rusppXR7xS0PWZ7QFXP6+Sbb9bDDgXyK7FpMHfeJY1Ekefj2vauyElgQQcEmarTW+ha3dbtnDSxD7rK6thMLaVyd3l5ujxAAAAFQCuriD8qbX6obB3AwIWGzH3cboNlwAAAIAtKgqImDyiThkRO0wjgawGNYe7Bh7cd7ENljteyXBM5lOd4tBRgidTCX/2pl5atADY+7kXWUMe6NYhZ5II+4n06eSnTlUkDEbns0+/taVdjCI3+NkcHf5IDjw3OHYjTRQRNEWt1WkiFi+iOBrPdU/jMtpUu1StMW84TMxy21K9SgAAAIBnveZzSpoqEik0MbgUPpGb7J25sfG7Fw6Smv5gWqMDMG9JzCH/UcsA0Vc9wrDKO3Bw6gKjd29M62GxSEeEZ9hkaA0nMZmmaX1O9ecaywJsMmJ+rZWWlQIEqKz/p0cT4zB/h7WnnivOgUYypH8ja+uKjlPOVcCEKkMMz+zlW3DsOg== kaelig@Kaelig.local
@kaelig
kaelig / placeholder.css
Created July 11, 2010 21:14
Applies placeholder attribute behavior in web browsers that don't support it
input {
color: #444;
background: white;
}
input.placeholder {
color: #aaa;
}
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@kaelig
kaelig / gist:782927
Created January 17, 2011 15:00
CSS Navigation : refactored
$navheight: 61px;
#navigation {
list-style-type: none;
margin: 0;
padding: 0;
height: $navheight;
ul {
list-style-type: none;
margin: 0;
.readme #tm_webpreview_header {color:#000; display: none;}
.readme {background-color:#fff;font-family:sans-serif; margin-top: 0;}
.readme h1,.readme h2,.readme h3,.readme h4,.readme h5,.readme h6{border:0!important;}
.readme h1{font-size:170%!important;border-top:4px solid #aaa!important;padding-top:.5em!important;margin-top:1.5em!important;}
.readme h1:first-child{margin-top:0!important;padding-top:.25em!important;border-top:none!important;}
.readme h2{font-size:150%!important;margin-top:1.5em!important;border-top:4px solid #e0e0e0!important;padding-top:.5em!important;}
.readme h3{margin-top:1em!important;}
.readme p{margin:1em 0!important;line-height:1.5em!important;}
.readme a.absent{color:#a00;}
.readme ul,#wiki-form .content-body ul{margin:1em 0 1em 2em!important; padding: 0; list-style-type: square;}
@kaelig
kaelig / Gemfile
Created September 7, 2011 00:20
Sass & CoffeeScript automated compiling and minifying with Guard
source "http://rubygems.org"
group :development do
gem 'rake'
gem 'guard'
gem 'coffee-script'
gem 'rb-fsevent'
gem 'rb-inotify'
gem 'compass', '0.11.5'
gem 'sass', '3.1.5'
gem 'guard-compass'
@kaelig
kaelig / Gemfile
Created December 21, 2011 19:02
Sass and Compass in Ruby On Rails 3.1.1 w/ Asset Pipeline
# In your Gemfile:
gem 'haml'
gem 'sass'
gem 'compass', :git => 'git://github.com/chriseppstein/compass.git', :branch => 'master' # Rails 3.1.1 compatible version is still in alpha…
gem "sass-rails", "~> 3.1.5" # Required by Rails 3.1.1
@kaelig
kaelig / application.js
Created January 10, 2012 10:43
Open external links and PDFs in a new window or tab
$(document).ready(function() {
// Open external links in a new window or tab
$(document).on('click', 'a[rel$="external"]', function() {
$(this).attr('target', "_blank");
});
$(document).on('click', 'a[href$=".pdf"]', function() {
$(this).attr('target', "_blank");
});
// Open all urls that don't belong to our domain in a new window or tab
$(document).on('click', "a[href^='http:']:not([href*='" + window.location.host + "'])", function() {