Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

set-option -g status-position top
# Toggle mouse on with ^B m
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
Machine Learning
===
@zomux
zomux / sadfw.html
Created October 3, 2014 00:34
Hello!
<h1 id="welcome-to-stackedit">Welcome to StackEdit!</h1>
<p>Hey! I’m your first Markdown document in <strong>StackEdit</strong><a href="#fn:stackedit" id="fnref:stackedit" title="See footnote" class="footnote">1</a>. Don’t delete me, I’m very helpful! I can be recovered anyway in the <strong>Utils</strong> tab of the <i class="icon-cog"></i> <strong>Settings</strong> dialog.</p>
<hr>
<h2 id="documents">Documents</h2>
"Hello.",0,0,0,0,0,0,0,0,0,0
"Hello.",0,0,0,0,0,0,0,0,0,0
"Is this Marico?",0,0,0,0,0,0,0,0,0,0
"Marie.",0,0,0,0,0,0,0,0,0,0
"Hi, Marie. How are you? I'm Sandra. I'll be your teacher today.",0,0,0,0,0,0,0,0,0,0
"I'm Marie. I'm fine.",1,1,0,0,0,0,0,0,0,0
"Marie, this is our first class together. Can you see me?",0,0,0,0,0,0,0,0,0,0
"Yes.",0,0,0,0,0,0,0,0,0,0
"You can hear me quite well?",0,0,0,0,0,0,0,0,0,0
"Yes.",0,0,0,0,0,0,0,0,0,0
@zomux
zomux / asdf.css
Last active August 29, 2015 14:07
/*
Name: Tomorrow Night - Eighties
Author: Chris Kempson
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
*/
@zomux
zomux / MPL Plot.py
Created October 23, 2014 15:00
MPL Plot.py
# MPL Plot
# A simple demo of using matplotlib in Pythonista.
import console
console.clear()
print 'Generating plot... (this may take a little while)'
import numpy
import matplotlib.pyplot as plt
import math
'''
Build a tweet sentiment analyzer
'''
import theano
import theano.tensor as tensor
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
import cPickle as pkl
import numpy
import copy
protected void init(int[] shape) {
ensureNotCleanedUp();
this.shape = shape;
if (this.shape.length == 1) {
rows = 1;
columns = this.shape[0];
} else if (this.shape().length == 2) {
rows = shape[0];
learn: function(r1) {
// perform an update on Q function
if(!(this.r0 == null) && this.alpha > 0) {
// learn from this tuple to get a sense of how "surprising" it is to the agent
var tderror = this.learnFromTuple(this.s0, this.a0, this.r0, this.s1, this.a1);
this.tderror = tderror; // a measure of surprise
// decide if we should keep this experience in the replay
if(this.t % this.experience_add_every === 0) {