异步,永不止步

2020年4月9日

理解类加载的双亲委派模型

摘要: 类加载器 启动类加载器 BootstrapClassLoader 扩展类加载器 ExtensionClassLoader 系统类加载器(应用程序类加载器) AppClassLoader Java API doc 表述 The Java platform uses a delegation model 阅读全文

posted @ 2020-04-09 10:18 gaopq 阅读(233) 评论(0) 推荐(0) 编辑

2020年4月8日

Java switch实现原理透彻理解

摘要: Java 官方文档描述: A switch works with the byte, short, char, and int primitive data types. It also works with enumerated types, the String class, and a few 阅读全文

posted @ 2020-04-08 16:54 gaopq 阅读(1270) 评论(1) 推荐(3) 编辑

2017年4月28日

构建简单原型展示系统,使用git钩子(hooks)自动同步仓库

摘要: 技术栈 Tech |Usage | git |构建裸仓库用于存放钩子/文件仓库 shell |用于更新项目原型版本及提供给不熟悉git操作的产品同事更新原型 html |用于根据js配置文件展示项目原型及版本 js |用于存放所有项目的版本配置, 供html及shell脚本解析调用 nginx |H 阅读全文

posted @ 2017-04-28 15:45 gaopq 阅读(331) 评论(0) 推荐(0) 编辑

2016年6月16日

【windows 下安装 mysql-server 无法登录问题解决】

摘要: 无感的首行 新版 mysql-server 5.7 安装后发现无法使用 mysql -uroot (-p) 来登录,查了下文档发现新版在安装时会初始化一个密码放在启动的错误文件里, 错误文件的路径 %mysql-server-dir%data\DESKTOP-JC062LS.err , 如我的路径是 阅读全文

posted @ 2016-06-16 16:20 gaopq 阅读(871) 评论(0) 推荐(0) 编辑

2016年5月30日

【Leetcode-Mysql】Trips and Users

摘要: 思路不总结了,看过题目自己尝试过之后,看下方代码应该能理解的 阅读全文

posted @ 2016-05-30 17:20 gaopq 阅读(184) 评论(0) 推荐(0) 编辑

2016年5月14日

【Docker 在 windows 10 / windows 8 下安装】

摘要: 步骤: 1. 下载: a、https://github.com/boot2docker/windows-installer/releases 下载一个 windows 客户端; 安装时建议勾选:Boot2Docker management script and ISO 、MSYS-git UNIX 阅读全文

posted @ 2016-05-14 12:11 gaopq 阅读(2642) 评论(4) 推荐(2) 编辑

2016年3月4日

【redis】redis 在 windows 下安装使用

摘要: 1、安装 windows 下 redis 可用客户端 : http://redisdesktop.com/download ; 或在 github 上下载 redis zip 包,解压包到某个目录并在 cmd 下使用 set path = %path%;redisDir; 即可使用; linux 下 阅读全文

posted @ 2016-03-04 13:56 gaopq 阅读(178) 评论(0) 推荐(0) 编辑

2016年3月3日

【python】GTK 例子

摘要: # encoding:utf-8 # box_multi_button_data.py import pygtk, gtk def destroy(widget, data=None): gtk.main_quit() def button1(widget, data=None): print 'W 阅读全文

posted @ 2016-03-03 10:34 gaopq 阅读(1672) 评论(0) 推荐(0) 编辑

【python】将一个正整数分解质因数

摘要: def reduceNum(n): '''题目:将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5''' print '{} = '.format(n), if not isinstance(n, int) or n <= 0 : print 'Please input a vali 阅读全文

posted @ 2016-03-03 10:07 gaopq 阅读(9481) 评论(0) 推荐(0) 编辑

2016年1月23日

【python】题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?

摘要: # encoding:utf-8 # p001_1234threeNums.py def threeNums(): '''题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?''' print None count = 0 nums = [] for index1 in 阅读全文

posted @ 2016-01-23 19:49 gaopq 阅读(10889) 评论(0) 推荐(0) 编辑

导航