This file contains 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
# This should be inserted into the server {...} block. | |
# These lines rewrite the url to access the snapshots folder, or where ever you keep | |
# you prerendered pages (mainly used when working with pages rendered by JavaScript). | |
# | |
# example.com/?_escaped_fragment_= --> example.com/snapshots/index.html | |
# example.com/?_escaped_fragment_=/blog --> example.com/snapshots/blog.html | |
# example.com/?_escaped_fragment_=/blog/post --> example.com/snapshots/blog/post.html | |
# Captures URLs with any amount of levels (?_escaped_fragment_=/.../...) |
This file contains 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
/** | |
* Logging function to log only when run on localhost | |
*/ | |
function log() { | |
if(document.location.hostname == 'localhost') { | |
console.log.apply(console, arguments); | |
} | |
} |
This file contains 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
@mixin font-smoothing($value: antialiased) { | |
@if $value == antialiased { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
@else { | |
-webkit-font-smoothing: subpixel-antialiased; | |
-moz-osx-font-smoothing: auto; | |
} | |
} |
This file contains 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
# `cd` into the svn directory | |
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors.txt | |
# translate the svn usernames | |
# cma = cma <cma> | |
# into this: | |
# cma = Christian Morgan Andersen <[email protected]> | |
# create a directory for the git project | |
# move the authors.txt into the new directory |
This file contains 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
#! /bin/bash | |
IFS=$'\n' | |
ia list --glob="*.mp4" $1 | parallel --bar -j10 "ia download $1 {}" |