Skip to content

Instantly share code, notes, and snippets.

View ogorzalka's full-sized avatar

Olivier Gorzalka ogorzalka

View GitHub Profile
@ogorzalka
ogorzalka / pre-commit.sh
Last active May 11, 2024 09:43
Pint Validation Pre Commit
#!/bin/bash
# Allows us to read user input below, assigns stdin to keyboard
exec < /dev/tty
POSITIONAL_ARGS=()
while [[ $# -gt 0 ]]; do
case $1 in
-n|--no-verify)
@ogorzalka
ogorzalka / livefyre.load.js
Created October 30, 2012 13:53
Traduction de Livefyre
(function () {
var articleId = fyre.conv.load.makeArticleId(null);
fyre.conv.load({
"strings": {
"signIn": "Identification",
"signInGuest": "Se connecter en invit\u00e9",
"signOut": "D\u00e9connexion",
"editProfile": "\u00c9diter le profil",
"siteAdmin": "Administration",
"postButton": "Poster",
@ogorzalka
ogorzalka / config.rb
Created October 8, 2012 12:30
Blessc with Compass
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "assets/css"
sass_dir = "assets/compass"
images_dir = "assets/img"
javascripts_dir = "assets/js"
blessc_executable = '/usr/local/bin/blessc';
@ogorzalka
ogorzalka / jquery.media.js
Created June 4, 2012 12:58
jQuery.media, a very lightweight plugin for media query testings
/*
jQuery.media, a very lightweight plugin for media query testings
Examples :
if ( $.media({'min-width' : '480px', 'max-width' : '768px'}) ) {
(...)
}
if ( $.media({'min-width' : 480) ) {
(...)
@ogorzalka
ogorzalka / jquery.responsiveCanvas.js
Created May 29, 2012 08:53
Make Canvas Responsive !
(function($) {
$.fn.responsiveCanvas = function(method) {
var methods = {
// init functions
init : function(options) {
return this.each(function(i) {
var c = this, // THE canvas
ct = c.getContext('2d'), // check the context
$container = $(c).parent(); // parent container object
@ogorzalka
ogorzalka / orderby_tax_clauses.inc.php
Created March 29, 2012 08:59
Sorting by Taxonomy in WordPress
/*
Sorting by Taxonomy in WordPress
just add this file in your functions.php file
*/
function orderby_tax_clauses( $clauses, $wp_query ) {
global $wpdb;
$taxonomies = get_taxonomies();
foreach ($taxonomies as $taxonomy) {
if ( isset( $wp_query->query['orderby'] ) && $taxonomy == $wp_query->query['orderby'] ) {
@ogorzalka
ogorzalka / dabblet.css
Created January 18, 2012 21:20
Tuto Transitions CSS - Exemple 1
/**
* Tuto Transitions CSS - Exemple 1
*/
html {
height:100%;
box-shadow:inset 0 0 50em #335a54;
}
body {
@ogorzalka
ogorzalka / dabblet.css
Created January 18, 2012 20:49
Tuto Pseudo-éléments - Exemple 1
/**
* Tuto Pseudo-éléments - Exemple 1
*/
@font-face{font-family:icons;src:url('http://fico.lensco.be/f/fico.eot');src:url('http://fico.lensco.be/f/fico.eot?#iefix') format('embedded-opentype'),url(data:font/truetype;charset=utf-8;base64,AAEAAAAQAQAABAAARkZUTV8+JbYAAAEMAAAAHEdERUYAZgAEAAABKAAAACBPUy8yZ4lJqQAAAUgAAABgY21hcAP25ogAAAGoAAACYmN2dCAJDgnDAAAEDAAAACZmcGdtD7QvpwAABDQAAAJlZ2FzcAAAABAAAAacAAAACGdseWZZWpTJAAAGpAAAIMBoZWFk+O4ZFQAAJ2QAAAA2aGhlYQd7A6oAACecAAAAJGhtdHjUPQWRAAAnwAAAAORsb2Nh8aD50AAAKKQAAAB0bWF4cAFaATgAACkYAAAAIG5hbWVHWuEQAAApOAAAA0Bwb3N0nGv7gAAALHgAAAFqcHJlcAJ3zycAAC3kAAABHwAAAAEAAAAAyYlvMQAAAADKy0wjAAAAAMrpamEAAQAAAA4AAAAYAAAAAAACAAEAAQA4AAEABAAAAAIAAAADA94BkAAFAAACigJYAAAASwKKAlgAAAFeADIA8AAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVS1dOAEAAIOAAAyD/OAAAA5EAeAAAAAEAAAAAAysDhAAAACAAAQAAAAMAAAADAAAAHAABAAAAAAFcAAMAAQAAABwABAFAAAAATABAAAUADAAhACsALQA/AEMARQBMAFAAVABnAGkAbQBwAHYAegDXIZMhqSKVIpcinSMCIxoltiYBJgUmayaRJpkmoCcJJw4nFCdkJ/IrB+AA//8AAAAgACsALQA/AEEARQBMAFAAVABhAGkAbABwAHIAegDXIZAhqSKVIpcinSMC
@ogorzalka
ogorzalka / dabblet.css
Created January 18, 2012 20:39
Tuto Pseudo-éléments - Exemple 2
/**
* Tuto Pseudo-éléments - Exemple 2
*/
@font-face{font-family:icons;src:url('http://fico.lensco.be/f/fico.eot');src:url('http://fico.lensco.be/f/fico.eot?#iefix') format('embedded-opentype'),url(data:font/truetype;charset=utf-8;base64,AAEAAAAQAQAABAAARkZUTV8+JbYAAAEMAAAAHEdERUYAZgAEAAABKAAAACBPUy8yZ4lJqQAAAUgAAABgY21hcAP25ogAAAGoAAACYmN2dCAJDgnDAAAEDAAAACZmcGdtD7QvpwAABDQAAAJlZ2FzcAAAABAAAAacAAAACGdseWZZWpTJAAAGpAAAIMBoZWFk+O4ZFQAAJ2QAAAA2aGhlYQd7A6oAACecAAAAJGhtdHjUPQWRAAAnwAAAAORsb2Nh8aD50AAAKKQAAAB0bWF4cAFaATgAACkYAAAAIG5hbWVHWuEQAAApOAAAA0Bwb3N0nGv7gAAALHgAAAFqcHJlcAJ3zycAAC3kAAABHwAAAAEAAAAAyYlvMQAAAADKy0wjAAAAAMrpamEAAQAAAA4AAAAYAAAAAAACAAEAAQA4AAEABAAAAAIAAAADA94BkAAFAAACigJYAAAASwKKAlgAAAFeADIA8AAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVS1dOAEAAIOAAAyD/OAAAA5EAeAAAAAEAAAAAAysDhAAAACAAAQAAAAMAAAADAAAAHAABAAAAAAFcAAMAAQAAABwABAFAAAAATABAAAUADAAhACsALQA/AEMARQBMAFAAVABnAGkAbQBwAHYAegDXIZMhqSKVIpcinSMCIxoltiYBJgUmayaRJpkmoCcJJw4nFCdkJ/IrB+AA//8AAAAgACsALQA/AEEARQBMAFAAVABhAGkAbABwAHIAegDXIZAhqSKVIpcinSMC
@ogorzalka
ogorzalka / dabblet.css
Created January 18, 2012 20:35
Tuto Pseudo-éléments - Exemple 3
/**
* Tuto Pseudo-éléments - Exemple 3
*/
@font-face{font-family:icons;src:url('http://fico.lensco.be/f/fico.eot');src:url('http://fico.lensco.be/f/fico.eot?#iefix') format('embedded-opentype'),url(data:font/truetype;charset=utf-8;base64,AAEAAAAQAQAABAAARkZUTV8+JbYAAAEMAAAAHEdERUYAZgAEAAABKAAAACBPUy8yZ4lJqQAAAUgAAABgY21hcAP25ogAAAGoAAACYmN2dCAJDgnDAAAEDAAAACZmcGdtD7QvpwAABDQAAAJlZ2FzcAAAABAAAAacAAAACGdseWZZWpTJAAAGpAAAIMBoZWFk+O4ZFQAAJ2QAAAA2aGhlYQd7A6oAACecAAAAJGhtdHjUPQWRAAAnwAAAAORsb2Nh8aD50AAAKKQAAAB0bWF4cAFaATgAACkYAAAAIG5hbWVHWuEQAAApOAAAA0Bwb3N0nGv7gAAALHgAAAFqcHJlcAJ3zycAAC3kAAABHwAAAAEAAAAAyYlvMQAAAADKy0wjAAAAAMrpamEAAQAAAA4AAAAYAAAAAAACAAEAAQA4AAEABAAAAAIAAAADA94BkAAFAAACigJYAAAASwKKAlgAAAFeADIA8AAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVS1dOAEAAIOAAAyD/OAAAA5EAeAAAAAEAAAAAAysDhAAAACAAAQAAAAMAAAADAAAAHAABAAAAAAFcAAMAAQAAABwABAFAAAAATABAAAUADAAhACsALQA/AEMARQBMAFAAVABnAGkAbQBwAHYAegDXIZMhqSKVIpcinSMCIxoltiYBJgUmayaRJpkmoCcJJw4nFCdkJ/IrB+AA//8AAAAgACsALQA/AEEARQBMAFAAVABhAGkAbABwAHIAegDXIZAhqSKVIpcinSM