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
| from bson.objectid import ObjectId | |
| from bson.dbref import DBRef | |
| from mongoengine.document import Document | |
| import collections | |
| from datetime import datetime | |
| from mongoengine.queryset import QuerySet | |
| def raw_data(data): | |
| if isinstance(data, unicode): |
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
| #!/bin/bash | |
| ### | |
| # george.li 2013/1/9 | |
| # | |
| # simple daemon template | |
| # | |
| # env var | |
| # DAEMON: daemon program path | |
| # NAME: suggest daemon name | |
| # PID_FILE: daemon pid file path |
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
| # | |
| #Django settings for main project. | |
| DEBUG = True | |
| TEMPLATE_DEBUG = DEBUG | |
| ADMINS = ( | |
| # ('Your Name', 'your_email@example.com'), | |
| ) |
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
| ""ubuntu virtual mode ctrl+c 複製到系統剪貼簿 gtk only | |
| python import gtk | |
| python import vim | |
| vmap <silent> <C-C> y:let @0=substitute(@0,"\\","\\\\\\","gi")<CR>:let @0=substitute(@0,"\'","\\\\'","gi")<CR>:python gtk.clipboard_get().set_text('''<C-R>0''')<CR>:python gtk.clipboard_get().store()<CR> |
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
| { | |
| "10": { | |
| "answer": "JSON", | |
| "opt": [ | |
| "BSON", | |
| "JSON", | |
| "SON", | |
| "XML", | |
| "YAML" | |
| ], |
NewerOlder