Skip to content

Instantly share code, notes, and snippets.

@DomDomHaas
DomDomHaas / pattern.h
Created May 30, 2023 08:28 — forked from aschuhardt/pattern.h
Playdate pattern definitions in a single-header C library
/*
* This is a collection of Playdate patterns compiled into a header-only library
* for use in C SDK projects.
*
* The pattern definitions listed here are copied directly from Ivan Sergeev's
* 'gfxp' library, which can be found here: https://github.com/ivansergeev/gfxp
*
*
* USAGE:
*
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DomDomHaas
DomDomHaas / extent.geojson
Last active March 23, 2023 13:28
extent.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DomDomHaas
DomDomHaas / SolarSystemObjects.json
Last active September 18, 2020 21:31
JSON List Solar System Objects (based on the Wikipedia collection: https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System)
[
{
"name": "Sun",
"mean_dist_galactic_center_km": 2.5e17,
"mean_dist_galactic_center_ly": 26000,
"radius_km" : 696342,
"radius_relative_earth" : 109.3,
"surface_area_km2" : 6.0877e12,
"surface_area_relative_earth" : 11990,
"volume_km3" : 1.4122e18,
@DomDomHaas
DomDomHaas / avataaars.js
Created September 2, 2020 21:03
A collection of the parameters for https://getavataaars.com with a getAvataaarUrl function based on a md5 hash from an email or any string with numbers.
export const urlParameters = [
'accessoriesType',
'avatarStyle',
'clotheColor',
'clotheType',
'graphicType',
'eyeType',
'eyebrowType',
'facialHairColor',
'facialHairType',
@DomDomHaas
DomDomHaas / gist:f0a619b7fc0e6fc805a9
Created May 9, 2014 20:57
Spectrum Analyzer converted from c++ to c#
using System;
/*
* main.cpp - spectrum_analyzer
* https://bitbucket.org/andor44/spectrum_analyzer
*
* Copyright (c) 2011 TÖRÖK Attila <torokati44@gmail.com>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
@DomDomHaas
DomDomHaas / ScenePaletteSwitcher.cs
Created February 16, 2017 09:17
Unity C# Script to change all the ColorPalettes in a scene. (Is only working with the ColorPalettes u3d.as/bFr extension)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MrWhaleGames.ColorPalette
{
[ExecuteInEditMode]
public class ScenePaletteSwitcher : MonoBehaviour
{