MySQL+Koa从0开始
Mac + Google
mac本地环境搭建:https://www.jianshu.com/p/fd3aae701db9
忘记密码:http://www.jb51.net/article/105668.htm
命名规范:https://github.com/zhblue/crud
数据库客户端:https://www.navicat.com/en/products
数据库字符集的选择:https://www.zhihu.com/question/38815156
字符类型的定义:http://www.runoob.com/mysql/mysql-data-types.html
使用koa2:http://koajs.com/
使用:koa-generator
修改项目:https://zhuanlan.zhihu.com/p/26216336
发现一个教程:https://chenshenhai.github.io/koa2-note/note/mysql/info.html
koa2 文件上传:koa-multer
压力测试:https://github.com/mcollina ...
Crack latest Sketch app easy without crack
优酷地址: http://v.youku.com/v_show/id_XMzQwNjU2Njk4OA==.html
youtube地址:https://www.youtube.com/watch?v=lqUpvkpiSDI
gitlab安装
gitlab-ce
external-url
$ gitlab-ctl reconfigure
$ gitlab-ctl stop
$ gitlab-ctl start
$ sudo gitlab-ctl stop unicorn
$ sudo gitlab-ctl stop sidekiq
解决Cannot find module '../lib/completion'
123456// package.json{ "scripts": { "build": "gulp build" }}
错误:
1234567891011Error: Cannot find module '../lib/completion' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/staticDisk/repository/jenkins/saas/node_modules/.bin/gulp:13:18) at Module._co ...
element-ui + element-theme + vue-cli + postcss-px2rem
element-ui: 1.4.2
vue-cli: 2.8.2
123456789101112// utils.jexports.cssLoaders = function (options) { ... return { css: generateLoaders('postcss', { plugins() { return [require('postcss-px2rem')({ remUnit: 75 })] } }), ... }}
123456// vue-loader.conf.jsmodule.exports = { ... postcss: [require('postcss-px2rem')({ remUnit: 75 })], ...
Swift方法声明可选参数
声明
1str2:String? = nil
如:
1234func test(str:String, str2:String? = nil){}test("哈哈");test("哈哈", str2: "哈哈哈");
Mac自带Python升级及pip安装
##IDLE下载
官网地址:https://www.python.org/downloads/mac-osx/
##升级
步骤参考:更新mac自带的python2.7到3.4版本
需要注意在执行链接命令时会提示目录已存在,此时要先删除原来的目录文件再进行链接即可
##pip安装
参考:https://pip.pypa.io/en/latest/installing.html
get-pip
放在本地目录
终端cd至该目录
执行python get-pip.py
pip更新:pip install -U pip
PS. Python2.7.9以上默认是带有pip的
查看Swift代码执行时间
123456789func measure(title: String!, call: () -> Void) { let startTime = CACurrentMediaTime() call() let endTime = CACurrentMediaTime() if let title = title { print("\(title): ") } print("Time - \(endTime - startTime)") }
123456789101112func doSomeWork() { measure("Array") { var ar = [String]() for i in 0...10000 { ar.append("New elem \(i)") } } measure("Image") ...
Swift常用类库
awesome-swift这里收集了一些常用的swift类库
https://github.com/matteocrippa/awesome-swift
awesome-ios当然还有OC的
https://github.com/vsouza/awesome-ios
Reflecthttps://github.com/CharlinFeng/Reflect
JSON <=> Model
SuperRecordhttps://github.com/michaelarmstrong/SuperRecord
处理CoreData使用
IQKeyboardManagerhttps://github.com/hackiftekhar/IQKeyboardManager
处理界面被键盘遮挡
SwiftyJSONhttps://github.com/SwiftyJSON/SwiftyJSON
SwiftFormshttps://github.com/ortuman/SwiftForms
快速创建表单(tableView)
HanekeSwifthttps://github. ...
Nexus7跳过WLAN
连接WIFI的时候点开高级设置,把IP和端口填进去。
IP代理:http://www.xici.net.co
点击更多,选择双绿高匿的IP
如果不行就换个IP试试
教程是贴吧看到的: http://tieba.baidu.com/p/3548595778