This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run from inside the project folder | |
find . -regex '.*/\.git/hooks/commit-msg' -exec sed -i '' -e 's/git secrets --commit_msg_hook -- "$@"//' {} \; | |
find . -regex '.*/\.git/hooks/pre-commit' -exec sed -i '' -e 's/git secrets --pre_commit_hook -- "$@"//' {} \; | |
find . -regex '.*/\.git/hooks/prepare-commit-msg' -exec sed -i '' -e 's/git secrets --prepare_commit_msg_hook -- "$@"//' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source activate JupytextSystemEnv | |
pip install jupytext --upgrade | |
jupyter serverextension enable jupytext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tempfile | |
from pathlib import Path | |
import subprocess | |
import sys | |
tmp_path = Path(tempfile.gettempdir()) | |
packages = ['crhelper'] | |
for package in packages: | |
subprocess.check_call([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
## INSTALL THEIA IDE FROM SOURCE | |
EC2_HOME=/home/ec2-user | |
mkdir ${EC2_HOME}/theia && cd ${EC2_HOME}/theia | |
### begin by installing NVM, NodeJS v10, and Yarn | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash | |
source ${EC2_HOME}/.nvm/nvm.sh | |
nvm install 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On local MacOS machine... | |
1) Download and Install TurboVCN | |
Only source for binaries was sourceforge: https://sourceforge.net/projects/turbovnc/files/2.1.2/ | |
`TurboVNC-2.1.2.dmg` failed to run on MacOS Siera, but `TurboVNC-2.1.2-AppleJava.dmg` was sucessful. | |
Only after installing an old version of Java: https://support.apple.com/kb/DL1572?locale=en_GB | |
2) Start AWS p3.2xlarge instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable dock bouncing annimation | |
defaults write com.apple.dock no-bouncing -bool TRUE; killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rename branch (local and remote) | |
git branch -m new_name | |
git push origin :old_name new_name | |
git push origin -u new_name | |
# checkout PR on github | |
git clone https://github.com/apache/incubator-mxnet.git | |
git fetch origin pull/13647/head:lipnet | |
git checkout lipnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convolution | Input Layout | Kernel Layout | Output Layout | |
---|---|---|---|---|
1D | (batch_size,in_channels,width) | (channels,in_channels,width) | (batch_size,channels,width) | |
2D | (batch_size,in_channels,height,width) | (channels,in_channels,height,width) | (batch_size,channels,height,width) | |
3D | (batch_size,in_channels,depth,height,width) | (channels,in_channels,depth,height,width) | (batch_size,channels,depth,height,width) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def apply_conv(data, kernel, conv): | |
""" | |
Args: | |
data (NDArray): input data. | |
kernel (NDArray): convolution's kernel parameters. | |
conv (Block): convolutional layer. | |
Returns: | |
NDArray: output data (after applying convolution). | |
""" | |
# add dimensions for batch and channels if necessary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "Files" | |
EndSection | |
Section "InputDevice" | |
# generated from default | |
Identifier "Mouse0" | |
Driver "mouse" | |
Option "Protocol" "auto" | |
Option "Device" "/dev/psaux" |
NewerOlder