Skip to content

Instantly share code, notes, and snippets.

View Bigcheese's full-sized avatar

Michael Spencer Bigcheese

View GitHub Profile
package Image::Embroidery;
use 5.006;
use strict;
use warnings;
use Carp;
use IO::File;
use Bit::Vector;
use Data::Dumper;
@Bigcheese
Bigcheese / README.md
Last active June 9, 2022 03:41
/r/MyLittlePony /r/place minimap script!

Help /r/MyLittlePony get a pony on /r/place!

example of the /r/mylittlepony overlay

Instructions

  • Use a Chromium based browser (Google Chrome, Edge, Opera, Yandex.Browser)
  • Android folks can use Kiwi Browser + Tampermonkey.
106 54 34
54 34 14 2
14 2 131 121
2 131 121
131 121 105 53
105 53 31 10
53 31 10 1
31 10 1 19
10 1 19 110
1 19 110 18
@Bigcheese
Bigcheese / build.ninja
Created March 3, 2017 07:10
using clang for mbed with arm gcc embedded.
ninja_required_version = 1.3
root = .
builddir = build
#cxx = ../gcc-arm-none/bin/arm-none-eabi-g++ -v
cxx = clang++ -target arm-none-eabi -I../gcc-arm-none\bin\../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/include/c++/6.3.1 -I../gcc-arm-none\bin\../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/include/c++/6.3.1/arm-none-eabi/thumb/v7e-m -I../gcc-arm-none\bin\../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/include/c++/6.3.1/backward -I../gcc-arm-none\bin\../lib/gcc/arm-none-eabi/6.3.1/include -I../gcc-arm-none\bin\../lib/gcc/arm-none-eabi/6.3.1/include-fixed -I../gcc-arm-none\bin\../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/include
ld = ../gcc-arm-none/bin/arm-none-eabi-gcc
objcopy = ../gcc-arm-none/bin/arm-none-eabi-objcopy
cxxflags = -fshort-enums -std=gnu++98 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -fno-delete-null-pointe
int main() {
int b = 42;
int *p = &b;
{
int a = 1;
p = &a;
}
return *p;
}
@Bigcheese
Bigcheese / 3.3-3.4.diff
Created July 27, 2016 20:01
mlpccg rules diff
--- rules3.3.txt 2016-07-27 12:58:41.490526400 -0700
+++ rules3.4.txt 2016-07-27 12:58:55.198486900 -0700
@@ -179 +179 @@
-o (201.3) Text can refer to characters by their Title alone.
+o (201.3) Text can refer to cards by their Title alone.
@@ -287,4 +287,4 @@
-o (401.1) Cards can be in any one of seven zones: Draw Deck, Problem Deck,
-Hand, Play Zone, Discard Pile, Banished Zone, and Queue Zone. A given card
-always exists in a distinct zone, and never exists in more than one zone at a
-time or ‘between’ zones.
#define GLEW_STATIC
#include "GL/glew.h"
#include "GL/glfw3.h"
#include "glm/ext.hpp"
#include "glm/glm.hpp"
#include <cstdlib>
#include <functional>
#include <iostream>
@Bigcheese
Bigcheese / rules3.2-3.3.diff
Created June 13, 2016 20:42
MLPCCG rules changes from 3.2 to 3.3
--- rules3.2.txt 2016-06-13 13:37:52.180208900 -0700
+++ rules3.3.txt 2016-06-13 13:36:38.248943100 -0700
@@ -57,10 +57,11 @@
517. Points
518. Searching
519. Counters
520. Copying
521. Tokens
+522. Dilemmas
6. Turn Sequence
--- rules3.1.txt 2016-04-04 17:40:04.373071100 -0700
+++ rules3.2.txt 2016-04-04 17:40:20.901982700 -0700
@@ -216,7 +216,6 @@
 Resource
• (207) Traits
o (207.1) Traits include all text listed on the Traitline under a card’s art.
-Problems do not have Traits.
 (207.1a) A card can have multiple Traits. These traits are separated by
a “•”
 (207.1b)Some traits have icons associated with them; these traits may
@Bigcheese
Bigcheese / gist:6606668
Created September 18, 2013 09:20
Description of why there are 10 unique meshes for cables in MC mods.
/**
* There are 64 possible meshes, as each of the 6 sides can be either connected or not connected. In the following
* the connected state is treated as a 6 bit value where 0 indicates not connected and 1 indicates connected.
*
* 0 1 2 3 4 5
* (+x -x) (+y -y) (+z -z)
*
* To derive all the meshes, we first determine the number combinations of values for each number of bits set from 0
* to 6.
*