... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
import json | |
from scrapy.crawler import Crawler | |
from scrapy.contrib.loader import ItemLoader | |
from scrapy.contrib.loader.processor import Join, MapCompose, TakeFirst | |
from scrapy import log, signals, Spider, Item, Field | |
from scrapy.settings import Settings | |
from twisted.internet import reactor | |
... 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