代码已经整理好,效果如下图:GravitySnapHelper:/*
*Copyright(C)2016TheAndroidOpenSourceProject
*Copyright(C)2016RúbenSousa
*
*LicensedundertheApacheLicense,Version2.0(the"License");
*youmaynotusethisfileexceptincompliancewiththeLicense.
*Youmayobtainacopyo..
分类:
移动开发 时间:
2016-11-11 15:30:36
阅读次数:
378
write to xlsm (Excel 2007) using apache poi POI的下载(记得把其中的jar包全部加到工程里哦)http://mirror.bit.edu.cn/apache/poi/ I have written java file for writing xlsm(E ...
分类:
编程语言 时间:
2016-11-08 00:57:20
阅读次数:
1058
对于Python打开文件的模式,总是记不住,这次在博客里记录一下 r+: Open for reading and writing. The stream is positioned at the beginning of the file. w+:Open for reading and writ ...
分类:
编程语言 时间:
2016-11-05 23:40:15
阅读次数:
197
https://coderanch.com/t/278299/java/Writing-output-console-file-system File file = new File("test.txt");FileOutputStream fis = new FileOutputStream(fi ...
分类:
系统相关 时间:
2016-11-03 02:14:42
阅读次数:
219
修改现有函数 Tom 执行克隆操作后,看到新的文件string.c,他想知道这个文件到存储库?目的是什么?于是,他执行 git 日志命令。 [tom@CentOS ~]$ git clone gituser@git.server.com:project.git 上面的命令会产生以下结果。 Initi ...
分类:
其他好文 时间:
2016-11-02 00:54:59
阅读次数:
260
非常棒的Electron入门文章:https://medium.com/developers-writing/building-a-desktop-application-with-electron-204203eeb658
分类:
移动开发 时间:
2016-10-31 22:50:47
阅读次数:
269
在本节中我们会学习如果安装和使用插件插件是Atom中一个非常重要的组成部分,很多功能都是以插件形式存在的.比如上篇文章中提到的目录树和设置等窗口都是通过默认安装的插件来实现的. 查看已安装的插件 打开设置窗口(Cmd+,),再切换到”Packages”标签页,就可以看到已安装的插件列表了我们可以发现... ...
分类:
其他好文 时间:
2016-10-23 12:09:23
阅读次数:
277
在使用jupyter进行编程时,初始化目录可能不是自己想要的目录,那么下面讲解修改成自己想要的目录。 1) 在命令行中输入jupyter notebook --generate-config,会产生一个配置文件 我的会显示Writing default config to: C:\Users\all ...
分类:
其他好文 时间:
2016-10-22 15:04:36
阅读次数:
770
func arrayToJson(arr:NSArray) -> String { let jsonData: NSData = try! NSJSONSerialization.dataWithJSONObject(arr, options: NSJSONWritingOptions.Pretty ...
分类:
Web程序 时间:
2016-10-21 19:50:26
阅读次数:
251
学习如何撰写科学论文 一.网站学习:https://www.youtube.com/watch?v=PPsocEFCGRU&list=PLUk4uy2jPpXVGXqVhgs352q6jOdI608Qg 必要点:1.需要有东西可以说。 2.逻辑性思考 3.读更多的文章,然后模仿。 4.在写之前需要对 ...
分类:
其他好文 时间:
2016-10-19 14:02:16
阅读次数:
131