- Ploneカンファレンスの発表の流れを決めた(原さんと)
- Plone関係作りこみ
- Ploneのコンパネのレジストリーに保存や編集したときのイベントを捉えて、各種別の動作につなげる(jbkingにアドバイスを受けた)
- Thread localを使っている時やZEO時に、全てに反映させる為の仕組み(数値を比べたり)を実装(田原さんに教えてもらった)
- Fuzzy Searchの基礎データの保存をSQliteにする準備や実装。色々とやったがsqlalchemyを使うことにした。(aodagにたくさん聞いた)
This file contains hidden or 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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples. |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>動画ストリーミングのテスト</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
This file contains hidden or 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
{ | |
"Version":"2012-10-17", | |
"Statement":[{ | |
"Sid":"AddPerm", | |
"Effect":"Allow", | |
"Principal": "*", | |
"Action":["s3:GetObject"], | |
"Resource":["arn:aws:s3:::c2-video-test/*" | |
] | |
} |
This file contains hidden or 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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples. |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from datetime import datetime as dt | |
from collections import OrderedDict, defaultdict | |
data1 = [{'id':"1", "start":(2014,01,16,9,0), "end": (2014,01,16,14,0)}, | |
{'id':"2", "start":(2014,01,16,10,0), "end": (2014,01,16,11,0)}, | |
{'id':"3", "start":(2014,01,16,12,0), "end": (2014,01,16,15,0)}, | |
{'id':"4", "start":(2014,01,16,12,0), "end": (2014,01,16,14,0)}, | |
{'id':"5", "start":(2014,01,16,15,0), "end": (2014,01,16,17,0)}, | |
{'id':"6", "start":(2014,01,16,16,0), "end": (2014,01,16,18,0)}, |
This file contains hidden or 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 bisect | |
class NFA(object): | |
EPSILON = object() | |
ANY = object() | |
def __init__(self, start_state): | |
self.transitions = {} | |
self.final_states = set() | |
self._start_state = start_state |
This file contains hidden or 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 random | |
>>> def heya(li): | |
... random.shuffle(li) | |
... while li: | |
... yield li.pop(), li.pop() | |
... | |
>>> li = ['shoma', 'takanory', 'ike', 'tim', 'shimizukawa', 'jbking'] | |
>>> list(heya(li)) |
NewerOlder