Skip to content

Instantly share code, notes, and snippets.

View mikepjb's full-sized avatar

Michael Bruce mikepjb

  • JUXT
  • Sevenoaks, UK
View GitHub Profile
@mikepjb
mikepjb / recursive-for-blink.css
Last active August 23, 2023 22:35
Recursive font config file for Blink.sh
@mikepjb
mikepjb / blink-shell-theme.js
Last active August 23, 2023 19:33
Config to theme blink.sh
(setq sentient-highlights
'(("function" . font-lock-function-name-face)
("bool" . font-lock-type-face)
("int[0-9]+" . font-lock-type-face)
("array[0-9]+" . font-lock-type-face)
("(true|false)" . font-lock-doc-face)
("\{" . font-lock-function-name-face)
("\}" . font-lock-function-name-face)
(";" . font-lock-string-face)
("*[a-z]*.?" . font-lock-function-name-face)
@mikepjb
mikepjb / mandelbrot.c
Created December 1, 2015 17:49
A Mandelbrot set generator implemented in C
/* taken from Rosetta Stone, adapted for OSX 10.10
* http://rosettacode.org/wiki/Mandelbrot_set#C
* compile with 'xcrun clang -framework GLUT -framework OpenGL mandelbrot.c -v' */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <GLUT/glut.h>
#include <OpenGL/gl.h>
void set_texture();