$ defaults write com.apple.screencapture location <path>
$ killall SystemUIServer
- read more
docker
访问容器
docker exec -it <CONTAINER ID> /bin/bash拷贝容器文件至本地
docker cp <IMAGE>:<容器路径> <本地路径>拷贝本地文件至容器
read moredocker cp <本地文件> <IMAGE>:<容器路 …All about angularjs $formatters and $parsers
Hi folks, As a front end developers we need to deal with different data models which come from the server side. We have to format them , change them and yes! we need to validate them. Mainly JSON at these days. In most cases back end data not …
read moreMySQL+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
- 数据库字符集的选择 …
解决Cannot find module '../lib/completion'
// package.json { "scripts": { "build": "gulp build" } }错误:
read moreError: 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 …element-ui + element-theme + vue-cli + postcss-px2rem
- element-ui: 1.4.2
- vue-cli: 2.8.2
// utils.j exports.cssLoaders = function (options) { ... return { css: generateLoaders('postcss', { plugins() { return [require('postcss-px2rem')({ remUnit: 75 })] } }), ... } }read more// vue-loader.conf.js module.exports = { ... postcss: [require('postcss-px2rem')({ remUnit: 75 })], ... }Mac自带Python升级及pip安装
查看Swift代码执行时间
func measure(title: String!, call: () -> Void) { let startTime = CACurrentMediaTime() call() let endTime = CACurrentMediaTime() if let title = title { print("\(title): ") } print("Time - \(endTime - startTime)") }read morefunc doSomeWork() { measure("Array") { var ar = [String]() for i in 0...10000 { ar.append("New elem \(i)") } } measure("Image") { let url = NSURL(string: "http://lorempixel.com/1920 …Nexus7跳过WLAN
连接WIFI的时候点开高级设置,把IP和端口填进去。
点击更多,选择
双绿高匿的IP如果不行就换个IP试试
教程是贴吧看到的: http://tieba.baidu.com/p/3548595778
read more