View torch_snippets.md

Torch Notes

  1. How to use boolean variables in cmd:

cmd:option('--sample_patch', false, 'generate patch or image?')

So default is false, when one wants to turn that option on: th myfile.lua --sample_path

  1. Writing network architecture in option:
View python_snippets.md

Draw histograms from list

import numpy as np
import matplotlib.pyplot as plt

count = [23, 44, 12, 11, 2, 10]
pos = np.arange(len(count))
width = 0.1     # gives histogram aspect to the bar diagram
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View Celery Learning.md
  1. Install Celery and RabbitMQ on MAC:
pip install celery
brew install rabbitmq
  1. Basic

    Create folder celery_try and create file tasks.py.

View Installations.md
  1. Install CMake 3.5.2 on CentOS 7

    Download Source distributions cmake-3.5.2.tar.gz from https://cmake.org/download/
    ./bootstrap
    gmake
    sudo gmake install
    
  2. Install libgpuarray on Centos 7