Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
@CodeZombie
CodeZombie / wasp-os_dependencies
Last active February 12, 2021 00:09
Wasp-os dependencies you need
The instructions on the wiki don't mention these packages, but you need them to compile Wasp-os.
sudo apt-get install sphinx-common
sudo apt-get install pkg-config
sudo apt-get install libcairo2-dev
sudo apt-get install gcc-arm-none-eabi
sudo apt install libgirepository1.0-dev
This issues thread was also necessary to get it to actually flash:
https://github.com/daniel-thompson/wasp-os/issues/157
@CodeZombie
CodeZombie / myCoolSignalSender.cs
Last active January 26, 2021 22:56
Cymatic signal sender example
using Seed.Cymatic.Core;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//this template class basically creates a 'myValue' variable that you can change in any way you like.
//The evaluate method should always output a value between -1 and 1. In this case, we're interpolating a 0 -> 1 variable to -1 -> 1,
// but you can do this however you want as long as Evaluate() outputs a -1 to 1 value (as this is the range cymatic likes)
@CodeZombie
CodeZombie / stockwatch.go
Last active January 30, 2021 17:09
CC Stockwatch
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"os/exec"
"strings"
@CodeZombie
CodeZombie / OSCMessageSender.cs
Created November 24, 2020 02:48
OSCMessageSender
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MessageSender : MonoBehaviour
{
public OSC osc;
public string address = "/Test";
public float val;
@CodeZombie
CodeZombie / databindingviewbinding_fragments.kt
Last active October 22, 2020 20:53
Data Binding with ViewModel and Fragments in Android
//Step 0.
//Ensure you're on android studio 4.1
//in your build.gradle, add the following:
buildFeatures{
dataBinding true
}
@CodeZombie
CodeZombie / gridmap_godot
Created October 3, 2020 21:05
How to: Create a 3d Gridmap in Godot 3.2
Section A: Preparing your models in Blender.
1. In blender, open up one of your 3d tiles.
2. Center it in the scene and have it sit directly above y=0
3. Export it as a .obj file
Repeat these steps for every tile in the tileset.
Section B: Setup in Godot
1. Create a new scene with a spatial node.
2. Create a new folder called "Models" and drag your .obj files in there.
3. Drag all your models into the scene as children of Spatial. They should all be of type MeshInstance.
@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);