Flutter 安装配置

安装 下载SDK: Windows SDK:Stable 1.17.3 macOS SDK:Stable 1.17.3 Linux SDK:Stable 1.17.3 其它版本列表:SDK 版本列表[2] 将文件解压到目标路径, 比如: cd ~/flutter unzip ~/Downloads/flutter_macos_1.17.3-stable.zip 也可以从Github上获取源代码: git clone https://github.com/flutter/flutter.git 配置 flutter 的 PATH 环境变量: export PATH="$PATH:~/flutter/flutter/bin" ~/flutter/flutter/bin 需要替换成你设置的目录。 如果bash 使用的是 zsh,需要把这行代码写入到 ~/.zsh_rc 文件,如果是bash,则需要写入 ~/.bash_profile ,文件更新后需要执行 source ~/.zsh_rc flutter 命令行工具会下载不同平台的开发二进制文件,如果需要一个封闭式的构建环境,或在网络可用性不稳定的情况下使用等情况,你可能需要通过下面这个命令预先下载 iOS 和 Android 的开发二进制文件: flutter precache flutter doctor 命令 运行flutter doctor命令可以查看当前环境是否需要安装其他的依赖,输出结果如下: ➜ ~ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.5 19F96, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Android Studio (version 4.0) [!] IntelliJ IDEA Ultimate Edition (version 2020.1.1) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] VS Code (version 1.45.1) [✓] Connected device (1 available) ! Doctor found issues in 1 category. 从上述结果可以看出,IntelliJ IDEA Ultimate Edition 没有安装flutter plugin 和 dart plugin 没有安装。 ...

2020-06-06 · 3 min · 534 words

Facilitating Technical Writing Courses

Google 技术写作课程搬运,原文地址:https://developers.google.com/tech-writing/overview?hl=zh-cn Facilitating Technical Writing Courses This section provides resources for anyone facilitating or considering facilitating technical writing courses. The following table contains links to all relevant material for facilitators: for facilitators for students Course Facilitator’s Guide slide deck log pre-class in-class Technical Writing One Facilitator’s Guide[1] slide deck[2] log[3] pre-class[4] in-class[5] Technical Writing Two Facilitator’s Guide[6] slide deck[7] log[8] pre-class[9] in-class[10] If you’d like to facilitate a particular course, please start by reading the course’s Facilitator’s Guide. ...

2020-03-01 · 13 min · 2750 words

Technical Writing Courses

Google 技术写作课程搬运,原文地址:https://developers.google.com/tech-writing/overview?hl=zh-cn Technical Writing Courses Every engineer is also a writer. This collection of courses and learning resources aims to improve your technical documentation. Learn how to plan and author technical documents. You can also learn about the role of technical writers at Google. Overview of technical writing courses The following table summarizes the technical writing courses: Take this course… Title Focus Pre-Class In-Class first Technical Writing One the critical basics of technical writing 2 hours 2 to 2.5 hours second Technical Writing Two intermediate topics in technical writing 1 hour 2 to 2.5 hours The pre-class components introduce topics; the in-class components help students integrate those topics. That said, the pre-class lessons on their own still provide a valuable educational experience. ...

2020-03-01 · 93 min · 19657 words

如何通过MD5反查身份证号?

题目:设计一个身份证查询系统,将身份证号md5 之后存储,输入md5值查询对应的身份证号。 要求:成本低,查询速度快 设计思路: 将所有可能的身份证号做一个简单的统计计算数据量 根据数据量选择存储方式 查询 身份证生成规则: 身份号码是特征组合码,由前十七位数字本体码和最后一位数字校验码组成。排列顺序从左至右依次为六位数字地址码,八位数字出生日期码,三位数字顺序码和一位数字校验码。 地址码: 表示编码对象常住户口所在县(市、旗、区)的行政区划代码。对于新生儿,该地址码为户口登记地行政区划代码。需要没说明的是,随着行政区划的调整,同一个地方进行户口登记的可能存在地址码不一致的情况。行政区划代码按GB/T2260的规定执行。 出生日期码:表示编码对象出生的年、月、日,年、月、日代码之间不用分隔符,格式为YYYYMMDD,如19880328。按GB/T 7408的规定执行。原15位身份证号码中出生日期码还有对百岁老人特定的标识,其中999、998、997、996分配给百岁老人。 顺序码: 表示在同一地址码所标识的区域范围内,对同年、同月、同日出生的人编定的顺序号,顺序码的奇数分配给男性,偶数分配给女性。 校验码: 根据本体码,通过采用ISO 7064:1983,MOD 11-2校验码系统计算出校验码。算法可参考下文。前面有提到数字校验码,我们知道校验码也有X的,实质上为罗马字符X,相当于10. 校验码算法 将本体码各位数字乘以对应加权因子并求和,除以11得到余数,根据余数通过校验码对照表查得校验码。 加权因子表: +-----------------------------------------------------------+ |位置序号|1 |2 |3 |4 |5 |6 |7 |8 |9 |10|11|12|13|14|15|16|17| +-----------------------------------------------------------+ |加权因子|7 |9 |10|5 |8 |4 |2 |1 |6 |3 |7 |9 |10|5 |8 |4 |2 | +-----------------------------------------------------------+ 校验码表: +----------------------------------------------------+ | 余数 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | +----------------------------------------------------+ | 校验码| 1 | 0 | X | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | +----------------------------------------------------+ 算法举例: 本体码为11010519491231002 ...

2019-08-18 · 1 min · 199 words

每周分享第4期

Docker 终端UI: https://github.com/jesseduffield/lazydocker 宝数据库内核月报:http://mysql.taobao.org/monthly/ 比较深入的数据库源码分析 手机号码归属地查询:https://apis-mp.gusibi.mobi/mobile/location?mobile=18512345678 使用serverless部署,无需服务器。源码地址:https://github.com/gusibi/oneplus/tree/master/mobile-attribution 手绘风格CSS:https://www.getpapercss.com/ Image-to-Image Demo: https://affinelayer.com/pixsrv/ 学霸用左边,学渣用右边:https://www.plainlanguage.gov/guidelines/words/use-simple-words-phrases/ 美国政府的一个网页,有几百条单词建议,指导你怎么写出简单的文章,不要用复杂的单词。 比如说,“a和b可以同时使用,也可以单独使用”,不要用 a and/or b,而要用 a or b or both。 微软上线了一套 Python 教程《Develop with Python on Windows》 微软上线了一套 Python 教程《Develop with Python on Windows》。 百度网盘下载器:https://github.com/b3log/baidu-netdisk-downloaderx 一款图形界面的百度网盘不限速下载器,支持 Windows、Linux 和 Mac。 参考链接 [1] 《Develop with Python on Windows》: https://docs.microsoft.com/zh-cn/windows/python/ 最后,感谢女朋友支持和包容,比❤️ 也可以在公号输入以下关键字获取历史文章:公号&小程序 | 设计模式 | 并发&协程 内推时间

2019-08-04 · 1 min · 56 words

每周分享第3期-史上最全的编程学习资料合集

【资料】史上最全的编程学习资料合集(持续更新) 【资料】一周 GitHub 开源项目推荐:阿里、腾讯、陌陌、bilibili…… 【资料】常用的 Go 框架、库和软件中文收录大全 【教程】高性能 Go 代码工坊(英文) 【文章】我用了10年 从深圳流水线厂妹做到纽约高薪程序员 【文章】2009年最热门的 iPhone 应用程序(英文) 苹果公司的应用商店即将满十周年,本文回顾了2009年最热门的付费应用和免费应用 【语言】v语言-语法综合了python和go 【工具】weixin python sdk 支持小程序云开发 【工具】网站收录了估值达到 10 亿美元的创业公司,实时更新 【工具】简洁的 Mac 图床客户端 uPic References [1] 【资料】史上最全的编程学习资料合集(持续更新): https://github.com/toutiaoio/weekly.manong.io [2] 【资料】常用的 Go 框架、库和软件中文收录大全: https://juejin.im/post/5d14a319e51d4577407b1d77 [3] 【教程】高性能 Go 代码工坊: https://dave.cheney.net/high-performance-go-workshop/gopherchina-2019.html [4] 【文章】2009年最热门的 iPhone 应用程序: https://www.fastcompany.com/90356079/whatever-happened-to-the-hottest-iphone-apps-of-2009 [5] 【语言】v语言-语法综合了python和go: https://github.com/vlang/v [6] 【工具】weixin python sdk 支持小程序云开发: https://github.com/gusibi/python-weixin [7] 【工具】网站收录了估值达到 10 亿美元的创业公司,实时更新: https://dujiaoshou.io/ [8] 【工具】简洁的 Mac 图床客户端 uPic: https://github.com/gee1k/uPic 最后,感谢女朋友支持和包容,比❤️ 也可以在公号输入以下关键字获取历史文章:公号&小程序 | 设计模式 | 并发&协程 内推时间

