Skip to content

Instantly share code, notes, and snippets.

@nro-bot
nro-bot / 0_README.md
Last active December 30, 2018 23:56
Automating Mal-Lys form submission

To use

(install python)

$ pip install requests
$ python robo_submit.py

Created by nouyang for jbaek

:s/#\([a-z]\)/# \1/g
" replaces:
" #test
" with:
" # test
# to comply with pep8 (inserts space)
@nro-bot
nro-bot / ImageShow.py
Created December 5, 2018 18:49
use eog instead of imagemagick in PIL Image
#hinted from
# https://stackoverflow.com/questions/16279441/image-show-wont-display-the-picture#answer-31596116
(mlenv) rui@rui-chai:~/mlenv/lib/python3.6/site-packages/PIL$ $ which python
/home/rui/mlenv/bin/python
rui@rui-chai:~/mlenv/lib/python3.6/site-packages/PIL$ $ vi ImageShow.py
class DisplayViewer(UnixViewer):
def get_command_ex(self, file, **options):
@nro-bot
nro-bot / Python Tutorial 2018.ipynb
Last active January 26, 2021 02:09
AM205 Python Tutorial 2018
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nro-bot
nro-bot / .bashrc
Created April 9, 2018 06:35
.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@nro-bot
nro-bot / .vimrc
Created April 2, 2018 13:30
config files
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
1https://stackoverflow.com/questions/26740113/virtualbox-shared-folder-permissions#26981786
sudo adduser yourusername vboxsf
screenshot producing only black screen - disable 3d accel
@nro-bot
nro-bot / subfig.tex
Created March 13, 2018 20:53
subfigure example latex (suing \subfloat)
\usepackage{graphicx}
\usepackage{float}
\usepackage{subfig}
\begin{figure}[htbp]
\centering
\subfloat[ a caption
]{%
\includegraphics[width=0.35\linewidth]{image.png}%
@nro-bot
nro-bot / Ford Prompts.md
Created December 15, 2017 01:51
Fellowships 2017 -- Ford

Deadlines

Application: December 14, 2017 at 5:00 PM Eastern Time

IMPORTANT: Due to a large number of applications, as the deadline approaches, server traffic may slow your ability to upload files and submit. For that reason, we strongly recommend that you submit your application well in advance of the deadline. We cannot consider requests for extensions for anyone who is unable to submit by the deadline.

Supplementary Materials: January 9, 2018 at 5:00 PM Eastern Time

General Guidelines and Advance Preparation

@nro-bot
nro-bot / .vimrc
Created November 22, 2017 15:37
settings for laptop
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required