Skip to content

Instantly share code, notes, and snippets.

View miek's full-sized avatar

Mike Walters miek

View GitHub Profile
Directory count: 21
Core\Assets
default_scatter.sca
Editor\bin\batch\XPR_temp
context_rpg.dds
context_rpg_sabotage.dds
context_rpg_sabotaged.dds
mp_ascent_conquest_bin.rgp
mp_ascent_conquest_bin - DEResourceGroup
mp_ascent_conquest_pub.rgp.pub
#
# Print hilighted messages & private messages to window named "hilight" for
# irssi 0.7.99 by Timo Sirainen
#
# Modded a tiny bit by znx to stop private messages entering the hilighted
# window (can be toggled) and to put up a timestamp.
#
use Irssi;
use vars qw($VERSION %IRSSI);
/*
*
* BlinkM connections to Arduino
* PWR - -- gnd -- black -- Gnd
* PWR + -- +5V -- red -- 5V
* I2C d -- SDA -- green -- Analog In 4
* I2C c -- SCK -- blue -- Analog In 5
*
* There are 27 BlinkMs are addressed from 10..36.
*/
@miek
miek / GSG case
Last active May 29, 2022 16:57
Unofficial case for YARD Stick One and Ubertooth One from Great Scott Gadgets - http://greatscottgadgets.com/

Keybase proof

I hereby claim:

  • I am miek on github.
  • I am miek (https://keybase.io/miek) on keybase.
  • I have a public key whose fingerprint is 274E 9CCA E552 031E CB6A 6F1B FF5B 385B 97B0 0656

To claim this, I am signing this object:

@miek
miek / retarget.c
Created October 20, 2015 17:32
nrf51 retarget
#include "retarget.h"
#include "simple_uart.h"
int _write(int fd, char * str, int len)
{
for (int i = 0; i < len; i++)
{
simple_uart_put(str[i]);
}
@miek
miek / gist:1f52470531ecb1a81fa8
Last active December 20, 2015 14:41 — forked from g7uvw/gist:8c8627f5ab7b7a367289
STMF401RE Nucleo issue
#include "stm32f4xx.h"
int main (void)
{
RCC->AHB1RSTR |= RCC_AHB1RSTR_GPIOARST; // Reset GPIOA
RCC->AHB1RSTR = 0; // Exit reset state
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN; // Enable GPIOA clock
GPIOA->MODER |= GPIO_MODER_MODER5_0; // Enable Output on D13
from PIL import Image
import struct
import sys
imgsize = 128
img = Image.new('L', (imgsize, imgsize))
with open("lily.cfile", "rb") as f:
while True:
import weechat
import re
SCRIPT_NAME = "slack-gw"
SCRIPT_AUTHOR = "Mike Walters <[email protected]>"
SCRIPT_VERSION = "1.0"
SCRIPT_LICENSE = "BSD"
SCRIPT_DESC = "Fix up messages coming from slack gateway"
settings = {
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040501-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040502-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040503-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040504-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040505-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040506-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040507-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040508-LOCAL_NAME09-spam
37-DISCOVERY-TxAdd-1-RxAdd-0-AdvA-010203040509-LOCAL_NAME09-spam
r40