View vscode_alias.sh
alias vscode="/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron"
View docker_sudo_group_add.sh
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
View gdb_macos_install.sh
curl http://ftp.gnu.org/gnu/gdb/gdb-8.0.tar.gz -o gdb-8.0.tar.gz
tar xopf gdb-8.0.tar.gz
cd gdb-8.0
./configure
make
sudo make install
View dl4j_vocab.log
12:55:05.736 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Target vocab size before building: [0]
12:55:05.738 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Trying source iterator: [0]
12:55:05.738 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Target vocab size before building: [0]
12:55:05.809 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Wating till all processes stop...
12:55:05.810 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Vocab size before truncation: [727], NumWords: [16323], sequences parsed: [41], counter: [16323]
12:55:05.812 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Scavenger: Words before: 727; Words after: 727;
12:55:05.812 [main] DEBUG o.d.m.w.wordstore.VocabConstructor - Vocab size after truncation: [727], NumWords: [16323], sequences parsed: [41], counter: [16323]
12:55:08.208 [main] INFO o.d.m.w.wordstore.VocabConstructor - Sequences checked: [41], Current vocabulary size: [727]; Sequences/sec: [16.59];
View theano.gpu.config
floatX (('float64', 'float32', 'float16'))
Doc: Default floating-point precision for python casts.
Note: float16 support is experimental, use at your own risk.
Value: float64
warn_float64 (('ignore', 'warn', 'raise', 'pdb'))
Doc: Do an action when a tensor variable with float64 dtype is created. They can't be run on the GPU with the current(old) gpu back-end and are slow with gamer GPUs.
Value: ignore
View theano.cpu.config
floatX (('float64', 'float32', 'float16'))
Doc: Default floating-point precision for python casts.
Note: float16 support is experimental, use at your own risk.
Value: float64
warn_float64 (('ignore', 'warn', 'raise', 'pdb'))
Doc: Do an action when a tensor variable with float64 dtype is created. They can't be run on the GPU with the current(old) gpu back-end and are slow with gamer GPUs.
Value: ignore
View Dockerfile
# anaconda
RUN \
curl -O https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh && \
yes "yes" | bash Anaconda3-4.2.0-Linux-x86_64.sh && \
sudo bash -c ~/.bashrc
# conda dependencies: Intel MKL
RUN conda install -c anaconda mkl-service
View throttle.js
// Returns a function, that, when invoked, will only be triggered at most once
// during a given window of time. Normally, the throttled function will run
// as much as it can, without ever going more than once per `wait` duration;
// but if you'd like to disable the execution on the leading edge, pass
// `{leading: false}`. To disable execution on the trailing edge, ditto.
function throttle(func, wait, options) {
var context, args, result;
var timeout = null;
var previous = 0;
if (!options) options = {};
View MusicPlayerManager.swift
/*
See LICENSE folder for this sample’s licensing information.
Abstract:
The `MusicPlayerManager` manages the media playback using the `MPMusicPlayerController` APIs.
*/
import UIKit
import MediaPlayer
View console.log
2017-07-13 16:17:55.932463+0200 Adding-Content-to-Apple-Music[83643:2424889] [SDKPlayback] Attempting to use MPMusicPlayerController without Music.app installed.
2017-07-13 16:17:56.181066+0200 Adding-Content-to-Apple-Music[83643:2424889] -[_TtGCs26_SwiftDeferredNSDictionaryVs11AnyHashableP__ objectForKeyNotNull:]: unrecognized selector sent to instance 0x6080000346e0
2017-07-13 16:17:56.197245+0200 Adding-Content-to-Apple-Music[83643:2424889] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_TtGCs26_SwiftDeferredNSDictionaryVs11AnyHashableP__ objectForKeyNotNull:]: unrecognized selector sent to instance 0x6080000346e0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000106dd5c7b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000106062121 objc_exception_throw + 48
2 CoreFoundation 0x0000000106e537b4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation