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 sqlite3 | |
| import time | |
| import xml.dom.minidom as xmlmd | |
| import bottlenose | |
| from urllib2 import HTTPError | |
| AWS_ACCESS_KEY_ID = "AKIAJOGASDCBAWSC2LQQ" | |
| AWS_SECRET_ACCESS_KEY = "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" |
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
| """More complex example with shared dependencies""" | |
| from graphlib import TopologicalSorter | |
| from dataclasses import dataclass | |
| from typing import List | |
| @dataclass | |
| class Package: | |
| name: str | |
| depends_on: List[str] |
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 random | |
| import time | |
| import shutil | |
| width, height = shutil.get_terminal_size() | |
| width = width // 2 | |
| grid = [] | |
| for row in range(height): | |
| grid.append([1 for _ in range(width)]) |
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
| """ Python file to demonstrate reading the LSM303 and pass data to Pure Data | |
| Author: Cameron MacLeod | |
| Date: 2018/03/17 | |
| Contact: github.com/notexactlyawe | |
| """ | |
| import time | |
| import argparse | |
| import Adafruit_LSM303 |
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 threading | |
| import random | |
| import Queue | |
| import pyaudio | |
| import numpy as np | |
| SAMPLE_RATE = 44100 | |
| DURATION = 0.5 | |
| class WhitenoiseSound(threading.Thread): |
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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'elixir-lang/vim-elixir' | |
| Plugin 'tmhedberg/SimpylFold' | |
| Plugin 'vim-scripts/indentpython.vim' | |
| Plugin 'vim-scripts/taglist.vim' |