Skip to content

Instantly share code, notes, and snippets.

View wmerrifield's full-sized avatar

Warren Merrifield wmerrifield

View GitHub Profile
@wmerrifield
wmerrifield / my-solarized-page.micro
Created May 20, 2022 13:06
16-color Solarized Light Xterm scheme for the Micro Text Editor
color-link default "brightyellow,brightwhite"
color-link selection "brightwhite,brightyellow"
color-link statusline "white,brightyellow"
color-link tabbar "white,brightyellow"
color-link indent-char "white"
color-link line-number "bold brightcyan,white"
color-link current-line-number "bold brightcyan,default"
color-link diff-added "green"
color-link diff-modified "yellow"
color-link diff-deleted "red"
@wmerrifield
wmerrifield / nuklear-sapp.c
Created January 31, 2021 18:55
nuklear-sapp.c
//------------------------------------------------------------------------------
// nuklear-sapp.c
//
// Demonstrates Nuklear UI rendering in C via
// sokol_gfx.h + sokol_nuklear.h + nuklear.h
//------------------------------------------------------------------------------
#define SOKOL_METAL
#include "sokol_app.h"
#include "sokol_gfx.h"
#include "sokol_time.h"
@wmerrifield
wmerrifield / sokol_nuklear.h
Created January 31, 2021 18:49
sokol_nuklear
#if defined(SOKOL_IMPL) && !defined(SOKOL_NUKLEAR_IMPL)
#define SOKOL_NUKLEAR_IMPL
#endif
#ifndef SOKOL_NUKLEAR_INCLUDED
/*
sokol_nuklear.h -- drop-in Nuklear renderer/event-handler for sokol_gfx.h
Do this:
#define SOKOL_IMPL or
#define SOKOL_NUKLEAR_IMPL
@wmerrifield
wmerrifield / build+archive.sh
Created November 8, 2010 17:53
A shell script to perform the equivalent of Xcode's "Build & Archive" command.
#!/bin/sh
#
# Copyright (c) 2010 Warren Merrifield
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: