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
| if [ -f ~/.bashrc ]; then | |
| . ~/.bashrc | |
| fi |
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:utf8 | |
| import urllib | |
| def urldecode(s): | |
| rdic = {} | |
| for item in s.split('&'): | |
| keyVal = item.split('=') | |
| rdic[urllib.unquote_plus(keyVal[0])] = urllib.unquote_plus(keyVal[1]) | |
| return rdic |
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
| --- E:/bs4.orig/dammit.py Wed Jun 13 13:52:56 2012 | |
| +++ E:/bs4/dammit.py Wed Jun 20 17:30:47 2012 | |
| @@ -13,15 +13,11 @@ | |
| import warnings | |
| # Autodetects character encodings. Very useful. | |
| -# Download from http://chardet.feedparser.org/ | |
| -# or 'apt-get install python-chardet' | |
| -# or 'easy_install chardet' | |
| +# Download from https://github.com/PyYoshi/cChardet |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import time | |
| import os | |
| from watchdog.events import FileSystemEventHandler | |
| from watchdog.observers import Observer | |
| BASEDIR = os.path.abspath(os.path.dirname(__file__)) |
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 | |
| # http://d.hatena.ne.jp/odz/20070821/1187682903 | |
| import string | |
| import random | |
| alphabets = string.digits + string.letters + "!#$%&()*+,-./:;<=>?@[]^_{|}~" | |
| def randstr(n): | |
| return ''.join(random.choice(alphabets) for i in xrange(n)) |
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
| diff --git a/device_salsa.mk b/device_salsa.mk | |
| index 050dde6..40e70f5 100755 | |
| --- a/device_salsa.mk | |
| +++ b/device_salsa.mk | |
| @@ -58,7 +58,7 @@ PRODUCT_PACKAGES += \ | |
| # proprietary side of the device | |
| $(call inherit-product-if-exists, vendor/acer/salsa/salsa-vendor.mk) | |
| -$(call inherit-product, frameworks/base/build/phone-hdpi-512-dalvik-heap.mk) | |
| +$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk) |
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
| # virtualenvwrapper用の設定 | |
| $WORKON_HOME = "$HOME\.virtualenvs" | |
| $env:WORKON_HOME = $WORKON_HOME | |
| # $WORKON_HOMEがない場合は作成する | |
| if(-not(Test-Path -Path $WORKON_HOME)){ | |
| New-Item -Path $WORKON_HOME -itemType Directory | Out-Null | |
| } | |
| # virtualenvwrapper-powershellを起動時にロードする |
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
| == ConEmuとは? == | |
| ConEmuは複数のコンソールをさまざまな機能を持ち合わせたカスタマイズ可能な1つのウィンドウとして描画できる、Windowsコンソールエミュレータです。 | |
| Basic application - [http://www.farmanager.com/download.php?l=en Far Manager] ([http://en.wikipedia.org/wiki/FAR_Manager Far in Wikipedia])と共同利用。 Far (File and Archive) ManagerはファイルとアーカイブをWindowsOS上で管理できるコンソールプログラムです。 | |
| [[ReleaseList]] | |
| [[RecentTickets(limit=5)]] | |
| [http://code.google.com/p/conemu-maximus5/downloads/list プロジェクトページ] | |
| から最新Versionをダウンロード |
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
| # virtualenvwrapper用の設定 | |
| $WORKON_HOME = "$HOME\.virtualenvs" | |
| $env:WORKON_HOME = $WORKON_HOME | |
| # $WORKON_HOMEがない場合は作成する | |
| if(-not(Test-Path -Path $WORKON_HOME)){ | |
| New-Item -Path $WORKON_HOME -itemType Directory | Out-Null | |
| } | |
| # PowerTabのロード |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import struct | |
| class BinaryReader: | |
| # based: http://code.activestate.com/recipes/577610-decoding-binary-files/ | |
| # http://www.python.jp/doc/nightly/library/struct.html | |
| _TYPES = { |