I hereby claim:
- I am jeepkd on github.
- I am jeepkd (https://keybase.io/jeepkd) on keybase.
- I have a public key ASBBzi2j_tIx2nNKnsqGusY3ZiiYcKy-pNnlxBqu6ppzrAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| sudo apt-get update | |
| sudo apt-get install nvidia-driver-430 -y |
| jeep@datawow1 ~ ❯❯❯ sudo apt install nvidia-driver-430 | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| The following packages were automatically installed and are no longer required: | |
| libaccinj64-9.1 libcublas9.1 libcudart9.1 libcufft9.1 libcufftw9.1 libcuinj64-9.1 libcurand9.1 libcusolver9.1 | |
| libcusparse9.1 libnppc9.1 libnppial9.1 libnppicc9.1 libnppicom9.1 libnppidei9.1 libnppif9.1 libnppig9.1 | |
| libnppim9.1 libnppist9.1 libnppisu9.1 libnppitc9.1 libnpps9.1 libnvblas9.1 libnvgraph9.1 libnvidia-common-396 | |
| libnvrtc9.1 libnvtoolsext1 libnvvm3 libthrust-dev libvdpau-dev ocl-icd-opencl-dev opencl-c-headers | |
| Use 'sudo apt autoremove' to remove them. |
| # Use Ubuntu as a base image for creating a new one. | |
| FROM ubuntu:16.04 | |
| # Install dependencies for Tensorflow. | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| libfreetype6-dev \ | |
| libhdf5-serial-dev \ | |
| libpng12-dev \ |
| import json | |
| with open('./data.json') as f: | |
| data = json.load(f) | |
| d = data['item']['topic'] |
| import PIL | |
| import numpy | |
| def scale(image, max_size, method=PIL.Image.ANTIALIAS): | |
| """ | |
| resize 'image' to 'max_size' keeping the aspect ratio | |
| and place it in center of a noisy 'max_size' image | |
| """ | |
| im_aspect = float(image.size[0])/float(image.size[1]) | |
| out_aspect = float(max_size[0])/float(max_size[1]) |
| def grouper(n, iterable): | |
| it = iter(iterable) | |
| while True: | |
| chunk = tuple(itertools.islice(it, n)) | |
| if not chunk: | |
| return | |
| yield chunk |
| src='nanameue' | |
| tar='test' | |
| for p in $(find $src -type d | sort | awk '$0 !~ last "/" {print last} {last=$0} END {print last}') | |
| do | |
| mkdir -p $(echo $p | sed "s/$src/$tar/") | |
| path=$(realpath $p) | |
| for f in $(find $path -type f) | |
| do | |
| newf=$(echo $f | sed "s/$src/$tar/" | xargs realpath) | |
| ln -s $f $newf |
| #!/usr/bin/env bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Remove existing downloads and binaries so we can start from scratch. | |
| rm ~/google-chrome-stable_current_amd64.deb |
| set -g mouse on | |
| setw -g mode-keys vi | |
| # Smart pane switching with awareness of Vim splits. | |
| # See: https://github.com/christoomey/vim-tmux-navigator | |
| is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | |
| | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" | |
| bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" | |
| bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" | |
| bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" |