... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
#! /bin/sh | |
# | |
# virtuoso OpenLink Virtuoso Open-Source Edition | |
# | |
# Written by OpenLink Virtuoso Maintainer | |
# <[email protected]> | |
# | |
# Adapted for CentOS 6.0 | |
# | |
# sources |
JSON Patch is a media type developed to take advantage of the HTTP PATCH method. It includes operations such as add
, remove
, replace
, copy
, move
, and test
. Below is a first reaction to reading the specification. Note that the author has not attempted a real implementation of JSON Patch, which would certainly provide a more thorough analysis and different perspective.
package main | |
import ( | |
"bytes" | |
"exec" | |
"log" | |
"os" | |
) | |
// Pipeline strings together the given exec.Cmd commands in a similar fashion |
// packageList returns the list of packages in the dag rooted at roots | |
// as visited in a depth-first post-order traversal. | |
func packageList(roots []*Package) []*Package { | |
seen := map[*Package]bool{} | |
all := []*Package{} | |
var walk func(*Package) | |
walk = func(p *Package) { | |
if seen[p] { | |
return |
// Traverses an arbitrary struct and translates all stings it encounters | |
// | |
// I haven't seen an example for reflection traversing an arbitrary struct, so | |
// I want to share this with you. If you encounter any bugs or want to see | |
// another example please comment. | |
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2014 Heye Vöcking | |
// |
package trie | |
import ( | |
"container/vector" | |
"sort" | |
) | |
// A 'set' structure, that can hold []byte objects. | |
// For any one []byte instance, it is either in the set or not. | |
type Trie struct { |
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
#!/bin/sh | |
## Information | |
## http://carlo-hamalainen.net/blog/2007/12/11/installing-minion-pro-fonts/ | |
## http://www.ctan.org/tex-archive/fonts/mnsymbol/ | |
## 0: Install | |
## http://www.lcdf.org/type/ | |
## I used --without-kpathsea to configure (with MacTeX 2011): | |
## | |
## ./configure --without-kpathsea |