Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace UnityTools.SpawnPoint
{
public class Editor_SpawnPoint : EditorWindow
{
@uhusofree
uhusofree / PlayerComponent
Last active July 8, 2022 23:20
KungFunked sample
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.Design;
using Unity.Profiling;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.UIElements;
@uhusofree
uhusofree / Hurdle Compnent
Created January 15, 2021 11:46
PoK'our hurdling
#include "HurdleComponent.h"
#include "PlayerCharacter.h"
#include <Components/ActorComponent.h>
#include <Components/SceneComponent.h>
#include <GameFramework/Actor.h>
#include <DrawDebugHelpers.h>
#include <CollisionQueryParams.h>
UHurdleComponent::UHurdleComponent()
@fasiha
fasiha / combinatorics.ts
Last active January 19, 2025 19:06
JavaScript/TypeScript basic combinatorics generators/iterators—because I always forget how these work. UNLICENSE, in the public domain.
/**
* Simple Cartesian product generator.
*
* Given an N-long array of numbers `lenarr`, where each element representing how many choices are available for that
* position, generate all N-long arrays where the `idx`th element runs from 0 to `lenarr[index]`.
*
* ```ts
* for (const x of numericCartesianProduct([2, 3])) { console.log(x); }
* ```
* generates:
@jdegoes
jdegoes / fpmax.scala
Created July 13, 2018 03:18
FP to the Max — Code Examples
package fpmax
import scala.util.Try
import scala.io.StdIn.readLine
object App0 {
def main: Unit = {
println("What is your name?")
val name = readLine()