Skip to content

Instantly share code, notes, and snippets.

@decentral1se
decentral1se / muxdemux.py
Last active May 17, 2020 18:41
Mux/demux example with trio (first steps...)
"""Mux/demux protocol toy example with Trio.
Naively done and just about working! Probably buggy. There is not much by way
of error handling however it does showcase an approach for multiplexing a
streamed connection with multiple channels. All messages that are sent over the
stream are tagged with a channel ID. Each Protocol and Channel instance have
their own incoming and outgoing queue.
I'm trying to work towards having a robust mux/demux implementation and need
some help. Any comments on this would be greatly appreciated. Hopefully this
Roots for record 0 (stored at leaf 0): [ 0 ]
0: 0
Roots for record 1 (stored at leaf 2): [ 1 ]
0: 0─┐
1
1: 2─┘
Roots for record 2 (stored at leaf 4): [ 1, 4 ]
0: 0─┐
@pradyunsg
pradyunsg / proposal.md
Last active February 7, 2020 19:56
@pradyunsg's GSoC 2017 proposal

Adding Proper Dependency Resolution to pip

  • Name: Pradyun S. Gedam
  • Email: [pradyunsg@gmail.com][mailto-email]
  • Github: [pradyunsg][github-profile]
  • University: [VIT University, Vellore, India][vit-homepage]
  • Course: Bachelor of Technology in Computer Science and Engineering
  • Course Term: 2016/17 - 2019/20 (4 Year)
  • Timezone: IST (GMT +5:30)
  • GSoC Blog RSS Feed URL:

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

import Html exposing (..)
import Html.App exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Html.Attributes exposing (..)
import Http
import Task exposing (Task)
import Json.Decode as Json exposing ((:=))
type Msg
@sigrlami
sigrlami / ab.md
Last active March 4, 2022 14:40
List of companies using Haskell https://haskellcosm.com

WARNING This list outdated, for the up to date version visit https://haskellcosm.com

List of companies that use Haskell in Production

Types of work:

  • RD - research&development
  • PR - product
  • IP - in-house product
  • CO - consulting
@telent
telent / gist:9742059
Last active May 8, 2024 11:36
12 factor app configuration vs leaking environment variables
App configuration in environment variables: for and against
For (some of these as per the 12 factor principles)
1) they are are easy to change between deploys without changing any code
2) unlike config files, there is little chance of them being checked
into the code repo accidentally
3) unlike custom config files, or other config mechanisms such as Java