-
connect ps3 controller to your machine, and install ps3 controller driver for windows from here
-
install miniconda (for python 3.7) https://conda.io/en/master/miniconda.html
-
start anaconda prompt
-
create virtualenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |