Skip to content

Instantly share code, notes, and snippets.

View bowbahdoe's full-sized avatar

Ethan McCue bowbahdoe

View GitHub Profile
@bowbahdoe
bowbahdoe / ForTheLuvOfColor.md
Created October 12, 2024 01:47 — forked from Myndex/ForTheLuvOfColor.md
A comparative look at Lab and Luv colorspaces, and LCh.

Where's The Luv?

An Examination of the CIELAB and CIELUV colorspaces.

It is exciting to see so many new color features for the CSS Color Module. There are nevertheless a couple items that resulted in a "raised eyebrow response". This Gist is mainly going to focus on one: the use of the LAB version of LCh instead of LUV LCh, which may be better suited for the task but appears to have been dismissed as if irrellevant.

I DISAGREE. Luv is in common use and very relevant, and LuvLCh or one of the several LuvLCh variants has distinct advantages over LabLCh for use cases such as choosing color for web content for displays.

Myth Destruction

@bowbahdoe
bowbahdoe / amazon.md
Created April 29, 2024 04:29 — forked from terabyte/amazon.md
Amazon's Build System

Prologue

I wrote this answer on stackexchange, here: https://stackoverflow.com/posts/12597919/

It was wrongly deleted for containing "proprietary information" years later. I think that's bullshit so I am posting it here. Come at me.

The Question

Amazon is a SOA system with 100s of services (or so says Amazon Chief Technology Officer Werner Vogels). How do they handle build and release?

@bowbahdoe
bowbahdoe / Continuation.java
Created July 17, 2023 15:46
Continuation Proxy Classes
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
public final class Continuation {
final Object impl;
static final Class<?> IMPL_CLASS;
static final MethodHandle NEW;
static final MethodHandle YIELD;

Keybase proof

I hereby claim:

  • I am bowbahdoe on github.
  • I am emccue (https://keybase.io/emccue) on keybase.
  • I have a public key ASBJESmZEasR7DZRXCg6ITA5bpgeyRei11UmUcMgdCTq8Ao

To claim this, I am signing this object:

class App extends React.Component {
constructor(props) {
this.state = {
count: 0
}
}
onClick(e) {
this.setState({
count: this.state.count + 1
'use strict'
/*
This module contains all the code required for working with the swagger backend
*/
const Swagger = require('swagger-client')
const cookie = require('cookie')
const _ = require('lodash')
const CSRFTOKEN = cookie.parse(document.cookie).csrftoken
'use strict'
/*
This module contains all the code required for working with the swagger backend
*/
const Swagger = require('swagger-client')
const cookie = require('cookie')
const _ = require('lodash')
const CSRFTOKEN = cookie.parse(document.cookie).csrftoken
;; Macros to support placing definitions
;; proved to be correct in ACL2S begginer mode into a clojure program
;; ACL2SCode is one of
;; -- Symbol
;; -- Number
;; -- |List ACL2SCode|
(defonce acl2s-substitutions
'((listp list?)
'''
Live plots data recieved over serial
'''
import collections
import matplotlib as mpl
import matplotlib.pyplot as plt
import serial
import serial.tools.list_ports as list_ports
import threading
import atexit
interface ILO {}
class LO<T> implements ILO {
boolean empty;
T first;
LO<T> rest;
// Creates an ILO
LO(T first, LO<T> rest) {
this.first = first;