% mysql --version
mysql Ver 14.14 Distrib 5.5.29, for debian-linux-gnu (x86_64) using readline 6.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET = kagiroi | |
SRC_DIR = src | |
SRCS = $(shell find . -name '*.cc') | |
DEPS = $(SRCS:.cc=.d) | |
OBJS = $(SRCS:.cc=.o) | |
CPPFLAGS = -MMD -MP -I$(SRC_DIR) | |
CXXFLAGS = -Wall -std=c++1y -O3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from pymc import Binomial, MCMC, Matplot, Uniform | |
n_iter = 10000 | |
n_problem = 30 | |
n_problem_pass = 18 | |
score = [26, 28, 25, 22, 25] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open 0.txt, 2.txt, ..., 9.txt | |
# list comprehension | |
fs = [open('{0}.txt'.format(i)) for i in range(10)] | |
[f.close() for f in fs] | |
# map | |
fs = map(lambda i: open('{0}.txt'.format(i)), range(10)) | |
map(lambda f: f.close(), fs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface Worker | |
{ | |
public function getCommand(); | |
public function done($stdout, $stderr); | |
public function fail($stdout, $stderr, $status); | |
} |