(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
var NodeChatController = { | |
init: function() { | |
this.socket = io.connect('http://localhost'); | |
var mysocket = this.socket; | |
this.model = new models.NodeChatModel(); | |
this.view = new NodeChatView({model: this.model, socket: this.socket, el: $('#content')}); | |
var view = this.view; | |
this.socket.on('message', function(msg) { |
# Adapted from | |
# http://pytables.github.io/usersguide/libref/homogenous_storage.html#the-carray-class | |
import os | |
import numpy | |
import tables | |
from itertools import groupby | |
from operator import itemgetter | |
from time import time |
import sys | |
import logging | |
import numpy | |
import gensim | |
logging.basicConfig(level=logging.INFO) | |
train_sentences = gensim.models.doc2vec.LabeledLineSentence(sys.argv[1]) | |
model = gensim.models.Doc2Vec(train_sentences, size=400, window=8, min_count=2, |
# Copyright (c) 2012, Ryan Gomba | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# 2. Redistributions in binary form must reproduce the above copyright notice, | |
# this list of conditions and the following disclaimer in the documentation |