Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
@CodeZombie
CodeZombie / player.gd
Created October 2, 2020 22:04
Godot Phone FPS Tank Controls
extends KinematicBody
const friction = 24
const gravity = -9.8 * 3
const mouseSensitivity = .05
var velocity = Vector3()
var move_speed = 0
var look_speed = 0
func _ready():
@CodeZombie
CodeZombie / messagesender.cs
Created July 28, 2020 19:16
MessageSender.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MessageSender : MonoBehaviour
{
public OSC osc;
public float val;
@CodeZombie
CodeZombie / FrequencyReceiver.cs
Created July 16, 2020 00:52
FrequencyReceiver.cs
using UnityEngine;
public class FrequencyReceiver : MonoBehaviour
{
public OSC osc;
void Start()
{
osc.SetAddressHandler("/Frequency", OnReceiveFrequency);
}
@CodeZombie
CodeZombie / MIDIPitchReceiver.cs
Created July 16, 2020 00:28
MIDIPitchReceiver.cs
using UnityEngine;
public class MIDIPitchReceiver : MonoBehaviour
{
public OSC osc;
void Start()
{
osc.SetAddressHandler("/Note1", OnReceiveNote1);
@CodeZombie
CodeZombie / AbletonLinkTest.cs
Created July 16, 2020 00:08
AbletonLinkTest.cs
using UnityEngine;
public class AbletonLinkTest : MonoBehaviour
{
private AbletonLink link;
void Start()
{
}
@CodeZombie
CodeZombie / openWrtClient.txt
Last active May 11, 2020 23:59
How To: Connect an ethernet device to a wireless network using an OpenWRT Router as a WiFi Adapter.
1. Reset the OpenWRT Router to it's default settings.
2. Click Network -> Wireless.
3. Select radio0 -> Scan
4. Select the WiFi network you want to connect to and press Join Network
5. Enter the security key
6. Press submit
7. In the Device Configuration page, at the bottom under Interface Configuration -> Network, select 'Lan', as well as 'WWAN' which should already be selected.
8. Done
@CodeZombie
CodeZombie / instructions.txt
Last active April 17, 2020 02:17
Increasing playersize for Risk of rain 2.
Increase RoR2 playersize to 16.
Only the host needs to follow these instructions.
Download this file: https://www.mediafire.com/file/r55lws27crjykgs/Risk_of_Rain_2.zip/file
Extract it into your RoR2 folder so that winhttp.dll is right next to 'Risk of Rain2.exe'
When you start RoR2, the version at the top left should say MOD.
open up the console with <ctrl> + <alt> + <`>
type in `build_id_steam ` to change your version number to the current build-id so that non-modded players can join you.
@CodeZombie
CodeZombie / webserver.ino
Created April 6, 2020 22:31
esp8266 Arduino Webserver
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
ESP8266WebServer server(80);
void setup() {
Serial.begin(115200);
Serial.println();
Serial.print("Setting soft-AP ... ");
@CodeZombie
CodeZombie / metashaploganalyzer.py
Created February 14, 2020 20:17
Metashape Log Analyzer
import sys
import re
#Gets the number of seconds recorded from any line in the log file.
def getTimeFromLogLine(logLine):
expression = re.compile("[\d.]+(\s?s)")
time = expression.search(logLine.rstrip())
return float(time.group().replace(" ","").replace("s",""))
#A range of data that contains both a begining, and an "(exit code 1)"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Timers;
/* Profiler class will be used to capture many samples over time.
* Each instance of this class can be used to capture data from different sources (Memory, GPU, CPU, etc)
*
*
*/