Skip to content

Instantly share code, notes, and snippets.

View SongFuZhen's full-sized avatar
🛋️
Good Good Study, Day Day Up

宋福祯 SongFuZhen

🛋️
Good Good Study, Day Day Up
View GitHub Profile
@SongFuZhen
SongFuZhen / hello_scoop.ps1
Last active April 12, 2021 02:00
for scoop test code
$name = split-path (whoami) -leaf
"Hi, $name! Welcome to Scoop."
@SongFuZhen
SongFuZhen / Android Error.md
Last active October 26, 2020 09:51
Google Flutter Leaning Flutter的一些配置

Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

Android 运行的时候会报错

解决方案

androidapp层的build.gradle里面添加如下内容:

android {
  defaultConfig {
 multiDexEnabled true
# App Widget Tree
App
└── ContactsProvider
└── MaterialApp
└── {Routes}
├── HomeScreen
│ └── Scaffold
│ ├── AppBar
│ ├── ListView

允许位置来源程序安装开启

sudo spctl --master-disable

方案二

查询地址: http://github.com.ipaddress.com/

查询地址如下:

52.216.115.19 github-cloud.s3.amazonaws.com
140.82.114.4 github.com
199.232.5.194 github.global.ssl.fastly.net

TextField 键盘遮挡处理

在界面布局中使用SingleChildScrollView

Scaffold(
    body: SingleChildScrollView(...)
)

Dart编码规范

样式规范

类、枚举、类型定义和泛型,都需要大写开头的驼峰命名法

class Login 
typedef Predicate<T> = bool Function(T value);

class Foo() {

Node Server 热更新方式

使用nodemon实现node server 的热更新

https://github.com/remy/nodemon/

Step1 Install nodemon

推荐使用全局安装

@SongFuZhen
SongFuZhen / hello world.md
Last active August 12, 2019 08:55
Express-GraphQL搭建一个API服务器

Express + GraphQL 入门

Step1: 初始化项目

mkdir gql-server & cd gql-server

npm init

Step2: 安装依赖

Ubuntu 更改apt-get的源

https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

选择对应系统版本之后, 执行以下操作

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse