CSCV
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 threading as th | |
from copy import deepcopy | |
class Node: | |
def __init__(self, parent=None, state=[]): | |
self.parent = parent | |
self.generator_lock = th.Lock() | |
self.generator = self._child_gen() | |
self.state = state |
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 os | |
import sys | |
if sys.version_info.major == 2: | |
import Tkinter as tk | |
else: | |
import tkinter as tk | |
abstractmethod = lambda f: f |
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
#!/bin/python -c "print('youjo')" |
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
#!/bin/zsh | |
gifview --animate --geometry 1920x1200 +e -bg white --min-dalay 5 --window $XSCREENSAVER_WINDOW $MASHIRO_PATH |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
こんにちは、こくです。
今回は glusterfs
という分散ファイルシステムでcoins-projectの余っているサーバーをストレージ化してみたので、紹介と構築方法を書こうと思います。
間違っている箇所などありましたら、@cocuh_
まで連絡してくださると本人は非常に喜びます。
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
PREFECTURE_LIST = [ | |
u"幼女県", | |
] | |
def compute_all(i, data): | |
""":type data:dict""" | |
return [ | |
data[i][pref] | |
for pref in PREFECTURE_LIST | |
] |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
override = lambda f:f | |
class BaseData(object): | |
pass | |
class BaseApp(object): | |
def __init__(self): | |
self.data = self.build_data() | |
""":type: BaseData""" |