tmux cheatsheet
As configured in my dotfiles.
start new:
tmux
start new with session name:
'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, |
// 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 |
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 } |
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); } |
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 |
# 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 |
# 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 | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html ng-app='app'> | |
<body> | |
<ul ng-controller="appStudent"> | |
<li ng-repeat="student in students"> | |
<a href="/students/view/{{student.id}}">{{$index+1}} - {{student.name}}</a> | |
</li> | |
<button ng-click="addXav()">Add Tom</button> | |
</ul> |
<!DOCTYPE html> | |
<html ng-app='appStudent'> | |
<body> | |
<ul ng-controller="StudentCtrl"> | |
<p>{{student.name}}</p> | |
<li ng-repeat="student in students"> | |
<a href="/students/view/{{student.id}}">{{$index+1}} - {{student.name}}</a> | |
</li> | |
</ul> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.22/angular.min.js"></script> |