This article is now published on my website: Prefer Subshells for Context.
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
#!/usr/bin/env bash | |
# This script fetches and builds libx264, libav, rtmpd and their dependencies. | |
# you may have to add /usr/local/lib to /etc/ld.so.conf | |
# BASEDIR = build directory (default current dir) | |
# PREFIX = install directory (default /usr/local) | |
if [ -z "$BASEDIR" ]; then | |
BASEDIR=`pwd` | |
fi |
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
var jq = document.createElement('script'); | |
// You can change the version number (2.1.0) to any version hosted via Google's Hosted Libraries. | |
// https://developers.google.com/speed/libraries/devguide#jquery | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// After running the above commands you can run the command below if necessary. | |
jQuery.noConflict(); |
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * x