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
page = require('webpage').create() | |
system = require 'system' | |
if system.args.length < 3 or system.args.length > 4 | |
console.log 'Usage: rasterize.coffee URL filename [paperwidth*paperheight|paperformat]' | |
console.log ' paper (pdf output) examples: "5in*7.5in", "10cm*20cm", "A4", "Letter"' | |
phantom.exit 1 | |
else | |
address = system.args[1] | |
output = system.args[2] |
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
ssh user@host "tar -zcf - /path/to/dir" > dir.tar.gz |
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
command <<< word |
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
tar -cvz /<path>/ | gpg --encrypt --recipient <keyID> > /<backup-path>/backup_`date +%d_%m_%Y`.tar.gz.gpg |
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
/* basic calc */ | |
.simpleBlock { | |
width: calc(100% - 100px); | |
} | |
/* calc in calc */ | |
.complexBlock { | |
width: calc(100% - 50% / 3); | |
padding: 5px calc(3% - 2px); | |
margin-left: calc(10% + 10px); |
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
<ul id="kwicks"> | |
<li><a class="john" href="http://en.wikipedia.org/wiki/John_lennon" title="John Lennon">John Lennon</a></li> | |
<li><a class="paul" href="http://en.wikipedia.org/wiki/Paul_mccartney" title="Paul McCartney">Paul McCartney</a></li> | |
<li><a class="george" href="http://en.wikipedia.org/wiki/George_harrison" title="George Harrison">George Harrison</a></li> | |
<li><a class="ringo" href="http://en.wikipedia.org/wiki/Ringo_starr" title="Ringo Starr">Ringo Starr</a></li> | |
</ul> | |
<style> | |
/* structure */ | |
#kwicks { width: 590px; overflow-x: hidden; } |
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
http://littlebigdetails.com/post/35910906518/github-hovering-over-relative-timestamps-shows-a | |
http://www.joedog.org/siege-home/ | |
http://maker.github.io/ratchet/ | |
http://www.patrick-wied.at/static/heatmapjs/ | |
http://mootools.net/forge/p/heatmap | |
http://davidwalsh.name/html5-context-menu |
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
<input type="email" pattern="[^ @]*@[^ @]*" value=""> |
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
<a href="download_pdf.php?id=15" download="myfile.pdf">Download PDF</a> |
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
<link rel="prerender" href="http://daker.me/2013/05/hello-world.html"> |
NewerOlder