vim操作技巧
简书链接:vim操作技巧文章字数:1425,阅读全文大约需要5分钟 前言vim这东西还算是学校教的能排上用场的东西,当然咯,当时不知道能这么装逼呢,以为有窗口为毛还需要这玩意,后面才发现远程等等,都没有 命令行快,而且网上的教程都是基于shell的教程.所以一般很少用ui去改东西. 退出指令模式123456789:w 保存文件但不退出vi :w file 将修改另外保存到file中,不退出vi :w! 强制保存,不推出vi :wq 保存文件并退出vi :wq! 强制保存文件,并退出vi :q 不保存文件,退出vi :q! 不保存文件,强制退出vi :e! 放弃所有修改,从上次保存文件开始再编辑命令历史 说明我这里不是最全的,我只记录我自己觉得还能排上用场的. vim设置1vim ~/.vimrc 输入i,然后输入如下内容 123set number set cursorlineset ruler 按esc退出插入模式 然后按下shift和冒号:输入wq然后在进入vim之后就能显示行号,而且能显示当前在那一行的光标. 再次修改 12345678910 set number...
按键Keyboardview的技巧之顶部底部行也插入间隙
简书链接:按键Keyboardview的技巧之顶部底部行也插入间隙文章字数:83,阅读全文大约需要1分钟 12345678910111213<!--下面是间距而已--> <Row android:keyHeight="0px"> <Key android:codes="@string/empty_flag" android:keyEdgeFlags="left" android:keyWidth="@dimen/key_match_parent" /> </Row> 默认情况下只在row节点下面插入一行,那么如何实现呢?如上代码就可以实现,另外为了防止继承,所以这里强制设置了当前行没有高度 为何是0px不是0dp 因为dp转换会导致不能除0.
keyboardviewindex问题
简书链接:keyboardviewindex问题文章字数:53,阅读全文大约需要1分钟 123456java.lang.StringIndexOutOfBoundsException: length=0; index=0 at java.lang.String.indexAndLength(String.java:500) at java.lang.String.charAt(String.java:494) at android.inputmethodservice.KeyboardView.adjustCase(KeyboardView.java:580) at android.inputmethodservice.KeyboardView.onBufferDraw(KeyboardView.java:690) at...
keyboard的间隙详解
简书链接:keyboard的间隙详解文章字数:709,阅读全文大约需要2分钟 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273<Row android:verticalGap="1.9%p"> <Key android:codes="20140" android:keyLabel="10%" android:horizontalGap="10%p" android:keyWidth="40%p" android:keyEdgeFlags="left" /> <Key android:codes="27941"...
webstorm201815破解
简书链接:webstorm201815破解文章字数:43,阅读全文大约需要1分钟 Webstorm2018最新激活码最新的激活码总有一个属于你^__^http://idea.youbbs.org http://idea.congm.in http://im.js.cn:8888 http://intellij.mandroid.cn/ http://idea.imsxm.com/ http://idea.iteblog.com/key.php http://xdouble.cn:8888/
批处理编写进阶解读
简书链接:批处理编写进阶解读文章字数:152,阅读全文大约需要1分钟 123456789101112131415161718192021222324252627#!/usr/bin/python3import sys, getoptdef main(argv): inputfile = '' outputfile = '' try: opts, args = getopt.getopt(argv,"h:i:o:",["infile=","outfile="]) except getopt.GetoptError: print ('GetoptError, usage: command_line_usage.py -i <inputfile> -o <outputfile>') sys.exit(2) for opt, arg in opts: ...
python小试牛刀编写批处理初步
简书链接:python小试牛刀编写批处理初步文章字数:321,阅读全文大约需要1分钟bat越来越觉得不好用,取字符串是非常的麻烦,于是我打算用python开始编写,现在的雏形是这样的. 1234567891011121314151617181920212223242526272829303132#!/bin/env python#encoding: utf-8#"Non-ASCII character '\xe6' in file"import sysimport osprint("arg length:"+str(len(sys.argv)))# sys.argvfileName="default.json" if len(sys.argv)<2 else sys.argv[1]notPostfixname=fileName[:-5]print("没有后缀的文件名:"+notPostfixname)if "json" in fileName: #...
升级pip
简书链接:升级pip文章字数:103,阅读全文大约需要1分钟 123456789101112Requirement already satisfied: six>=1.9.0 in ./anaconda3/lib/python3.6/site-packages (from prompt-toolkit<2.0.0,>=0.57->frida-tools) (1.11.0)Requirement already satisfied: wcwidth in ./anaconda3/lib/python3.6/site-packages (from prompt-toolkit<2.0.0,>=0.57->frida-tools) (0.1.7)distributed 1.21.8 requires msgpack, which is not installed.You are using pip version 10.0.1, however version 18.0 is available.You should consider...
python三目运算符
简书链接:python三目运算符文章字数:31,阅读全文大约需要1分钟 12>>> 1 if 1>0.111 else 5 输出的是1, 可以看出 1,和5为 前面if else中间的条件结果 ,
异或加密解密以及暴力随机几千次的测试按原串索引进行解密验证
简书链接:异或加密解密以及暴力随机几千次的测试按原串索引进行解密验证文章字数:190,阅读全文大约需要1分钟 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273import java.util.Random;public class XorTest { public static void main(String[] args) { long encrypt_key=Long.MAX_VALUE; long xor=encrypt_key^5000; long reverse=xor^5000; StringBuffer sb=new...