Skip to content

Instantly share code, notes, and snippets.

View cosmicmonster's full-sized avatar
👾
On devcation

Phil cosmicmonster

👾
On devcation
View GitHub Profile
@cosmicmonster
cosmicmonster / CosmicBallet.js
Last active August 6, 2021 08:32
Earth, Venus and the Sun Cardioid Animation
/*
* Cosmic Ballet v1.1
*
* Inspired by reddit post by u/mtimetraveller
* Developed by Phil Gullberg, 2018 - adapted to p5js in 2021
* [email protected]
*
*/
// SETUP VARS
@cosmicmonster
cosmicmonster / RFRemoteTest.ino
Created April 22, 2018 08:46
Arduino - SC2272, RF Remote Basic Test
/*
*
* SC2272-M4S - RF remote basic test
* Demoing single button action using the built in LED
* This chip in momentary and returns HIGH as long as a button is pressed on the remote
* Phil Gullberg, 2018 - code.wolfandvoid.com
*
*/
int rfPin = 12;
@cosmicmonster
cosmicmonster / ShuffleArray.cs
Last active June 25, 2024 09:16
Unity / C# code to shuffle an array using the Fisher-Yates Shuffle.
using UnityEngine;
using System.Collections;
public class ShuffleArray : MonoBehaviour {
// Public so you can fill the array in the inspector
public int[] scenarios;
void Start ()