Skip to content

Instantly share code, notes, and snippets.

spiralray /
Last active Feb 9, 2019 — forked from ompugao/
scramble joycon standalone
import socket
from contextlib import closing
def main():
host = ''
port = 12345
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
with closing(sock):
message = 'Hello world'.encode('utf-8')
View cyclecomputer.ino
#include <MsTimer2.h>
#include <Wire.h>
#include <MS561101BA.h>
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
#include <SakuraIO.h>
const uint16_t CIRCUMFERENCE = 2136;
const int mgntPin = 2; // the number of the pushbutton pin
spiralray / caputuremap.user.js
Last active Jul 2, 2020
Capture the IntelMap
View caputuremap.user.js
// ==UserScript==
// @id iitc-plugin-CaptureMap@spiralray
// @name IITC plugin: CaptureMap
// @category Info
// @version 0.0.2
// @namespace
// @description [spiralray-2016-11-23-235400] Capture map
// @include*
// @include*
// @match*
spiralray / 50-udev.rules
Last active Oct 12, 2016
install Eclipse and GNU Tools for ARM Embedded Processors on Ubuntu
View 50-udev.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02c4", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d8", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02d9", MODE="0666"
SUBSYSTEM=="usb", KERNEL=="ttyUSB*", MODE="0666"
SUBSYSTEM=="usb", KERNEL=="ttyACM*", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="3748", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="374b", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="df11", MODE="0666"
if [ "$(uname)" == 'Darwin' ]; then
brew update
brew install git scons
yes | sudo apt-get update
sudo apt-get -y install git-core scons