As configured in my dotfiles.
start new:
tmux
start new with session name:
| ########## Start of header ################ | |
| # Title: Data Analysis Assignment [SeaWeed dataset] | |
| # | |
| # Description: | |
| # Analysis of SeaWeed dataset | |
| # extracted of from a field experiment on an island off Connemara | |
| # | |
| # Author: | |
| # Date: 20.07.2017 | |
| ########## End of header ################### |
| import scipy.io | |
| import keras | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Dropout, Flatten | |
| from keras.layers import Conv2D, MaxPooling2D | |
| # (get the data from files) | |
| # read train data into python from .mat file | |
| mat = scipy.io.loadmat('classifier_data.mat') | |
| x_train = mat['TrainData_2d'] |
| #include <iostream> | |
| #include <vector> | |
| #include <map> | |
| #include <string> | |
| #include <memory> | |
| #include <functional> | |
| using namespace std; | |
| // usage of auto as function return type that depends on template params |
| import json | |
| # from tqdm import tqdm | |
| link_json_fd = open('link.json') | |
| nolink_json_fd = open('nolink.json') | |
| link_json = json.load(link_json_fd) | |
| nolink_json = json.load(nolink_json_fd) | |
| link_json = [ | |
| {"title": v["title"], "url": v["doc - url"], "abstract": v["abstract"][0:20]} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # wifi-menu deps | |
| pacman --noconfirm -S wpa_supplicant ncurses dialog | |
| # install basic utils | |
| pacman --noconfirm -S sudo ntp curl wget openssh tar gzip unzip unrar | |
| # install development utils | |
| pacman --noconfirm -S gcc g++ gdb patch zlib readline libxml2 libxslt | |
| # install build utils |
| #!/bin/sh | |
| # ------------------------------------------------------------------------------ | |
| # FILE | build-model.sh | |
| # AUTHOR | sameh kamal | |
| # DESCRIPTION | build a new concatinative model | |
| # ------------------------------------------------------------------------------ | |
| db_name = $1 # database name | |
| dt_dir = $2 # raw data dir | |
| ws_dir = "~/tts-workspace" # workspace dir |
| #!/bin/sh | |
| # ============================================================================== | |
| # = author :- sameh kamal | |
| # = description :- install ilive-plugin with unimrcp server | |
| # = preconditions :- runs on ubuntu 14.4.x | |
| # ============================================================================== | |
| printf "> update ubuntu repositories\n\n" | |
| sudo apt-get clean | |
| sudo mv /var/lib/apt/lists /tmp |
| #!/usr/bin/env bash | |
| # Things to do after install ArchLinux (2012.12.01) | |
| pacman --noconfirm -S sudo | |
| # Enabled archlinuxfr repo | |
| arch=$(uname -m) | |
| sudo cp /etc/pacman.conf /etc/pacman.conf.bak | |
| echo "" >> /etc/pacman.conf | |
| echo "[archlinuxfr]" >> /etc/pacman.conf |
| function clc | |
| reset | |
| end | |
| function fish_prompt | |
| echo -e "" | |
| echo -e (set_color "white")"┌──["(set_color normal) (set_color "green")(pwd)(set_color normal) (set_color "white")"]"(set_color normal) | |
| echo -e (set_color "white")"└─⇾ "(set_color normal) | |
| end |