- 进入你的
home目录
cd ~
- 编辑
.bashrc文件
| ## Sublime Text 3 Serial key build is 3176 | |
| > * Added these lines into /etc/hosts | |
| 127.0.0.1 www.sublimetext.com | |
| 127.0.0.1 license.sublimehq.com | |
| > * Used the license key | |
| ----- BEGIN LICENSE ----- |
| Help on module _threading_local: | |
| NAME | |
| _threading_local - Thread-local objects. | |
| FILE | |
| /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_threading_local.py | |
| MODULE DOCS | |
| http://docs.python.org/library/_threading_local |
| ## Sublime Text 3 Serial key build is 3103 | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
| B085E65E 2F5F5360 8489D422 FB8FC1AA |
| /* | |
| sublime-imfix.c | |
| Use LD_PRELOAD to interpose some function to fix sublime input method support for linux. | |
| By Cjacker Huang <jianzhong.huang at i-soft.com.cn> | |
| gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC | |
| LD_PRELOAD=./libsublime-imfix.so sublime_text | |
| */ | |
| #include <gtk/gtk.h> | |
| #include <gdk/gdkx.h> |
| # coding: utf-8 | |
| import requests | |
| URL = '''http://106.75.28.160/UCloud.txt#rd?sukey=3997c0719f1515206fcb3e208377fb04c629d5538daaa1eb8062a8dd668ceb37a14e5b49042e5f785681b5d06d1cbc61''' | |
| def count_this(word_to_find): | |
| r = requests.get(URL) | |
| return r.content.count(word_to_find) |
| # coding: utf-8 | |
| def switch(item): | |
| return { | |
| 'one': 1, | |
| 'two': 2, | |
| 'three': 3 | |
| }.get(item, 0) | |
| if __name__ == '__main__': | |
| print switch('one') |