Skip to content

Instantly share code, notes, and snippets.

bl_info = {
"name": "Polar Zonohedron",
"author": "Rob Bell, Garrett Mace",
"version": (1, 0),
"blender": (2, 80, 0),
"location": "View3D > Add > Mesh > Polar Zonohedron",
"description": "Adds a new Polar Zonohedron",
"warning": "",
"wiki_url": "",
"category": "Add Mesh",
@macegr
macegr / align.ulp
Created April 19, 2017 19:36
Align/distribute (origins only, for now) parts in Eagle 7
int yCenterMin = 0;
int yCenterMax = 0;
int xCenterMin = 0;
int xCenterMax = 0;
int yLeftMost = 0;
int xLeftMost = 0;
int numElements = 0;
// Storage for selected elements
UL_ELEMENT groupElements[];
@macegr
macegr / Makefile
Created March 15, 2017 20:16
Current makefile for STM32L476 (HAL)
# Makefile for ST ARM Cortex microcontrollers
# Important settings should be updated for each project.
# The rest of the makefile can usually be left alone.
#### /!\ IMPORTANT SETTINGS START HERE /!\ #####
# Device options
CPU = cortex-m4
DEVICE = STM32L476xx
@macegr
macegr / effects.h
Created January 10, 2017 23:57
slantMello glitch scrolling bars for RGB Shades code
// Draw slanting bars scrolling across the array
void slantMello() {
static byte slantPos = 0;
static byte distortDelay;
static byte changeDelay = 10;
static byte lastoffset = 1;
static uint16_t slowcolor = 0;
// startup tasks
@macegr
macegr / gist:e795181e04f81e0eefa406d5e6b5f519
Created November 9, 2016 01:17
ESP8266 vote meter example with JSON
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
// WiFi network parameters
const char* ssid = "<your SSID>";
const char* password = "<your passphrase>";
void setup() {