Execute the macro stored in register a on lines 5 through 10.
:5,10norm! @a
Execute the macro stored in register a on all lines.
:%norm! @a
Jumping
gem install zurb-foundation | |
compass install foundation --force | |
compass watch |
import re | |
def in_active_path(nav_slug, page_slug): | |
return re.match(nav_slug, page_slug) |
# Some useful Unicode entities | |
# Non-Breaking Space | |
snippet nbs | |
| |
# ← | |
snippet left | |
← | |
# → | |
snippet right | |
→ |
<ul> | |
{%- for slug, title, children in NAVIGATION recursive %} | |
<li><a href="{{SITEURL}}/{{slug}}/">{{ title }}</a> | |
{%- if children -%} | |
<ul>{{ loop(children) }}</ul> | |
{%- endif %}</li> | |
{%- endfor %} | |
</ul> |
Execute the macro stored in register a on lines 5 through 10.
:5,10norm! @a
Execute the macro stored in register a on all lines.
:%norm! @a
Jumping
(function() { | |
var beforePrint = function() { | |
console.log('before'); | |
}; | |
var afterPrint = function() { | |
console.log('after'); | |
}; | |
if (window.matchMedia) { | |
var mediaQueryList = window.matchMedia('print'); |
RewriteRule ^(js|css|img)/(.+)\.(.+)\.(js|css|jpg|gif|png)$ $1/$2.$4 [L] |
<link rel="stylesheet" href="<?php autoVer('/css/main.css'); ?>" type="text/css" /> | |
<script type="text/javascript" src="<?php autoVer('/scripts/main.js'); ?>"></script> |
<?php | |
function autoVer($url) { | |
$path = pathinfo($url); | |
$ver = '.' . filemtime($_SERVER['DOCUMENT_ROOT'] . $url) . '.'; | |
echo $path['dirname'] . '/' . str_replace('.', $ver, $path['basename']); | |
} |
<FilesMatch "\.(gif|png|jpg|js|css|swf)$"> | |
ExpiresActive On | |
ExpiresDefault "access plus 10 years" | |
</FilesMatch> |