Skip to content

Instantly share code, notes, and snippets.

@spiralray
spiralray / README.md
Last active Feb 9, 2019 — forked from ompugao/README.md
scramble joycon standalone
View README.md
View udp_send.py
import socket
from contextlib import closing
def main():
host = '192.168.15.10'
port = 12345
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
with closing(sock):
message = 'Hello world'.encode('utf-8')
print(message)
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
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 https://www.spiralray.net/iitc_plugin/
// @description [spiralray-2016-11-23-235400] Capture map
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @match https://www.ingress.com/intel*
@spiralray
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"
View install_stm32plus.sh
#!/bin/bash
if [ "$(uname)" == 'Darwin' ]; then
brew update
brew install git scons
else
yes | sudo apt-get update
sudo apt-get -y install git-core scons
fi