Skip to content

Instantly share code, notes, and snippets.

@spiralray
spiralray / README.md
Last active February 9, 2019 09:16 — forked from ompugao/README.md
scramble joycon standalone
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)
#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 July 2, 2020 11:12
Capture the IntelMap
// ==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 October 12, 2016 06:43
install Eclipse and GNU Tools for ARM Embedded Processors on Ubuntu
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"
#!/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