start new:
tmux
start new with session name:
tmux new -s myname
I installed Font Awesome and uses it to make my Emacs mode line look cool:
auto-fill-mode
.flymake-report-status
to make this happen).gtags-mode
.Requirements: diminish.el - I installed it from MELPA.
FROM debian:jessie | |
ENV USER=boatswain USER_ID=1000 USER_GID=1000 | |
# now creating user | |
RUN groupadd --gid "${USER_GID}" "${USER}" && \ | |
useradd \ | |
--uid ${USER_ID} \ | |
--gid ${USER_GID} \ | |
--create-home \ |
""" An rbm implementation for TensorFlow, based closely on the one in Theano """ | |
import tensorflow as tf | |
import math | |
def sample_prob(probs): | |
"""Takes a tensor of probabilities (as from a sigmoidal activation) | |
and samples from all the distributions""" | |
return tf.nn.relu( | |
tf.sign( |
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control
and E-Tag
headers, etc.), minification, etc.
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
;; org-archive-subtree-hierarchical.el | |
;; | |
;; version 0.2 | |
;; modified from https://lists.gnu.org/archive/html/emacs-orgmode/2014-08/msg00109.html | |
;; modified from https://stackoverflow.com/a/35475878/259187 | |
;; In orgmode | |
;; * A | |
;; ** AA | |
;; *** AAA |