Skip to content

Instantly share code, notes, and snippets.

View MatrixFrog's full-sized avatar

Tyler Breisacher MatrixFrog

View GitHub Profile
@MatrixFrog
MatrixFrog / google-lgbt-issues.md
Last active May 1, 2020 01:16
anti-LGBT actions by Google and YouTube: A brief and probably incomplete history

I assembled this list from memory, and tried to fill in the details by skimming some the news articles I could find about each event. I'm sure there are things missing from this list, and facts I've gotten wrong, so please send corrections. You can DM me on Twitter or add comments on this gist. Eventually I'd like to expand this to include key quotes from Google leadership, and indications of how incidents were or weren't resolved, and maybe make it fancy and infographic-y like this one.

2008

Proposition 8, which ultimately took away the right to marry, from same-sex couples, is on the ballot in California. Despite the fact that Google officially opposed it, the "yes" campaign got special attention and assistance from the Google ads team. _I couldn't find much news coverage or official reporting on

async function day3() {
const canvas = document.querySelector('canvas');
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgb(128, 0, 0, 0.5)';
const response = await fetch('./day3.txt', { encoding: 'UTF-8'});
const text = await response.text();
const lines = text.split('\n').filter(Boolean);
for (const line of lines) {
@MatrixFrog
MatrixFrog / trader_joes.json
Created October 2, 2017 02:20
very beginnings of a Trader Joes bot
{
"origin": ["#item#", "spicy #item#", "summer #item#", "fresh #item#", "Mexican-style #item#", "Indian-style #item#", "Asian #item#"],
"item": ["#ingredient# pasta salad", "#ingredient# salsa", "#ingredient# slaw", "grilled #ingredient#", "#ingredient# salad"],
"ingredient" : ["squash", "kale", "pumpkin", "#cheese# cheese"],
"cheese": ["burrata", "mascarpone", "gruyere", "mozzerella"]
}
@MatrixFrog
MatrixFrog / gist:e6fc186ca0814f3d510d
Created August 21, 2015 19:51
draft email to javasedocs_us@oracle.com
On https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html there is the following enum:
public enum Sex {
MALE, FEMALE
}
Sex and gender are not that simple. Some people don't fit into either category. I realize this is just sample code but it serves to exclude lots of people who will read these docs, so I would suggest changing the field type to something more free-form, such as a String. Or, if it's necessary to use an enum to demonstrate some language feature, use something which is actually a binary state, such as
public enum AccountType {
FREE, PREMIUM
~/.wine/drive_c/Program Files (x86)/Steam/steamapps/common/Adventures Of Shuggy$ ./Shuggy.exe
fixme:advapi:EventRegister {47a9201e-73b0-42ce-9821-7e134361bc6f}, 0x3f005160, 0x3f036b20, 0x3f036b18
fixme:advapi:EventRegister {58a9201e-73b0-42ce-9821-7e134361bc70}, 0x3f005160, 0x3f036b58, 0x3f036b50
fixme:advapi:EventRegister {3fa9201e-73b0-43fe-9821-7e145359bc6f}, 0x3f005160, 0x3f036ae8, 0x3f036ae0
fixme:advapi:EventRegister {1432afee-73b0-42ce-9821-7e134361b433}, 0x3f005160, 0x3f036b90, 0x3f036b88
fixme:advapi:EventRegister {4372afee-73b0-42ce-9821-7e134361b519}, 0x3f005160, 0x3f036bc8, 0x3f036bc0
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
Setting breakpad minidump AppID = 211440
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198018465831 [API loaded no]
@MatrixFrog
MatrixFrog / this.js
Created May 7, 2012 18:08
Weirdness with @this
/**
* @constructor
*/
function SomeConstructor() {
}
SomeConstructor.prototype = {
/**
* This one triggers the error.
@MatrixFrog
MatrixFrog / select.htm
Created March 11, 2012 09:39
select event behavior
<select id="s">
<option value="a">a</option>
<option value="b">b</option>
</select>
<script>
var s = document.getElementById('s');
s.onclick = function() {
console.log('click');
}
@MatrixFrog
MatrixFrog / DOMBuilder.htm
Created February 18, 2012 07:01
DOM Builder
<script src="DOMBuilder.js"></script>
<script>
domBuilder(
[/HTML/],
[/HEAD/],
[/TITLE/],
"Wouldn't this be cool?",
[],
[],
@MatrixFrog
MatrixFrog / gist:1712265
Created January 31, 2012 19:11
JavaScript error counts
chrome/browser/printing/cloud_print/resources/cloud_print_setup_done.js 1
chrome/browser/printing/cloud_print/resources/cloud_print_setup_flow.js 2
chrome/browser/printing/cloud_print/resources/cloud_print_setup_login.js 2
chrome/browser/resources/about_conflicts.js 3
chrome/browser/resources/about_credits.js 8
chrome/browser/resources/about_flash.js 3
chrome/browser/resources/about_memory.js 3
chrome/browser/resources/about_page/about_page.js 4
chrome/browser/resources/about_stats.js 27
chrome/browser/resources/about_version.js 1
@MatrixFrog
MatrixFrog / Words.hs
Created October 20, 2011 15:39
Solution to Programming Praxis "Word Breaks" problem
{- http://programmingpraxis.com/2011/08/12/word-breaks/
Given an input string and a dictionary of words,
segment the input string into a space-separated
sequence of dictionary words if possible. For
example, if the input string is "applepie" and
dictionary contains a standard set of English words,
then we would return the string "apple pie" as output.
-}