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
# urls.py | |
url(r'^api/logout/$', apiauth_views.LogoutView.as_view()), | |
# views.py | |
from django.contrib import auth | |
from rest_framework.views import APIView | |
class LogoutView(APIView): |
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
-export([ride_bike/0]). | |
ride_bike() -> io:fwrite("Ride bike", []). |
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
23> Person = {person, {age, 34}, {hobby, "biking"}}. | |
{person,{age,34},{hobby,"biking"}} | |
24> A. | |
* 1: variable 'A' is unbound | |
25> B. | |
* 1: variable 'B' is unbound | |
26> A, B = Person. | |
* 1: variable 'A' is unbound | |
27> {A, B} = Person | |
27> . |
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
{ | |
"python.pythonPath": "venv/bin/python", | |
"python.linting.pylintArgs": [ | |
"--extension-pkg-whitelist=torch" | |
] | |
} |
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
# 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 |
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
# 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 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 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
[{ | |
"keys": ["alt+up"], | |
"command": "scroll_lines", | |
"args": { | |
"amount": 30.0 | |
} | |
}, { | |
"keys": ["alt+down"], | |
"command": "scroll_lines", | |
"args": { |
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
{ | |
"binary_file_patterns": | |
[ | |
"*min.js", | |
"*.debug.js", | |
"*prod.js", | |
"*.dex", | |
"*.zip", | |
"*.bin", | |
".coverage", |
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
#!/usr/bin/env python | |
import argparse | |
import functools | |
import json | |
import os | |
import timeit | |
from queue import Queue | |
from threading import Thread | |
import requests |