学生免费 Online Learning-AWS Educate 培养未来的云工作者:学生(包含教育工作者)不但可以亲自实践AWS技术、参与培训、学习内容、开拓职业途径、使用求职板块,而且可以获取相应积分。 DevIDE-JetBrains 他家的软件表: ReSharper: Tool for .NET Intellij IDEA: IDE for Java PhpStorm: IDE for Web & PHP dotTrace: .NET profilers RubyMine: IDE for...
设置 设置python vim module,在vimrc文件中添加如下几行 python << EOF import os import sys import vim for p in sys.path: if os.path.isdir(p): vim.command(r"set path+=%" % (p.replace(" ", r"\ "))) EOF 准备tags文件 运行ctags,生成tags文件,举例: $ctags -R -f ~/.vim/tags/python.tags...
匹配子串,输出子串: import re while(1): str=raw_input(">") if str == "": break m = re.match(r'^[aeiouAEIOU]*',str) if m != None: print m.group() r'^[aeiouAEIOU]*'只会匹配方括号中重复出现的字符串并返回匹配上的局部字符串,r'^[aeiouAEIOU].*'会把开头是元音字母的字符串整个返回(而不是只返回元音字母)。这体现了*的作用是前一个字母或整体的重复。
Valid phone numbers must appear in one of the following two formats: (xxx) xxx-xxxx or xxx-xxx-xxxx. (x means a digit) Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone...
How would you print just the 10th line of a file with the shell script? Shell script is as below: #!/bin/bash k=0 while IFS='' read -r line || [[ -n "$line" ]] do ((k++)) if [ $k -eq 10 ] then echo "Text read from file: $line" fi done < "$1" If you...
To evaluate expressions involving decimal places (floating points) "bc -l" is very useful. Your task is to evaluate the expression and display the output correct to decimal places. Shell script is as below: #!/bin/bash read expression printf "%.3f\n"...
Are you learning Java, PHP, Ruby, Python, JavaScript, Objective-C or .NET technologies? Or maybe you just plan to?Do it right from the start, with award-winning professional developer tools from JetBrains. And the best part: it's free of charge. more...
=== 1. Download markdown-plugin from: markdown-1.2.2.vba.gz Extract .gz document with 7zip(Or others software) Open markdown-1.2.2.vba with vim (Or Gvim) Run the cmd::so % :q Now, enjoy vim editor with Syntax highlighting of markdown.
sign up a account at at scriptogr.am, then connect your account to your dropbox account. if you had a domain, write it at custom domain. Don't forget to go to domain name provider to change CNAME to atscriptogr.am(if it's a top domain, please point the...