$ touch /usr/share/applications/robo3t.desktop
$ vim /usr/share/applications/robo3t.desktop
| import errno | |
| import tempfile | |
| import os | |
| class ScopedTemporaryFile(object): | |
| """ Temp file to use in a with statement. | |
| with ScopedTemporaryFile() as f: | |
| ... do stuff with f ... |
| #!/usr/bin/env python2.7 | |
| import argparse | |
| from ost import * | |
| def testVerbosityLevel(): | |
| print("Verbosity: %d" % GetVerbosityLevel()) | |
| LogError("LogError") # >= 0 | |
| LogWarning("LogWarning") # >= 1 | |
| LogScript("LogScript") # >= 2 |
| #!/bin/bash | |
| JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
| for JAIL in $JAILS | |
| do | |
| fail2ban-client status $JAIL | |
| done |
| install.packages(c("Rcpp", "plotrix", "RcppEigen", "BH", "devtools")) | |
| library("devtools") | |
| install_github(repo = "mnist", username = "xrobin", ref = "master") | |
| install_github(repo = "DeepLearning", username = "xrobin", ref = "master") | |
| my.diag.function <- function(rbm, batch, data, iter, batchsize, maxiters, layerFromCpp) { | |
| print(iter) | |
| } |