This content has moved.
Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!
const axios = require('axios') | |
const LinkHeader = require('http-link-header') | |
const nextPage = (header) => { | |
const link = LinkHeader.parse(header) | |
const [ next ] = link.get('rel', 'next') | |
return next && next.results === 'true' ? next.uri : null | |
} |
FROM ubuntu:16.04 | |
RUN echo "[INFO]::[installing]::[base packages]" \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends --no-install-suggests \ | |
software-properties-common libssl-dev libmcrypt-dev openssl ca-certificates \ | |
git ntp curl tzdata bzip2 libfontconfig1 phantomjs mysql-client sudo jq \ | |
&& apt-get autoclean && apt-get clean && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* | |
RUN echo "[INFO]::[installing]::[java packages]" \ |
This content has moved.
Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!
var DOMTokenListSupports = function(tokenList, token) { | |
if (!tokenList || !tokenList.supports) { | |
return; | |
} | |
try { | |
return tokenList.supports(token); | |
} catch (e) { | |
if (e instanceof TypeError) { | |
console.log("The DOMTokenList doesn't have a supported tokens list"); | |
} else { |
Because after reading this blog post (sent by my dear friend @hugobessaa) I got paranoid. It's a little effort that can avoid a lot of trouble.
--author
option""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
#!/usr/bin/env bash | |
size=1024 # MB | |
mount_point=$HOME/tmp | |
name=$(basename "$mount_point") | |
usage() { | |
echo "usage: $(basename "$0") [mount | umount | remount | check | orphan]" \ | |
"(default: mount)" >&2 | |
} |
/** | |
* Proof of concept ESLint rule for warning about potential | |
* XSS vulnerabilities caused by mixing innerHTML/text node | |
* property access. | |
* | |
* More here: http://benv.ca/2012/10/2/you-are-probably-misusing-DOM-text-methods/ | |
*/ | |
'use strict'; | |
var WARNING_MSG = |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch