Skip to content

Instantly share code, notes, and snippets.

@ijleesw
ijleesw / cint.py
Created November 25, 2019 13:24
C/C++ Pseudo-Interpreter
#!/usr/bin/python3
import os
import subprocess
MAIN = 'main'
GLOBAL = 'global'
STATES = [MAIN, GLOBAL]
RUN = 'run'
@ijleesw
ijleesw / .bashrc
Created July 9, 2019 04:39
.bashrc setting for ubuntu 14.04
alias v='vim '
alias sudo='sudo '
alias p='python3.5 '
alias gsq='gnome-session-quit'
alias :q='exit'
psg() {
ps -ef | grep $1
}
@ijleesw
ijleesw / .tmux.conf
Created July 9, 2019 04:36
.tmux.conf setting for tmux 1.8
# All commands start with C-a
set -g prefix C-a
# Use mouse
setw -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-utf on
@ijleesw
ijleesw / .vimrc
Last active July 9, 2019 04:35
.vimrc setting
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Basic setting
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Syntax highlighting
if has ("syntax")
syntax on
endif
" Indentation
set autoindent
@ijleesw
ijleesw / install-openmp-macos.sh
Created December 4, 2018 14:45
Install OpenMP on MacOS
#!/bin/bash
# Install
brew install llvm
brew install libomp
# Compile
# clang++ test.cpp -o test -Xpreprocessor -fopenmp -lomp
@ijleesw
ijleesw / install-cuda-9.0-cudnn-7.2.1-ubuntu-16.04.sh
Last active December 4, 2018 16:25
Install CUDA 9.0, cuDNN 7.2.1 and CUDA Toolkit on Ubuntu 16.04
#!/bin/bash
cd ~/Downloads
# Remove CUDA
# sudo apt-get --purge remove 'cuda*'
# sudo apt-get autoremove --purge 'cuda*'
# sudo rm -rf /usr/local/cuda*
# Install CUDA 9.0