Ctrl Alt L
显示解决方案视图(物理文件)Ctrl Backspace
删除到词头(类似Bash里的Ctrl WCtrl W
是选择当前词,当然然后可以直接修改Alt M
类似Sublime Text 2 里的Ctrl P,跳跃到输入的方法处(限本文档Ctrl K Ctrl K
标记书签F2
跳转到下一处书签Shift F2
跳转到上一处书签Ctrl K Ctrl L
清除所有书签Shift Del
删除整行Ctrl J
列出类,结构成员shift+alt+mouse
选择一个矩形区域进行列编辑。
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
; CMD: connect/disconnect vpn | |
#v:: | |
run, "your directory\dialvpn.bat" | |
return |
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
from xlwt import Workbook | |
def colaz(n, cnt, row): | |
if n == 1: | |
print cnt | |
row.write(1, str(cnt)) | |
return 0 | |
if n%2 == 0: | |
n = n/2 | |
else: |
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
# colazCalculatingTime.py | |
import time | |
colazStopNumList = [] | |
def colaz(n, cnt): | |
if n == 1: | |
colazStopNumList.append(cnt) | |
return 0 |
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
initNum = int(raw_input("input the initial number:")) | |
delta = int(raw_input("input the delta:")) | |
cnt = int(raw_input("input the count number:")) | |
s = '0ps 0mv ' | |
for i in range(cnt): | |
s += (str(initNum + delta*i) + 'ps 0mv ') | |
s += (str(initNum + delta*i + 1) + 'ps 1.035mv ') | |
s += (str(initNum + delta*i + 2) + 'ps 1.035mv ') |
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
from xlrd import open_workbook | |
from xlwt import Workbook | |
book = open_workbook('test.xls') | |
sheet = book.sheet_by_index(0) | |
ready_to_write = [] | |
def proc(l): | |
for i in range(l.__len__()): |
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
#for changing the initial number by adjusting the votalge | |
import argparse | |
import re | |
import sys | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-VB', dest='vb') | |
parser.add_argument('-IN', dest='initNum') | |
parser.add_argument('-DT', dest='delta') | |
parser.add_argument('-A', dest='a', default='1001011010111101') # pattern for input a, 1101 e.g. |
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
{ | |
"normalExpect": { | |
"general": "\\$", | |
"root": "\\#" | |
}, | |
"cmd": [ | |
{ | |
"cmd": "", | |
"expect": "login:\\s" | |
}, |
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
#include<stdio.h> | |
main() | |
{ | |
float i=7, j=10, k=0.7; | |
const float EPSILON = 0.000000000000000001; | |
//const float EPSILON = 0.0000001; | |
float tmp = i/j; |
- ctrl v(linux)/ctrl q(windows): enable visual block mode(column edit)
- Enter/+: move to the first non-blank char of next line.
- H: move to the first line of current screen.
- L: move to the last line of current screen.
- -: move to the first non-blank char of previous line.
- ^: move to the first non-blank char of current line.
- 0: move to the first char(blank char included) of current line.
OlderNewer