Skip to content

Instantly share code, notes, and snippets.

View Nomadjackalope's full-sized avatar
💭
Working on a Quilt Game

Benjamin Nomadjackalope

💭
Working on a Quilt Game
View GitHub Profile
@Nomadjackalope
Nomadjackalope / Draggable.cs
Created September 3, 2021 13:33
A draggable visual element for Unity's UIToolkit system
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UIElements;
public class Draggable : VisualElement {
// UxmlFactory and UxmlTraits allow UIBuilder to use FabricElement as a building block
public new class UxmlFactory : UxmlFactory<Draggable, UxmlTraits> {}
public new class UxmlTraits : VisualElement.UxmlTraits {}
@Nomadjackalope
Nomadjackalope / Generator.py
Last active March 10, 2020 21:37
Generative Abstract Pixel Art
""" Code Modified from here https://jakevdp.github.io/blog/2013/08/07/conways-game-of-life/"""
import time
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.animation import FuncAnimation
from matplotlib import animation
def life_step(X):
"""Game of life step using generator expressions"""
@Nomadjackalope
Nomadjackalope / dartForeachConfusion.dart
Last active October 1, 2018 19:18
Understanding Dart iterable forEach
void main() {
Map<String, int> myMap1 = {"a": 1, "b": 2};
Map<String, int> myMap2 = {"a": 1, "b": 2};
print("before: $myMap1 , $myMap2");
upgradeAndSetEqual(myMap1);
myMap2 = upgradeAndReturn(myMap2);
print(" after: $myMap1 , $myMap2");

Keybase proof

I hereby claim:

  • I am Nomadjackalope on github.
  • I am nomadjackalope (https://keybase.io/nomadjackalope) on keybase.
  • I have a public key whose fingerprint is FCA9 17B9 107C 9551 3EF8 630B DF87 1F2D 5171 4769

To claim this, I am signing this object: