栅栏密码加解密
单行版本
python
railFence = lambda s: [[i, ''.join([s[k * i + j] for j in range(i) for k in range(len(s) / i)])] for i in range(1, len(s)) if not len(s) % i]
print railFence('hello world , 2017 ! ')
正常版本
```python
def railFence(s):
ll = len(s)
res = dict()
for i in range(1, ll):
r = ''
继续阅读 »
New features
Add native shell support for xmake.lua. .e.g add_ldflags("$(shell pkg-config --libs sqlite3)")
Enable pdb symbol files for windows
Add debugger support on windows (vsjitdebugger, ollydbg, windbg ... )
Add getenv interface for the global scope of xmake.lua
Add plugin for generating vstudio project file (vs继续阅读 »
2018.4.3 19:00 ~ 2018.4.3 21:00
求回文子字符串数量
```python
import sys
def check(s):
length=len(s)
for i in range(length):
if s[i]!=s[length-1-i]:
return 0
return 1
s=sys.stdin.readline().strip()
res=0
try:
for i in range(len(s)):
for j in range(i+1,len(s)+1):
if check(继续阅读 »
New features
Add some interpreter builtin-modules
Support ml64 assembler for windows x64
Changes
Improve ipairs and pairs interfaces and support filter
Add filters for generating vs201x project
Remove core/tools (msys toolchains) and uses xmake to compile core sources on windows
Remove xmake/packages for templates
Bu继续阅读 »
This blog was sent to openstack-discuss mailing list originaly.
As the official Victoria release is approaching and it has been a long time
silence for Trove in the upstream, I think it's good time for me as the Trove
PTL for the last 3 dev cycles to have a project update. The things that will be
described below have 继续阅读 »
Sources
Changelog
New features
Add task api for running custom tasks
Add plugin expansion and provide some builtin plugins
Add export ide project plugin(.e.g makefile and will support to export other projects for vs, xcode in feature)
Add demo plugin for printing 'hello xmake'
Add make doxygen documents plugin
Add m继续阅读 »
New features
Add ping demo for network
Changes
Modify license to Apache License 2.0
Rename --smallest=y|n option to --small=y|n
Support stat64
Improve copy speed and fix permissions for tb_file_copy
Improve path operation for posix platform
Improve socket interfaces and support icmp
Improve xmake.lua and remove binar继续阅读 »
New features
Add --links, --linkdirs and --includedirs configure arguments
Add app2ipa plugin
Add dictionary syntax style for xmake.lua
Provide smart scanning and building mode without xmake.lua
Add set_xmakever api for xmake.lua
Add add_frameworks api for objc and swift
Support multi-languages extension and add golan继续阅读 »
Text Recognition
Fully Convolutional Recurrent Network for Handwritten Chinese Text Recognition paper
Deep LSTM Networks for Online Chinese Handwriting Recognition 2016 ICFHR
Convolution Multi-directional Recurrent Network for Offline Handwritten Text Recognition 2016 ICFHR
Sequence to Sequen继续阅读 »