Standard Braking Distance
- DE:
(Geschwindigkeit / 10) * (Geschwindigkeit / 10)
- EN:
(Speed / 10) * (Speed / 10)
Evasive (Emergency) Braking Distance
- DE:
((Geschwindigkeit / 10) * (Geschwindigkeit / 10)) / 2
- EN:
((Speed / 10) * (Speed / 10)) / 2
# Generic Aliases | |
alias ll='ls -latr' # List all file in long list format by modification time | |
alias ..='cd ..' # Go up one directory | |
alias ...='cd ../..' # Go up two directories | |
alias ....='cd ../../..' # Go up three directories | |
alias -- -='cd -' # Go back | |
alias c='clear' # Clear Screen | |
alias k='clear' # Clear Screen | |
alias cls='clear' # Clear Screen | |
alias _="sudo" # Execute with sudo |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
""" | |
Programming task | |
================ | |
Implement the method iter_sample below to make the Unit test pass. iter_sample | |
is supposed to peek at the first n elements of an iterator, and determine the | |
minimum and maximum values (using their comparison operators) found in that | |
sample. To make it more interesting, the method is supposed to return an | |
iterator which will return the same exact elements that the original one would | |
have yielded, i.e. the first n elements can't be missing. |
(defun mayoff:open-url-in-chrome (url) | |
"Open URL in Google Chrome. I use AppleScript to do several things: | |
1. I tell Chrome to come to the front. If Chrome wasn't launched, this will also launch it. | |
2. If Chrome has no windows open, I tell it to create one. | |
3. If Chrome has a tab showing URL, I tell it to reload the tab, make that tab the active tab in its window, and bring its window to the front. | |
4. If Chrome has no tab showing URL, I tell Chrome to make a new tab (in the front window) showing URL." | |
(when (symbolp url) | |
; User passed a symbol instead of a string. Use the symbol name. | |
(setq url (symbol-name url))) | |
(do-applescript (format " |
# Note – this is not a bash script (some of the steps require reboot) | |
# I named it .sh just so Github does correct syntax highlighting. | |
# This install Tensorflow 0.11, Cuda 8.0 and cudnn-8.0 | |
# The CUDA part is mostly based on this excellent blog post: | |
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
# I extened Erick using additional instructions from http://ramhiser.com/2016/01/05/installing-tensorflow-on-an-aws-ec2-instance-with-gpu-support/ | |
# Install various packages | |
sudo apt-get update | |
sudo apt-get upgrade -y # choose “install package maintainers version” |
--- | |
- name: Install MacOS Packages | |
hosts: localhost | |
become: false | |
vars: | |
brew_cask_packages: | |
- 'atom' | |
- 'docker' | |
- 'dropbox' | |
- 'firefox' |
This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software
on an Ubuntu Linux system, in particular Ubuntu 20.04.