Skip to content

Instantly share code, notes, and snippets.

@slikts
slikts / DarkMonokai.qss
Last active December 13, 2018 22:46 — forked from Zren/DarkMonokai.qss
Dark Monokai - Quassel Theme (qss)
/**
** ____ _ ___ ___ _ _
** | _ \ | | | \/ | | | (_)
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_|
**
** Quassel Theme
**
@slikts
slikts / css_colors.js
Created September 25, 2018 09:31 — forked from bobspace/css_colors.js
All of the CSS Color names as an array in javascript.
// CSS Color Names
// Compiled by @bobspace.
//
// A javascript array containing all of the color names listed in the CSS Spec.
// The full list can be found here: http://www.w3schools.com/cssref/css_colornames.asp
// Use it as you please, 'cuz you can't, like, own a color, man.
export default [
`AliceBlue`,
`AntiqueWhite`,
@slikts
slikts / makeSealer.ts
Last active March 15, 2019 12:52 — forked from Maxdamantus/gist:1393215
Non-leaky implementation of Crockford's make_sealer
type Box<A> = () => A | null;
type Sealer<A> = {
seal(value: A): Box<A>;
unseal(box: Box<A>): A | null;
}
const makeSealer = <A>(): Sealer<A> => {
let open: Box<A> | null = null;
return {
seal(value: A): Box<A> {
const box = (): A | null => (open === box ? value : null);