Skip to content

Instantly share code, notes, and snippets.

View robertcedwards's full-sized avatar
🖼️
Framing

Robert C Edwards robertcedwards

🖼️
Framing
View GitHub Profile
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@robertcedwards
robertcedwards / rfid-node.ino
Created August 14, 2016 02:24 — forked from suhajdab/rfid-node.ino
Particle Photon + RC522 RFID implant reader
#include "MFRC522/MFRC522.h"
/*
Function Core Pin MRFC522 Pin
Reset D2 RST
SPI SS D1 SDA
SPI MOSI A5 MOSI
SPI MISO A4 MISO
SPI SCK A3 SCK
*/
@robertcedwards
robertcedwards / sumhub_settings.ino
Created May 29, 2016 05:59
Simhub Arduino File for my setup
// F revision sketch
// ----------------------------------------------------- PLEASE USE SETUP ASSISTANT AVAILABLE IN SUB FOLDER !!!! -------------------------------------------
// ----------------------------------------------------- PLEASE USE SETUP ASSISTANT AVAILABLE IN SUB FOLDER !!!! -------------------------------------------
// ----------------------------------------------------- PLEASE USE SETUP ASSISTANT AVAILABLE IN SUB FOLDER !!!! -------------------------------------------
// ----------------------------------------------------- PLEASE USE SETUP ASSISTANT AVAILABLE IN SUB FOLDER !!!! -------------------------------------------
// ----------------------------------------------------- PLEASE USE SETUP ASSISTANT AVAILABLE IN SUB FOLDER !!!! -------------------------------------------
// ----------------------------------------------------- PLEASE USE SETUP ASSISTANT AVAILABLE IN SUB FOLDER !!!! -------------------------------------------
// ----------------------------------------------------- PLEA
@robertcedwards
robertcedwards / gist:13e6398c2d2f14efd61e079a50dc134c
Created May 11, 2016 01:59
My input setup for Thrustmaster TX, TP3Pro Pedals, ACT Labs Shifter
[HEADER]
INPUT_METHOD=WHEEL
[X360]
STEER_THUMB=LEFT
STEER_GAMMA=1
STEER_FILTER=0.22
SPEED_SENSITIVITY=0.73
STEER_DEADZONE=0.0
@robertcedwards
robertcedwards / rpm.py
Created April 21, 2016 07:04
RPM Version of Assetto Corsa Dash
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "dll"))
import ac
import acsys
import serial
import time
#ser = serial.Serial(3, 9600)
@robertcedwards
robertcedwards / steam.ini
Created April 7, 2016 15:17
Steam Controller ini config file for Assetto Corsa
[HEADER]
INPUT_METHOD=X360
[X360]
STEER_THUMB=LEFT
STEER_GAMMA=2.0
STEER_FILTER=0.7
SPEED_SENSITIVITY=0.1
STEER_DEADZONE=0.0
using UnityEngine;
using System.Collections;
public class DynamicDOF : MonoBehaviour {
public Transform Origin;
public Transform target;
public DepthOfField34 DOF34;
void Update () {
@robertcedwards
robertcedwards / chrome.sublime-build
Created March 3, 2016 04:18
Sublime Text 3 HTML Build system for Chrome
{ "cmd": ["open", "-a", "Google Chrome", "$file"] }
@robertcedwards
robertcedwards / Compass.cs
Created February 3, 2016 05:36
Compass for Unity, attach to player camera.
/// <summary>
/// Simple horizontal style compass for 3D world
/// Attach this to your Player. 0 degrees is North.
/// Adjust if your orientation is different by changing the letters.
/// Use/modify anyway you like.
/// </summary>
using UnityEngine;
using System.Collections;