... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| diff --git a/colour.c b/colour.c | |
| index a56ddce..8098f83 100644 | |
| --- a/colour.c | |
| +++ b/colour.c | |
| @@ -29,305 +29,85 @@ | |
| * of the 256 colour palette. | |
| */ | |
| -struct colour_rgb { | |
| - u_char i; |
| {-# LANGUAGE TupleSections #-} | |
| module Main where | |
| import Control.Applicative | |
| import Control.Monad | |
| import Control.Monad.Trans.State | |
| import Data.List ((\\), transpose) | |
| import Data.Map (Map) | |
| import qualified Data.Map as M |
| ------------------------------------------------------------------------------------------ | |
| -- A formalization of the Cheryl's birtday problem; using Haskell/SBV | |
| -- | |
| -- See: http://www.nytimes.com/2015/04/15/science/a-math-problem-from-singapore-goes-viral-when-is-cheryls-birthday.html | |
| -- | |
| -- By Levent Erkok, This file is in the public domain. Use it as you wish! | |
| -- | |
| -- NB. Thanks to Amit Goel for suggesting the formalization strategy used in here. | |
| ------------------------------------------------------------------------------------------ |
| This diff is a modified version of a diff written by Rüdiger Sonderfeld. | |
| The original diff can be found here: | |
| http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-tt299962.html | |
| To enable the feature one must set one of 2 environment variables either | |
| ITERM_24BIT or KONSOLE_DBUS_SESSION. The former will enable ITU T.416 mode, the | |
| latter will use semi-colon seperators used by other terminals (and also | |
| supported by iterm development branch). |
| This diff is a modified version of a diff written by Arnis Lapsa. | |
| [ The original can be found here: https://gist.github.com/ArnisL/6156593 ] | |
| This diff adds support to tmux for 24-bit color CSI SRG sequences. This | |
| allows terminal based programs that take advantage of it (e.g., vim or | |
| emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch) | |
| to display 16 million colors while running in tmux. | |
| The primary change I made was to support ":" as a delimeter as well |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.
For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.
But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.
SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil
Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git$ nano ~/.zshrcpath=('/path/to/depot_tools' $path)| This is a preview of Tom Ellis' database query library for Haskell. | |
| > {-# LANGUAGE Arrows, FlexibleContexts #-} | |
| > -- TODO: Get rid of FlexibleContexts if we ever move the definition of s | |
| > -- elsewhere. | |
| > {-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-} | |
| > {-# LANGUAGE TemplateHaskell #-} | |
| > | |
| > module Karamaan.Opaleye.Examples where | |
| > |