puts 'The best way to log and share programmers knowledge.'
puts 'The best way to log and share programmers knowledge.'
また、コードをインライン表示することも可能です。
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import simplejson | |
from collections import defaultdict | |
FILE_PATH = u'/Users/mogihiroki/Downloads/limited-quest.json' | |
f=open(FILE_PATH) | |
data=simplejson.load(f) | |
f.close() |
#!/usr/bin/python | |
# coding: UTF-8 | |
""" | |
urlからテキストを抽出して解析 | |
""" | |
import re | |
import urllib2 | |
import time | |
from collections import defaultdict |
#!/usr/bin/python | |
# coding: UTF-8 | |
""" | |
何かしらの2chURL一覧からスレのIDを取ってファイルに保存 | |
""" | |
import re | |
import urllib2 | |
import copy | |
def get_html(url): |
fork したものを写経してみた。 | |
割とtypoしててびびった。 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
""" | |
class BaseRule(object): | |
def __init__(self, cell): | |
self.cell = cell | |
def valid(): | |
raise NotImplementedError |
vim $(find . -iname $1) | |
echo $(find . -iname $1) |
def trim_duplicate_by_objects_list(objects_list, obj_attr_name): | |
trimd = {} | |
for o in objects_list: | |
key = getattr(o, obj_attr_name) | |
if not key: | |
continue | |
trimd[key] = o | |
return trimd.values() |
# coding: utf-8 | |
""" | |
ハンバーガーショップの合計金額計算 | |
""" | |
import sys | |
from collections import defaultdict | |
######## | |
# マスターデータ定義クラス群 |
| static/ | |
| | | css/ | |
| | | fonts/ | |
| | | images/ | |
| | | js/ | |
| | | movies/ | |
| browser_scripts/ # js | |
| data/ | |
| scripts/ # wsgi | |
| submodule/ |