Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Artot xavierartot

  • Paris
View GitHub Profile
View gist:7437641
<?php
/**
ReduxFramework Sample Config File
For full documentation, please visit http://reduxframework.com/docs/
**/
/**
@xavierartot
xavierartot / gist:8342627
Created Jan 9, 2014
ReduxFramework Sample Config File
View gist:8342627
<?php
/**
ReduxFramework Sample Config File
For full documentation, please visit: https://github.com/ReduxFramework/ReduxFramework/wiki
**/
if ( !class_exists( "ReduxFramework" ) ) {
return;
}
@xavierartot
xavierartot / gist:9299781
Created Mar 2, 2014
Gruntfile.js - 3/1/2014
View gist:9299781
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
src: ['Gruntfile.js', 'assets/javascript/src/jquery.menu_css3.js'],
options: {
node: true,
//eqeqeq: true,
//immed: false,
View charging Google font
// charging google font
1
2 $.get("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyChZeTZ-DzMW-45IUBXUSuBha9MWEiXXtI", {},
3 function (data) {
4 // charge toutes les polices dans le select
5 $.each(data.items, function (index, value) {
6 $('#fonts-l').append($("<option class='google'></option>").attr("value", value.family).text(value.family));
7 });
8
9 // au chargement de la page on affiche la police enregistrer
@xavierartot
xavierartot / charging in the front Google font
Created Mar 5, 2014
charging in the front Google font
View charging in the front Google font
78 if(esc_attr( get_option('font-type') ) == 'google' ) {
79 $fonts_l = esc_attr( get_option('fonts-l') );
80 global $fonts_l;
81 add_action('wp_print_styles', 'add_google_fonts');
82 function add_google_fonts() {
83 global $fonts_l;
84 $fonts_l = 'http://fonts.googleapis.com/css?family='.trim($fonts_l);
85 wp_register_style('GoogleFonts', $fonts_l);
86 wp_enqueue_style('GoogleFonts');
87 }
View gist:9935149
The problem is that unless the element on the page has a solid background or it is a picture, you do not see how does it fit into the layout, e.g. most of the text nodes, pictures with transparency, etc.
It is meant to be used when you are working with layout.
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
View gist:11061365
execute pathogen#infect()
set syntax=on
""====[ Make the 101st column stand out ]==================[ Make the 101st column stand out ]==============
" Asesome 80-character limiter
execute "set colorcolumn=" . join(range(101,335), ',')
hi ColorColumn guibg=#262626 ctermbg=235
"highlight ColorColumn ctermbg=yellow ctermfg=blue
"set colorcolumn=101
View gist:11061414
# zsh is kinda tight
set-option -g default-shell /bin/zsh
# copy and paster
set-option -g default-command "reattach-to-user-namespace -l zsh"
# look good
set -g default-terminal "screen-256color"
# a mouse
set -g mode-mouse on
setw -g mode-mouse on
View gist:11061449
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Customize to your needs...
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/MAMP/Library/bin:/Users/xartot/snippets
#open a project
gotoweb(){
cd /Applications/MAMP/htdocs/$1
}
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: