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 / ScenePaletteSwitcherInspector.cs
Created February 16, 2017 09:19
The Editor script for the ScenePaletteSwitcher.cs (https://gist.github.com/DomDomHaas/518d60d388bc593b2ffa5975abb9172b Is only working with the ColorPalettes u3d.as/bFr extension)
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
#pragma warning disable 3009
namespace MrWhaleGames.ColorPalette
{
@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
{