Skip to content

Instantly share code, notes, and snippets.

View smcveigh-phunware's full-sized avatar

Sean McVeigh smcveigh-phunware

  • Phunware
  • Newport Beach, CA
View GitHub Profile
@smcveigh-phunware
smcveigh-phunware / test_mongodb_examples.py
Last active January 20, 2022 02:06
Test Shapely with MongoDB GeoJSON examples
#!/usr/bin/env python
# -*- coding: utf-8 -*
import pytest
import typing as typ
import pymongo as pm
import mongoengine as me
import shapely.geometry as geo
@smcveigh-phunware
smcveigh-phunware / subplot-image-test.ipynb
Created June 28, 2018 21:04
Background image in each subplot?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smcveigh-phunware
smcveigh-phunware / euclid.ipynb
Created March 28, 2018 22:03
cdist(..., "sqeuclidean") vs. broadcasting
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smcveigh-phunware
smcveigh-phunware / tensorflow and futures.ipynb
Created March 23, 2018 23:31
Tutorial Using Tensorflow with concurrent.Futures
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smcveigh-phunware
smcveigh-phunware / newton-raphson.ipynb
Last active February 27, 2018 00:28
"Vectorized" Newton-Raphson vs SciPy.optimize Newton-Raphson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smcveigh-phunware
smcveigh-phunware / twos.py
Last active October 17, 2017 17:31
2's compliment
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def twos(x:int) -> int:
assert x in range(256), "x is not an unsigned byte"
return x-256 if x > 0x7F else x
repr(list(map(twos, range(256))))