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
$.urlParam = function(name){ | |
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); | |
if (!results){ return null; } | |
return results[1] || null; | |
} |
function beforePrint(e) {} | |
function afterPrint(e) {} | |
if ($.browser.msie) { | |
window.onbeforeprint = beforePrint; | |
window.onafterprint = function() { | |
setTimeout(function () { afterPrint(); }, 1000); | |
}; | |
} |
function branch() | |
{ | |
echo "http://havok.thezoo/repos/$1/trunk/ http://havok.thezoo/repos/$1/branches/$2/ -m \"BRANCH $2 created from trunk\"" | |
} | |
function tag() | |
{ | |
args=$2 | |
major=`echo $args | awk -F"." '{print $1}'` | |
minor=`echo $args | awk -F"." '{print $2}'` |
{ | |
var separator = ','; | |
} | |
start | |
= comma | |
comma | |
= & { return separator = ','; } sv:sv { return sv; } |
<FilesMatch "\.(gif|png|jpg|js|css|swf)$"> | |
ExpiresActive On | |
ExpiresDefault "access plus 10 years" | |
</FilesMatch> |
<?php | |
function autoVer($url) { | |
$path = pathinfo($url); | |
$ver = '.' . filemtime($_SERVER['DOCUMENT_ROOT'] . $url) . '.'; | |
echo $path['dirname'] . '/' . str_replace('.', $ver, $path['basename']); | |
} |
<link rel="stylesheet" href="<?php autoVer('/css/main.css'); ?>" type="text/css" /> | |
<script type="text/javascript" src="<?php autoVer('/scripts/main.js'); ?>"></script> |
RewriteRule ^(js|css|img)/(.+)\.(.+)\.(js|css|jpg|gif|png)$ $1/$2.$4 [L] |
(function() { | |
var beforePrint = function() { | |
console.log('before'); | |
}; | |
var afterPrint = function() { | |
console.log('after'); | |
}; | |
if (window.matchMedia) { | |
var mediaQueryList = window.matchMedia('print'); |
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