Skip to content

Instantly share code, notes, and snippets.

@mjkillough
mjkillough / CMakeLists.txt
Last active March 17, 2024 09:09
Generating and using a virtualenv from CMake
cmake_minimum_required(VERSION 3.6)
project(CmakeVirtualenv)
enable_testing()
# Find Python and Virtualenv. We don't actually use the output of the
# find_package, but it'll give nicer errors.
find_package(PythonInterp 2.7 REQUIRED)
find_program(VIRTUALENV virtualenv)
@mjkillough
mjkillough / keybase.md
Created September 1, 2016 19:58
keybase.io verification

Keybase proof

I hereby claim:

  • I am mjkillough on github.
  • I am mjkillough (https://keybase.io/mjkillough) on keybase.
  • I have a public key whose fingerprint is EA5A FFE3 8356 F421 2957 17CB B744 6942 DD83 C26F

To claim this, I am signing this object:

@mjkillough
mjkillough / esp8266-sender.py
Created September 27, 2016 23:15
Scripts for testing UDP multicast on ESP8266
#!/usr/bin/env python
# encoding: utf-8
import network
import socket
sta = network.WLAN(network.STA_IF)
sta.active(True)
sta.connect('ESSID', 'key')
@mjkillough
mjkillough / Cargo.toml
Created March 18, 2017 07:27
Hyper issue #754
[package]
name = "client"
version = "0.1.0"
authors = ["Peter Sergey Panov <[email protected]>", "Michael Killough <[email protected]>"]
[[bin]]
name = "mock_client"
path = "main.rs"
[dependencies]
@mjkillough
mjkillough / example.py
Created July 31, 2019 18:52
MicroPython Feather HUZZAH FeatherWing OLED
# https://github.com/adafruit/micropython-adafruit-ssd1306/blob/master/ssd1306.py
# https://learn.adafruit.com/micropython-hardware-ssd1306-oled-display/micropython
import machine
import ssd1306
i2c = machine.I2C(-1, machine.Pin(5), machine.Pin(4))
oled = ssd1306.SSD1306_I2C(128, 32, i2c)
oled.fill(1)
oled.show()