Skip to content

Instantly share code, notes, and snippets.

View nickodell's full-sized avatar

Nick ODell nickodell

  • Fort Collins, CO
View GitHub Profile

Installing Python 3.6.8 on Raspbian =================================

As of March 2018, Raspbian does not yet include the latest Python release, Python 3.6.8 This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).

@nickodell
nickodell / point.py
Last active April 30, 2021 04:35 — forked from hirokai/point.py
2D Point class in Python
#!/usr/bin/env python3
from math import sqrt
class Point:
def __init__(self,x_init,y_init):
self.x = x_init
self.y = y_init
def shift(self, x, y):
@nickodell
nickodell / mine.py
Last active August 29, 2015 14:13 — forked from shirriff/mine.py
Enumerate hashes - thanks to Ken Shirriff
#!/usr/bin/python
import hashlib, struct
# Mine genesis block
ver = 1
prev_block = "0000000000000000000000000000000000000000000000000000000000000000"
mrkl_root = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
time_ = 1231006505
bits = 0x1d00ffff