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
| import re | |
| from collections import deque | |
| from typing import List, Union | |
| def tokenize(expression: str) -> List[Union[int, str]]: | |
| tokens = [ | |
| int(token) | |
| if token.isnumeric() | |
| else token |
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
| import click | |
| import difflib | |
| import numpy as np | |
| import random | |
| import sys | |
| import time | |
| from os import name, system | |
| from scipy.ndimage import convolve |
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
| def draw_square(side_length: int) -> None: | |
| for _ in range(4): | |
| turtle.forward(side_length) | |
| turtle.right(90) | |
| def draw_concentric_squares(number_of_squares: int = 5, radius_increase: int = 20) -> None: | |
| turtle.begin_fill() | |
| for length in range(radius_increase, 2 * number_of_squares * radius_increase, radius_increase * 2): | |
| draw_square(length) | |
| x, y = turtle.pos() |
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
| Homebrew build logs for graphviz on macOS 10.12.2 | |
| Build date: 2016-11-02 07:57:07 |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| .node { | |
| font: 300 11px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
| fill: #bbb; | |
| } | |
| .node:hover { |
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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.com/install.sh | sh |
NewerOlder