... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
(require 'dash) | |
(require 's) | |
(defmacro with-face (STR &rest PROPS) | |
"Return STR propertized with PROPS." | |
`(propertize ,STR 'face (list ,@PROPS))) | |
(defmacro esh-section (NAME ICON FORM &rest PROPS) | |
"Build eshell section NAME with ICON prepended to evaled FORM with PROPS." | |
`(setq ,NAME |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
;; from https://www.youtube.com/watch?v=r6j2W5DZRtA | |
;; get the following packages ("M-x package-list-packages"): | |
;; go-mode | |
;; go-eldoc | |
;; company-mode | |
;; company-go | |
;; get the following go programs (run each line in your shell): | |
;; go get golang.org/x/tools/cmd/godoc | |
;; go get golang.org/x/tools/cmd/goimports | |
;; go get github.com/rogpeppe/godef |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
cd /Applications/Kaleidoscope.app/Contents/Resources/Integration/scripts | |
./install_git-default |
# Configuration file for runtime kernel parameters. | |
# See sysctl.conf(5) for more information. | |
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
# an explanation about some of these parameters, and instructions for | |
# a few other tweaks outside this file. | |
# | |
# See also: https://gist.github.com/kgriffs/4027835 | |
# | |
# Assumes a beefy machine with lots of network bandwidth |
package com.netflix.curator.framework.recipes.nodes; | |
import com.google.common.annotations.VisibleForTesting; | |
import com.google.common.base.Throwables; | |
import com.google.common.util.concurrent.SettableFuture; | |
import com.google.common.util.concurrent.ThreadFactoryBuilder; | |
import com.netflix.curator.framework.CuratorFramework; | |
import com.netflix.curator.framework.api.PathAndBytesable; | |
import com.netflix.curator.utils.EnsurePath; | |
import com.netflix.curator.utils.ZKPaths; |