... 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
| deployment: | |
| staging: | |
| branch: staging | |
| commands: | |
| - curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【START】ステージング環境へのデプロイを開始しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx' | |
| - git push git@heroku.com:MY-APP-NAME.git $CIRCLE_SHA1:refs/heads/master | |
| - heroku run rake db:migrate --app MY-APP-NAME | |
| - curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【END】ステージング環境へのデプロイが完了しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx' |
(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.
| #-*- coding: utf-8 -*- | |
| """ | |
| GIBBS SAMPLING IMPLEMENTATION FOR LATENT DIRICHLET ALLOCATION (2003) | |
| IMPLEMENTED BY CHANG-UK, PARK | |
| DATA FORMAT: "DocID\t WordID\t FREQUENCY\n" | |
| """ | |
| import sys | |
| import random |
$ sudo docker pull ubuntu
$ sudo docker run -t -i ubuntu:14.04 /bin/bash
root@856b6aa801af:/# apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Get:1 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]| package main | |
| import "sync" | |
| type MySingleton struct { | |
| } | |
| var ch = make(chan bool, 1) | |
| var s *MySingleton = nil |
| /* | |
| requires libgit2 | |
| */ | |
| package main | |
| import ( |
This guide explains the way to setup a production server using Capistrano.
# Gemfile
# Use Capistrano for deployment| app.factory('API', function($http, $q){ | |
| var basePath = 'http://domain.com/api/path'; | |
| // => http://domain.com/api/path/foo/bar | |
| function makeRequest(verb, uri, data){ | |
| var defer = $q.defer(); | |
| verb = verb.toLowerCase(); | |
| //start with the uri |