View unfoldr.kt
fun <T,R> unfoldRight(f: (T) -> Pair<R, T>?, b: T): List<R> {
val maybePair: Pair<R, T>? = f(b)
return if ( maybePair == null) {
listOf()
} else {
listOf(maybePair.first) + unfoldRight(f, maybePair.second)
}
}
View .stCommitMsg
# 50-character subject line
#
# 72-character wrapped longer description.
# Why is this change necessary?
Why:
*
View www.uusimuste.fi_2017-08-28_15-04-29.lighthouse.report.json
{"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3198.0 Safari/537.36","lighthouseVersion":"2.4.0","generatedTime":"2017-08-28T12:04:29.937Z","initialUrl":"https://www.uusimuste.fi","url":"https://www.uusimuste.fi/","audits":{"is-on-https":{"score":true,"displayValue":"","rawValue":true,"extendedInfo":{"value":[]},"scoringMode":"binary","name":"is-on-https","category":"Security","description":"Uses HTTPS","helpText":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https).","details":{"type":"list","header":{"type":"text","text":"Insecure URLs:"},"items":[]}},"redirects-http":{"score":true,"displayValue":"","rawValue":true,"scoringMode":"binary","name":
View www.uusimuste.fi_2017-05-19_10-52-08.lighthouse.report.json
{"lighthouseVersion":"1.6.5","generatedTime":"2017-05-19T07:52:08.040Z","initialUrl":"https://www.uusimuste.fi","url":"https://www.uusimuste.fi/","audits":{"is-on-https":{"score":true,"displayValue":"","rawValue":true,"extendedInfo":{"formatter":"urllist","value":[]},"name":"is-on-https","category":"Security","description":"Uses HTTPS","helpText":"All sites should be protected with HTTPS, even ones that don't handle sensitive data. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/https)."},"redirects-http":{"score":true,"displayValue":"","rawValue":true,"name":"redirects-http","category":"Security","description":"Redirects HTTP traffic to HTTPS","helpText":"If you've already set up HTTPS, make sure that you redirect all HTTP traffic to HTTPS. [Learn more](https://developers.google.com/web/tools/light
View install_node.sh
function install_node() {
local REQUIRED_MAJOR_NODE_VERSION=${REQUIRED_NODEJS_VERSION:0:1}
echo "${BLUE}Which version manager do you want to install node.js with? If you don't know, choose 'brew'${NORMAL}:"
select NODE_VERSION_MANAGER in 'brew' 'nvm' 'nodenv' 'other';
do
case $NODE_VERSION_MANAGER in
'nvm'|'nodenv')
verify_command $NODE_VERSION_MANAGER
set +x
$NODE_VERSION_MANAGER install $REQUIRED_MAJOR_NODE_VERSION
View keybase.md

Keybase proof

I hereby claim:

  • I am deiga on github.
  • I am deiga (https://keybase.io/deiga) on keybase.
  • I have a public key ASCbkyDHmHmHfOC74uAzBrA0mMbbq5WI4nXYcaDfp7Kd8go

To claim this, I am signing this object:

View untitled
-='cd -'
...=../..
....=../../..
.....=../../../..
......=../../../../..
1='cd -'
2='cd -2'
3='cd -3'
4='cd -4'
5='cd -5'
View aliases.yaml
compile-dev:
- 'copy'
- 'hogan'
- 'compass:all'
- 'concat'
- 'requirejs'
ci:
- 'clean'
View glögi
Viinipirun Virallinen Glögiresepti:
2 l omenamehua
tuoretta inkivääriä
kanelitankoja
tähtianiksia
sitruuna
hunajaa
2 dl * tähden Jallua
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console