I hereby claim:
- I am aallan on github.
- I am aallan (https://keybase.io/aallan) on keybase.
- I have a public key whose fingerprint is A2E0 84E9 5E95 B4CB 0562 7672 5CA0 5526 5413 2159
To claim this, I am signing this object:
#!/usr/bin/perl | |
print "Reading schat.csv\n"; | |
open ( my $schat, "<schat.csv") || die "Can't open schat.csv: $!"; | |
my @snaps = <$schat>; | |
close($schat); | |
chomp( @snaps ); | |
print "Reading contacts.tel\n"; | |
open ( my $contacts, "<contacts.tel") || die "Can't open contacts.tel: $!"; |
#!/usr/bin/perl | |
use strict; | |
print "Reading schat.csv\n"; | |
unless ( open ( FILE, "<schat.csv") ) { | |
print "Cannot open file for read\n"; | |
exit; | |
} |
/* | |
Add the following decleration to EthernetUdp.h directly after line 55 | |
virtual uint8_t beginMulti(IPAddress, uint16_t); | |
then add the following code to the end of EthernetUdp.c | |
*/ | |
I hereby claim:
To claim this, I am signing this object:
import smbus | |
from time import * | |
# Older version of library that uses smbus, no longer updated | |
# For new projects use i2c_lcd | |
class i2c_lcd: | |
# Commands | |
CMD_Clear_Display = 0x01 |
#!/usr/bin/python | |
import socket | |
import fcntl | |
import struct | |
from i2clibraries import i2c_lcd_smbus | |
def get_ip_address(ifname): | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
return socket.inet_ntoa(fcntl.ioctl( |
#include <Wire.h> | |
// i2c_scanner | |
// Version 1 | |
// This program (or code that looks like it) can be found in many places. For example on the Arduino.cc forum. | |
// The original author is not know. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal | |
// Version 3, Feb 26 2013 | |
// V3 by louarnold |
#!/usr/bin/python | |
# | |
# Changelog | |
# 1.00 - Initial version, with code from various other scripts. | |
# 1.01 - Moved authorship announcement to usage section. | |
# Written in 2011 by Paul Durrant | |
# | |
# 1.02 - Added recognition of Apple Fairplay encryption. | |
# Modified in 2015 by Alasdair Allan | |
# |
curl -H 'Authorization: Token token=a00723c600c97d3aa96ad13475252be945cb1f0539b54ed4f66f9a0dcd18ae0b' https://proximitykit.radiusnetworks.com/api/kits/4276 > file.json |
#!/usr/bin/env bash | |
########################################################################### | |
# Originally written by: Henrik Bengtsson, 2014 | |
# https://github.com/HenrikBengtsson/speedtest-cli-extras | |
# Modified to use IFTTT by: Alasdair Allan, 2015 | |
# License: GPL (>= 2.1) [http://www.gnu.org/licenses/gpl.html] | |
########################################################################### | |
# Character for separating values | |
# (commas are not safe, because some servers return speeds with commas) |