2019-06-29 · 1 min · 74 words

每周分享第2期-宇宙模拟器

1 宇宙模拟器 :http://spaceengine.org 2 APIJSON:https://github.com/APIJSON/APIJSON APIJSON是一种为API而生的 JSON网络传输协议 以及 基于这套协议实现的ORM库。 后端接口和文档自动化,前端(客户端) 定制返回JSON的数据和结构 3 【文章】小火箭对SpaceX星链计划低轨巨型星座的分析:https://mp.weixin.qq.com/s/NNmI_cqwo4ba0ViJ9O7f3Q 这篇对SpaceX 星链计划 可行性进行了详细的分析,共11575字,101图。预计阅读时间:1小时15分钟 4 微软与 Google 共同开设的量子算法课程:https://brilliant.org/courses/quantum-computing/ 通过浏览器模拟的量子计算环境,学习量子算法 5 一个VPS搜索工具: https://anothervps.com/vps/ 可怜我linode 都用不了了 6 一些有趣的网站: https://www.ctolib.com Github开源项目收集网站 http://www.nicetool.net 实用工具比较多 http://www.mvyxws.com/ 以视频方式分享医学知识的网站 https://www.tikitiki.cn 自由的音乐,能够试听并下载全网音乐 https://showmore.com/zh/ 在线录制屏幕的工具 https://weibomiaopai.com 视频下载 7 PySnooper:https://github.com/cool-RR/PySnooper python DeBug工具 8 pyecharts:https://github.com/pyecharts/pyecharts Echarts 是一个由百度开源的数据可视化,pycharts 是Echarts 的python版。 9 LeetCodeAnimation:https://github.com/MisterBooo/LeetCodeAnimation 用动画的形式呈现解LeetCode题目的思路 10 ColorUI:https://www.color-ui.com/ 鲜亮的高饱和色彩,专注视觉的小程序组件库 iPhone X怎么强制关机? iPhone X强制关机有三步: 按下音量+键然后松开; 按下音量-键然后松开; 之后按住侧边按钮(即电源键)直到iPhone X黑屏。 升级了iOS13,打电话的时候就停留在了通话界面,再也退不出去了。。只能用强制关机的方式。 才知道是这么个方式 最后,感谢女朋友支持和包容,比❤️ 也可以在公号输入以下关键字获取历史文章:公号&小程序 | 设计模式 | 并发&协程 ...

2019-06-22 · 1 min · 73 words

每周分享第1期-常用表情包收录

每周分享,分享看到的一些有意思的文章和项目 1 中国表情包大集合 https://zhaoolee.github.io/ChineseBQB/ 表情包目录(共收录2298张表情包)Emoticon package directory (commonly included 2298 emoticon pack) 2 谷歌产品替代品 一批谷歌产品的替代方案 https://nomoregoogle.com/ 3 Redis作者:开源维护者的挣扎和无奈 英文作者是著名开源项目 Redis 的开发者 antirez。截至 2019-06-04 为止,Redis 项目在 GitHub 将近有 37,000 Star,Fork 数达 14000。 https://mp.weixin.qq.com/s/6C7-4Fp46rxfn0J34ebKyg 4 一个分享 GitHub 上 有趣、入门级的开源项目网站 https://hellogithub.com 5 Saber - 新一代静态网站生成系统 https://saber.land 6 star-history: 帮助用户查看 github 项目 star 数目的历史 star-history 帮助用户查看 github 项目 star 数目的历史, 判断项目发展情况,项目地址:https://github.com/timqian/star-history 7 一个分类收集 GitHub 开源项目的网站,并对项目的热度和活跃度进行分析 项目地址:https://www.ctolib.com/ 8 git 提交信息规范检测工具 git-commit-msg-linter 项目地址:https://www.npmjs.com/package/git-commit-msg-linter 9 编码一时爽,重写火葬场?这些公司都重写了软件,结局却不同。 生存,还是死亡,这是一个问题。重写,还是不重写,这是导致生存或死亡的另一个问题。 https://mp.weixin.qq.com/s/SqxPoIDPuvKlrlqZmubpXA ...

2019-06-07 · 1 min · 78 words