One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:ui'; | |
import 'package:flutter/services.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
/// | |
/// Preferences related | |
/// | |
const String _storageKey = "MyApplication_"; |
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:ui'; | |
import 'package:flutter/services.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
/// | |
/// Preferences related | |
/// | |
const String _storageKey = "MyApplication_"; |
language: node_js | |
node_js: | |
- '6' | |
# 缓存依赖,节省持续集成时间 | |
cache: | |
directories: | |
- node_modules | |
- themes |
function deepCopy (target) { | |
if ( | |
target === null | |
|| typeof target === 'number' | |
|| typeof target === 'boolean' | |
|| typeof target === 'string' | |
|| typeof target === undefined | |
) return target | |
if (Array.isArray(target)) { |
/* | |
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js | |
*/ | |
/* | |
* ESLint 配置文件优先级: | |
* .eslintrc.js(输出一个配置对象) | |
* .eslintrc.yaml | |
* .eslintrc.yml |
{ | |
"extends": ["tslint-react"], | |
"rulesDirectory": "./node_modules/tslint-microsoft-contrib", | |
"rules": { | |
"function-name": [ | |
true, | |
{ | |
"method-regex": "^[a-z][\\w\\d]+$", | |
"private-method-regex": "^_[a-z][\\w\\d]+$", | |
"protected-method-regex": "^[_]?[a-z][\\w\\d]+$", |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
max_line_length = 100 |