Skip to content

Instantly share code, notes, and snippets.

Avatar

Homam Hosseini homam

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active Sep 14, 2020
Listen to your web pages
View plink-plonk.js
@sbinlondon
sbinlondon / synthwaveglow.md
Last active Sep 11, 2020
Get the synth wave glow theme working for VS Code on Mac
View synthwaveglow.md

Get the synth wave glow working for VS Code on Mac

These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.

  1. Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)

  2. Install Custom CSS and JS Loader

  3. Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"

View 2019-lambdaconf-haskell.org

Haskell in Production: Adventures in Blockchain Building

@purcell
purcell / Aggregation.purs
Last active Nov 18, 2019
Multiple aggregates in a single pass, using Purescript
View Aggregation.purs
-- This is based on ideas from the excellent article "Beautiful Aggregations
-- with Haskell" by Evan Borden: https://tech.freckle.com/2017/09/22/aggregations/
module Aggregation where
import Prelude
import Data.Foldable (foldMap)
import Data.Monoid.Additive (Additive(..))
import Data.Newtype (un)
@ibraheem4
ibraheem4 / postgres-brew.md
Last active Sep 20, 2020 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)
View postgres-brew.md

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@busypeoples
busypeoples / UIStates.re
Created Aug 18, 2017
Displaying different UI States nicely in Reason
View UIStates.re
/* Slaying a UI Anti Pattern in Reason */
type remoteData 'e 'a =
| Nothing
| Loading
| Failure 'e
| Success 'a;
type item = {
userId: int,
@tycho01
tycho01 / stdlib.ts
Last active Mar 24, 2020
Type-level standard library for TypeScript
View stdlib.ts
// NOTE: code now moved to https://github.com/tycho01/typical
// older revision left here, but it no longer runs well in TS Playground
export type Obj<T> = { [k: string]: T };
export type NumObj<T> = { [k: number]: T };
// export type List = ArrayLike; // no unapplied generic types :(
export type List<T> = ArrayLike<T>;
// progress: https://github.com/Microsoft/TypeScript/issues/16392
export function force<T, V extends T>() {}
View readme.md
Service SSL status Response Type Allowed methods Allowed headers Exposed headers
@harpocrates
harpocrates / subtype-examples.hs
Last active Jan 7, 2017
Build (single) inheritance up from scratch in Haskell
View subtype-examples.hs
{-# LANGUAGE TypeFamilies, TypeOperators, FlexibleContexts,
TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses
#-}
import Data.List.NonEmpty (NonEmpty(..))
import Data.Maybe (maybeToList)
import Data.Ratio (numerator, denominator)
import Data.IORef (IORef)
import SubType
@hallettj
hallettj / adt.js
Last active Jun 5, 2019
Sealed algebraic data type (ADT) in Javascript with Flow
View adt.js
/* @flow */
// Helper function for matching against an ADT.
export function match<A,B>(matcher: A): (match: (matcher: A) => B) => B {
return match => match(matcher)
}
You can’t perform that action at this time.