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
[package] | |
name = "qrgen" | |
version = "0.1.0" | |
authors = ["kurt spindler <[email protected]>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
tide = "0.5.1" |
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
""" | |
ipython3 -i run.py | |
""" | |
import numpy as np | |
N_candidates = 5 | |
def general_votes(candidate_R, candidate_D): | |
"""If candidate_R and candidate_D were the winners of the |
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
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo apt-get -y install git make python-dev python-setuptools libblas-dev gfortran g++ python-pip python-numpy python-scipy liblapack-dev | |
sudo pip install ipython nose | |
sudo apt-get install screen | |
sudo pip install --upgrade git+git://github.com/Theano/Theano.git | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
sudo apt-get update |
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 logging | |
def getMessage(self): | |
""" | |
Return the message for this LogRecord. | |
Return the message for this LogRecord after merging any user-supplied | |
arguments with the message. | |
""" | |
if not logging._unicode: #if no unicode support... | |
msg = str(self.msg) |
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
[diff] | |
tool = vimdiff | |
[difftool "mvim"] | |
cmd = mvim -d $LOCAL $REMOTE | |
keepbackup = false | |
[alias] | |
dt = difftool | |
st = status | |
cm = commit | |
br = branch |
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
! Swap caps lock and escape | |
remove Lock = Caps_Lock | |
keysym Escape = Caps_Lock | |
keysym Caps_Lock = Escape | |
add Lock = Caps_Lock | |
! $ xmodmap ~/.speedswapper |
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
while true; do top -l1 | grep iPhone\ Simulator | awk '{print $12}' | tee mem.log; sleep 3; done; |
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
the dog, the cat, the fish, the bird, the animal, the snake, the cow, the pig, the mouse, the horse, the elephant, the tail, the wing | |
the train, the plane, the car, the bicycle, the bus, the boat, the tire, the gasoline, the train ticket | |
the city, the house, the street, the airport, the train station, the bridge, the hotel, the farm, the crowd, the court | |
the hat, the dress, the skirt, the shirt, the T-shirt, the pants, the shoes, the pocket | |
red, green, blue, yellow, green, brown, pink, orange, black, white, gray, light, dark |
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
data:text/html,<b>ZOMG I AM BOLD!?!!?</b> |
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
#include <ctime> | |
#include <iostream> | |
namespace { | |
class empty { }; // even empty classes take up 1 byte of space, minimum | |
} | |
int main() | |
{ | |
std::clock_t start = std::clock(); |
NewerOlder