This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.mq-large .service-list__row { | |
float: left; | |
display: table; | |
table-layout: fixed; | |
width: 66.66%; | |
padding-right: 0.1875em; | |
} | |
.mq-large .service-list__row + .service-list__row { | |
position: relative; | |
left: .375em; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cb = function ($fn) { | |
return $fn; | |
}; | |
echo <<<HEREDOC | |
Hello, {$cb(ucfirst('world'))} | |
HEREDOC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "screen-256color" | |
set -g status-bg white | |
set -g status-fg black | |
set -g status-left " " | |
set -g status-right " #(hostname -s) " | |
set -g set-titles on | |
set -g set-titles-string "#W" | |
set -g base-index 1 | |
set -s escape-time 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# delete node | |
find . -name modules.xml | xargs xmlstarlet ed -L -d '//node' | |
# update attribute | |
find . -name modules.xml | xargs xmlstarlet ed -L -u '//node/@attr' -v 'value' | |
# indent with 4 spaces | |
for i in $(find . -name 'modules.xml'); do xmlstarlet fo -s 4 "$i" > "$i.tmp"; mv "$i.tmp" "$i"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function() { | |
var forms = document.forms; | |
function gaTrackPageview(number) { | |
_gaq.push(['_trackPageview', document.location.pathname + '-form-' + number]); | |
} | |
for (var i = 0; i < forms.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global color.diff always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$(brew --prefix)/bin:$PATH" | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export HISTSIZE=2000 | |
export HISTFILE="$HOME/.history" | |
export SAVEHIST=$HISTSIZE | |
setopt hist_ignore_all_dups | |
setopt hist_ignore_space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} | |
} | |
] |