This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def localProperties = new Properties() | |
| def localPropertiesFile = rootProject.file('local.properties') | |
| if (localPropertiesFile.exists()) { | |
| localPropertiesFile.withReader('UTF-8') { reader -> | |
| localProperties.load(reader) | |
| } | |
| } | |
| def flutterRoot = localProperties.getProperty('flutter.sdk') | |
| if (flutterRoot == null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //正数 客户端=警告,客户端展示错误信息但不重试请求、 负数 客户端=错误,客户端重试 | |
| //系统和公共错误 | |
| define('ERROR_PARAMETER', -1001); //参数错误 | |
| define('DB_EXEC_ERROR', -1002); //数据库执行失败 | |
| define('ERROR_APP_VERSION', -1003); //版本与服务器不一致 | |
| define('SERVER_MAINTENANCE', -1004); //服务器维护中 | |
| define('REDIS_KEY_NOT_IDENTIFY', -1005); //未定义的redis key | |
| define('SOCKET_TOKEN_WRONG', -1006); //错误的webSocket访问token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var engine_js = { | |
| "ErrorCode.-128": "Internal engine error", | |
| "ErrorCode.-1": "Unknown error", | |
| "ErrorCode.0": "Unknown error", | |
| "ErrorCode.1": "Some data is not correctly specified.", | |
| "ErrorCode.2": "The resource could not be found.", | |
| "ErrorCode.3": "Resource already exists.", | |
| "ErrorCode.4": "Invalid path", | |
| "ErrorCode.5": "Access is denied", | |
| "ErrorCode.6": "The system is out of memory.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| void main() { | |
| FutureOr<void> tryCatchLoop({ | |
| @required FutureOr<void> Function() code, | |
| @required FutureOr<void> Function(dynamic error) onError, | |
| Duration duration = const Duration(milliseconds: 200), int limitTimes = 5 | |
| }) async { | |
| int count = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "firestore": { | |
| "rules": "firestore.rules", | |
| "indexes": "firestore.indexes.json" | |
| }, | |
| "emulators": { | |
| "firestore": { | |
| "port": 8080 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install dependencies only when needed | |
| FROM node:18-alpine3.15 AS deps | |
| # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
| RUN apk add --no-cache libc6-compat | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile | |
| # Build the app with cache dependencies | |
| FROM node:18-alpine3.15 AS builder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @IsString() | |
| @MinLength(6) | |
| @MaxLength(50) | |
| @Matches( | |
| /(?:(?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, { | |
| message: 'The password must have a Uppercase, lowercase letter and a number' | |
| }) | |
| password: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createStore } from 'vuex'; | |
| // My custom modules | |
| import exampleModule from './module-template'; | |
| import { ExampleStateInterface } from './module-template/state'; | |
| export interface StateInterface { | |
| // Define your own store structure, using submodules if needed | |
| // example: ExampleStateInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install dependencies only when needed | |
| FROM node:18-alpine3.15 AS deps | |
| # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
| RUN apk add --no-cache libc6-compat | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <span>Loading...</span> | |
| <!-- https://codepen.io/nikhil8krishnan/pen/rVoXJa --> | |
| <!-- Loader 6 --> | |
| <svg version="1.1" | |
| width="50" | |
| heigth="50" | |
| id="L6" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |
| viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"> |