This file contains hidden or 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
| alias gitlog='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"' | |
| alias gs='git status' | |
| alias gd='git diff' | |
| alias gds='git diff --staged' | |
| alias gl='git log' | |
| alias ga='git add' | |
| alias gb='git branch' | |
| alias gc='git commit' | |
| alias gco='git checkout' | |
| alias gpr='git pull --rebase' |
This file contains hidden or 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
| testuntilfail () { | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Django test path must be specified" | |
| else | |
| RUNS_BEFORE_FAILURE=0 | |
| while [ $? = 0 ]; do | |
| let RUNS_BEFORE_FAILURE=RUNS_BEFORE_FAILURE+1 | |
| echo "Beginning run number: $RUNS_BEFORE_FAILURE" | |
| ./manage.py test $1 |
This file contains hidden or 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
| pullandpush () { | |
| if [ $# -eq 0 ] | |
| then | |
| echo "branch name not specified" | |
| else | |
| branch=$1 | |
| git checkout master | |
| git pull --rebase | |
| git checkout $branch | |
| git rebase origin/master |
This file contains hidden or 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
| from nose.result import TextTestResult as NoseTextTestResult | |
| class TextTestResult(NoseTextTestResult): | |
| def getDescription(self, test): | |
| """ | |
| Overrides the default test header, so the failed test name | |
| can be copied as is and syntax works to be able to run the | |
| single test "as copied" from this output. |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import argparse | |
| import functools | |
| import json | |
| import os | |
| import timeit | |
| from queue import Queue | |
| from threading import Thread | |
| import requests |
This file contains hidden or 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
Show hidden characters
| { | |
| "binary_file_patterns": | |
| [ | |
| "*min.js", | |
| "*.debug.js", | |
| "*prod.js", | |
| "*.dex", | |
| "*.zip", | |
| "*.bin", | |
| ".coverage", |
This file contains hidden or 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
| [{ | |
| "keys": ["alt+up"], | |
| "command": "scroll_lines", | |
| "args": { | |
| "amount": 30.0 | |
| } | |
| }, { | |
| "keys": ["alt+down"], | |
| "command": "scroll_lines", | |
| "args": { |
This file contains hidden or 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
| alias gitlog='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"' | |
| alias gs='git status' | |
| alias gd='git diff' | |
| alias gds='git diff --staged' | |
| alias gl='git log' | |
| alias ga='git add' | |
| alias gb='git branch' | |
| alias gc='git commit' | |
| alias gco='git checkout' | |
| alias gpr='git pull --rebase' |
This file contains hidden or 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
| # A very simple perceptron for classifying american sign language letters | |
| import signdata | |
| import numpy as np | |
| import keras | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Flatten, Dropout, BatchNormalization, Conv2D, MaxPooling2D | |
| from keras.utils import np_utils | |
| import wandb | |
| from wandb.keras import WandbCallback |
This file contains hidden or 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
| # A very simple perceptron for classifying american sign language letters | |
| import signdata | |
| import numpy as np | |
| import keras | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Flatten, Dropout, BatchNormalization, Conv2D, MaxPooling2D | |
| from keras.utils import np_utils | |
| import wandb | |
| from wandb.keras import WandbCallback | |
| from keras.optimizers import RMSprop |