Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil Webber outofmbufs

View GitHub Profile
@outofmbufs
outofmbufs / loadmultijson.py
Last active Apr 10, 2019
python function to decode multiple JSON representations in a single file (stream)
View loadmultijson.py
# The MIT License
#
# Copyright (c) 2019 Neil Webber
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@outofmbufs
outofmbufs / iftttmaker.ino
Last active Apr 7, 2020
Arduino code to trigger an IFTTT/Maker event
View iftttmaker.ino
// The MIT License
//
// Copyright (c) 2015 Neil Webber
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@outofmbufs
outofmbufs / vsieve.py
Created Aug 5, 2015
Python class implementing a Sieve of Eratosthenes functionality for vector tuples
View vsieve.py
#!/usr/bin/env python3
#
# A "sieve of Eratosthenes" for integer vectors of length N.
#
# The original usage of this was for studying pythagorean triples and
# filtering out those that were simply multiples of smaller ones, e.g.
#
# (5, 12, 13) as a "fundamental" Pythagorean triple vs
# (10, 24, 26) as a multiple of (5, 12, 13)
#
You can’t perform that action at this time.