Skip to content

Instantly share code, notes, and snippets.

View frankew's full-sized avatar
🤒
Out sick

Frankie Winters frankew

🤒
Out sick
View GitHub Profile
@frankew
frankew / rocket_engine.ino
Last active March 19, 2020 23:18
Fire simulation on Neopixel rings
#include <FastLED.h>
#define COLOR_ORDER GRB
#define CHIPSET WS2811
#define NUM_LEDS 23
#define BRIGHTNESS 200
#define FRAMES_PER_SECOND 60
bool gReverseDirection = false;
@frankew
frankew / woocommerce-remove-virtual-billing-fields.php
Created February 8, 2018 18:36 — forked from BFTrick/woocommerce-remove-virtual-billing-fields.php
Remove the billing address fields for free virtual orders in WooCommerce
<?php
/**
* Plugin Name: WooCommerce Remove Billing Fields for Free Virtual Products
* Plugin URI: https://gist.github.com/BFTrick/7873168
* Description: Remove the billing address fields for free virtual orders
* Author: Patrick Rauland
* Author URI: http://patrickrauland.com/
* Version: 2.0
*
* This program is free software: you can redistribute it and/or modify
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define NUM_LEDS_OUTSIDE_RING 30
#define NUM_LEDS_INSIDE_RING 25
Adafruit_NeoPixel stripInside = Adafruit_NeoPixel(NUM_LEDS_INSIDE_RING, 2, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel stripInside2 = Adafruit_NeoPixel(NUM_LEDS_INSIDE_RING, 5, NEO_GRB + NEO_KHZ800);