Skip to content

Instantly share code, notes, and snippets.

View passiomatic's full-sized avatar

Andrea Peltrin passiomatic

View GitHub Profile
module ElmHelloWorld exposing (main)
import Html exposing (Html)
import Json.Decode as Decode exposing (Value)
import WebComponent
type alias Flags =
{ name : Maybe String }
module Limiter exposing
( Limiter, Msg
, debounce, throttle
, event, push
, update
)
{-| A Limiter is a handy way of slowing down the number of messages or events
we get from a particular source. We have two main methods of rate-limiting this
data:
@dakom
dakom / ECS notes.md
Last active April 25, 2024 14:56
ECS with sparse array notes (EnTT style)

Intro

The below is a breakdown / bird's eye view of how a sparse-array backed ECS like EnTT or Shipyard works.

Please see the thanks and references at the bottom - without their help I would not have been able to share this breakdown with you... everything here is really just notes and rephrasing of what they've written already :)

Also, these notes do not cover archetype systems (like unity) nor adaptations of archetypes (like in Flecs). Though there's a couple comparative footnotes at the end.

Here we go!

@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git