% Markdown + Pandoc + Shower = XD % @smly % 2013-03-13
Shower のスライドを Markdown で作る話
- まとめ
| $ while (true); do curl -s -o /dev/null -w "%{http_code}\n" localhost:8080/bid; done | |
| 200 | |
| 200 | |
| 200 | |
| 200 | |
| 204 | |
| 200 | |
| 200 | |
| 200 | |
| ^C |
| events { | |
| } | |
| http { | |
| limit_req_zone $binary_remote_addr zone=nobid:1m rate=100r/s; | |
| server { | |
| listen 8080; |
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'webrick' | |
| require 'logger' | |
| # Requirements: | |
| # * ruby >= 2 | |
| # * mono | |
| # * FlightQuest Simulator |
| diff --git a/src/http/modules/ngx_http_limit_conn_module.c b/src/http/modules/ngx_http_limit_conn_module.c | |
| index 7f0eea7..0d29f6b 100644 | |
| --- a/src/http/modules/ngx_http_limit_conn_module.c | |
| +++ b/src/http/modules/ngx_http_limit_conn_module.c | |
| @@ -76,7 +76,7 @@ static ngx_conf_enum_t ngx_http_limit_conn_log_levels[] = { | |
| static ngx_conf_num_bounds_t ngx_http_limit_conn_status_bounds = { | |
| - ngx_conf_check_num_bounds, 400, 599 | |
| + ngx_conf_check_num_bounds, 201, 599 |
| diff --git src/cmd2F.c src/cmd2F.c | |
| index cd160b8..3c7b505 100644 | |
| --- src/cmd2F.c | |
| +++ src/cmd2F.c | |
| @@ -1381,7 +1381,7 @@ void commands2F81() { | |
| for (i = 0; i < eNumof; i++) { | |
| *vData = LittleEndian_getW(nact->datatbl_addr, 0); | |
| - ((WORD *)nact->datatbl_addr)++; | |
| + nact->datatbl_addr++; |
| [flake8] | |
| # Ignore N804,N805 | |
| # N804: first argument of a classmethod should be named 'cls' | |
| # N805: first argument of a method should be named 'self' | |
| ignore = N804,N805 |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| """ | |
| Run rod for test. | |
| """ | |
| import sys | |
| import os | |
| sys.path.append( |
| <!DOCTYPE html> | |
| <html$if(lang)$ lang="$lang$"$endif$> | |
| <head> | |
| <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=680, user-scalable=no"> | |
| <meta name="generator" content="pandoc" /> | |
| $for(author-meta)$ | |
| <meta name="author" content="$author-meta$" /> | |
| $endfor$ |
| # %run ipython/load_df.py | |
| import pandas as pd | |
| df = pd.load('pickle/train_test_tsv2_data_frame.pd.pickle') | |
| fea = pd.load('pickle/actions_feature.pd.pickle') | |
| train = pd.DataFrame(df.ix['train']['UserID'].drop_duplicates()) | |
| train = train.merge(fea) | |
| test = pd.DataFrame(df.ix['test']['UserID'].drop_duplicates()) | |
| test = test.merge(fea) |