This gist is simply a set of scripts to install and test everything you need to get started with Deep Learning. This includes:
- TensorFlow
- Theano
- Keras
- CUDNN
- CUDA Toolkit
- Misc. linux Tools like tmux.
| /* | |
| FastList<T> is a System.Collections.Generic.List<T> modification such, that allows to not produce garbage when using foreach. | |
| Useful for old versions of c# runtime (like Mono 2.x), i.e. for Unity. | |
| It implements own instance-type enumerator and caches only one instance of this enumerator inside. | |
| Instance-type enumerator allows to avoid boxing that occurs when foreach converts IEnumerator to IDisposable and calls Dispose(). | |
| (Default List<T> enumerator is value-type (struct), so when foreach converts to IDisposable, boxing occurs and 20 bytes of garbage will be collected.) | |
| Warnings: |
| sudo: required #is required to use docker service in travis | |
| language: php #can be any language, just php for example | |
| services: | |
| - docker # required, but travis uses older version of docker :( | |
| install: | |
| - echo "install nothing!" # put your normal pre-testing installs here |
| #cracks for open source software are always cool.... | |
| #requires root privileges to replace omni.ja | |
| #needs to be reapplied on reinstall | |
| #you'll also need to set xpinstall.signatures.required to false | |
| #and restart your browser | |
| #tested on arch with FF48 | |
| OMNI_PATH=${1:-/usr/lib/firefox} |
Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
| #ifndef __MATRIX_INCLUDED__ | |
| #define __MATRIX_INCLUDED__ | |
| #define IDENTITY_MATRIX float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) | |
| float4x4 inverse(float4x4 m) { | |
| float n11 = m[0][0], n12 = m[1][0], n13 = m[2][0], n14 = m[3][0]; | |
| float n21 = m[0][1], n22 = m[1][1], n23 = m[2][1], n24 = m[3][1]; | |
| float n31 = m[0][2], n32 = m[1][2], n33 = m[2][2], n34 = m[3][2]; | |
| float n41 = m[0][3], n42 = m[1][3], n43 = m[2][3], n44 = m[3][3]; |