... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
/* Generated by Nim Compiler v0.10.3 */ | |
/* (c) 2015 Andreas Rumpf */ | |
/* The generated code is subject to the original license. */ | |
/* Compiled for: Linux, amd64, gcc */ | |
/* Command for C compiler: | |
gcc -c -w -O3 -fno-strict-aliasing -I/media/nim/lib -o /home/deen/nimcache/asd.o /home/deen/nimcache/asd.c */ | |
#define NIM_INTBITS 64 | |
#include "nimbase.h" | |
#include <stdio.h> |
import timeit | |
def go1(): | |
d = {} | |
for i in range(100): | |
d[i] = "hi %s" % i | |
return d | |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
#!/usr/bin/env python | |
import logging | |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.web | |
import tornado.websocket | |
from tornado.options import define, options | |
from tornado.process import Subprocess |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
I = [5, 6, 7] | |
matrix = [ | |
[1, 10, -57, -9, -24, 0, 0, 0, 0] | |
[0, 0.5, -5.5, -2.5, 9, 1, 0, 0, 0] | |
[0, 0.5, -1.5, -0.5, 1, 0, 1, 0, 0] | |
[0, 1, 0, 0, 0, 0, 0, 1, 1] | |
] | |
max = (array) -> |
/** | |
* Annotated Gruntfile. | |
* This builds a Backbone/Marionette application using Dust.js (Linkedin fork) as a | |
* templating system, as well as some helpers from Foundation, with Browserify. | |
* It also configures a watcher and static server with live reload. | |
*/ | |
module.exports = function (grunt) { | |
// This automatically loads grunt tasks from node_modules | |
require("load-grunt-tasks")(grunt); |
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
help: ## Show this help. | |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
# Everything below is an example | |
target00: ## This message will show up when typing 'make help' | |
@echo does nothing |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.