Skip to content

Instantly share code, notes, and snippets.

@scottyob
scottyob / hid-via-bluetooth.cpp
Last active September 8, 2022 09:02
Arduino Leonardo HID keyboard and mouse via Seeeduino Bluetooth Module.
/*
This code will be used as a demo to controll the mouse and keyboard from an Arduino Leonardo.
It shows an example of recieving commands from a remote Bluetooth endpoint (be it computer, mobile phone, etc) and using those commands to control
the mouse and keyboard of a locally connected USB target.
Any character that gets recieved will be typed into the keyboard, unless that character is a '#' which we will use to toggle between mouse and keyboard modes
Once in mouse mode, the following characters will be used as commands:
'u': Move the mouse up
'd': Move the mouse down
@scottyob
scottyob / models.py
Created May 29, 2013 12:38
Playing with the idea of bidirectional relations between patch panels
from django.db import models
# Create your models here.
class PatchPanel(models.Model):
"""
Represents a physical patch panel. This could be a FOBOT or a Krone frame. Whatever really
"""
name = models.CharField(max_length=100, null=False, blank=True, unique=True, help_text="The name used to identify the panel. (Eg. B15 PABX Panel K)")
outlets = models.IntegerField(help_text="The number of outlets on the panel")
@scottyob
scottyob / rePoem.txt
Created January 24, 2013 12:51
Re: Valentines Day Poem
I want to share a story, I'll tell you for free.
a story of us guys, guys working in I.T.
they go by many names; dweebs, geeks and dorks,
some even get their kicks from github forks.
But let's be honest, it's hard when you're a nerd,
a little awkward, running with a different herd.
it's not that we're scared and full of fears,
but to share our interests would bring you to tears.