Get AngularJS at https://angularjs.org/.
See a demo of this code @plunker.
Services hold the business logic for an app.
Get AngularJS at https://angularjs.org/.
See a demo of this code @plunker.
Services hold the business logic for an app.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>The curse of dimensionality</title> | |
| </head> | |
| <body> | |
| <h3>The curse of dimensionality</h3> | |
| <p> |
| sudo apt-get install build-essential | |
| sudo apt-get update | |
| # BLAS → LAPACK → ATLAS → numpy → scipy → Theano | |
| # remove numpy and scipy | |
| sudo apt-get remove python-numpy | |
| sudo apt-get remove python-scipy | |
| # Instalation commands | |
| sudo apt-get install gfortran | |
| sudo apt-get install libopenblas-dev | |
| sudo apt-get install liblapack-dev |
| #!/usr/bin/env python | |
| # gpu_stat.py [DELAY [COUNT]] | |
| # dump gpu stats as a json and plot in file | |
| # {"cpu":5.9,"gpu":{"used_mem":7959,"util":{"graphics":91,"memory":56,"video":0,"PCIe":2}},"time":1505480296.0436406} | |
| import sys | |
| import time | |
| import json | |
| from pathlib import Path | |
| # import socket |
| import sys | |
| from pathlib import Path | |
| import numpy as np | |
| from skimage.io import imread, imsave | |
| from skimage.color import gray2rgb | |
| def to_rgba(img_): | |
| if 3 == img_.ndim: | |
| if 4 == img_.shape[2]: | |
| return img_ |
| git repack -a -d --depth=250 --window=250 | |
| git gc | |
| git prune |
| # Source: http://www.pixelbeat.org/fslint/ | |
| # https://www.vdr-portal.de/forum/index.php?thread/124755-gel%C3%B6st-dpkg-buildpackage-signiert-das-dsc-file-nicht/ | |
| git clone https://github.com/pixelb/fslint.git | |
| cd fslint | |
| # Note: "-us -uc" skips signing the package and is definitely not recommended (but works for self-built packages) | |
| dpkg-buildpackage -I.git -rfakeroot -tc -us -uc | |
| sudo dpkg -i ../fslint_2.47-1_all.deb |
| # Source: https://askubuntu.com/questions/1077061/how-do-i-install-nvidia-and-cuda-drivers-into-ubuntu | |
| sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | |
| sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" >> /etc/apt/sources.list.d/cuda.list' | |
| sudo apt update | |
| # sudo apt install nvidia-driver-410 | |
| # sudo apt install cuda-10-0 |