Skip to content

Instantly share code, notes, and snippets.

pin=4
ow.setup(pin)
lastTemp=-999
function bxor(a,b)
local r = 0
for i = 0, 31 do
if ( a % 2 + b % 2 == 1 ) then
r = r + 2^i
end
a = a / 2
@lbuchy
lbuchy / keybase.md
Last active September 27, 2016 07:39

Keybase proof

I hereby claim:

  • I am lbuchy on github.
  • I am loganbuchy (https://keybase.io/loganbuchy) on keybase.
  • I have a public key ASBrKWfSLMYkQWM6BO7WBGSY-uISRdV2g-B5zjTO-tJFZwo

To claim this, I am signing this object:

@lbuchy
lbuchy / blink_setup.c
Last active December 10, 2015 22:38
Basic blink setup for the stm32f4 microcontroller
@lbuchy
lbuchy / defaultGatewayIoctlSet.c
Created February 22, 2012 23:50
Add default gateway route using ioctl
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <net/route.h>
#include <sys/types.h>
#include <sys/ioctl.h>
int main(char** args) {
int sockfd;