摘要: Linux下gcc g++ make cmake 联系和区别 C/C++程序从编写到可执行一般经历这几个阶段 编写源代码 编译器编译代码生成目标文件,如.o文件 链接器链接目标文件和其他目标文件/库文件,生成可执行文件,如.exe Linux平台下, 文件一般是通过编译,但还未链接的目标文件。 文件 阅读全文
posted @ 2017-08-03 21:38 just_yang 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: CentOs 7.0云服务器部署Python Flask 使用: Python 2.7 Flask nginx gunicorn index.py 启动gunicorn: 访问:`:8000` 阅读全文
posted @ 2017-08-03 21:37 just_yang 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 在非UI线程使用 进行线程通信时,一般都需要进行3个步骤: 创建Looper 创建 启动消息循环 通过这3步,基本就建立好了 Android 的多线程消息通信机制: Handler MessageQueue Looper Message 这几者可谓是你中有我,我中有你的存在。通过 Handler 发 阅读全文
posted @ 2017-08-03 21:35 just_yang 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 1.Java实现 循环式 2.Golang实现 go package main import ( "fmt" ) func main() { a := []int{1, 3, 4, 5, 6} key := 7 i := BinarySearch(a, 0, len(a) 1, key) fmt.P 阅读全文
posted @ 2017-08-03 21:29 just_yang 阅读(519) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 16.04 Go环境搭建 Go环境+Sublime配置 1. 安装Go 下载地址 "https://golang.org/dl/" (需要翻下) 下载到类似 的安装文件之后 1. 执行 2. 添加环境变量 3. 选择一个位置放go的项目(一般就 ) 4. 继续添加环境变量 GOROOT 阅读全文
posted @ 2017-05-28 23:23 just_yang 阅读(987) 评论(0) 推荐(0) 编辑
摘要: Android自定义日历控件(继承系统控件实现) 主要步骤 1. 编写布局 2. 继承LinearLayout设置子控件 3. 设置数据 4. 继承TextView实现有圆圈背景的TextView 5. 添加Attribute 6. 添加长按事件 1.编写布局 2.继承LinearLayout设置子 阅读全文
posted @ 2017-05-28 23:22 just_yang 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 二分查找 循环式 阅读全文
posted @ 2017-05-27 18:40 just_yang 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 摘自 "https://github.com/jwasham/coding interview university" 目录 "日常计划" "必备知识" "算法复杂度 / Big O / 渐进分析法" "数据结构" "数组(Arrays)" "链表(Linked Lists)" "堆栈(Stack) 阅读全文
posted @ 2017-05-26 13:28 just_yang 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 使用Dribble提供的Api获取上面的设计分享 使用了Material Design、SceneTransitionAnimation 使用了Volley Gson 1. 申请Dribble开发者应用 "https://dribbble.com/account/applications/new" 阅读全文
posted @ 2017-05-25 21:48 just_yang 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 浮动按钮的弹出菜单动画 将几个按钮重叠摆放,使用 更新按钮的坐标实现。 布局 控制 阅读全文
posted @ 2017-05-24 13:24 just_yang 阅读(2174) 评论(0) 推荐(0) 编辑