Skip to content

Instantly share code, notes, and snippets.

View hidoos's full-sized avatar
🏠
Working from home

hong lan hidoos

🏠
Working from home
  • GuiYang, China
View GitHub Profile
@hidoos
hidoos / SketchSystems.spec
Last active December 8, 2023 02:05
信息管理流程
信息管理流程
待提交
提交 -> 审核中
审核中
审批人拒绝 -> 驳回
审批人通过 -> 待发布
驳回
自动 -> 待提交
待发布
@hidoos
hidoos / SketchSystems.spec
Created December 8, 2023 02:05
信息管理流程
信息管理流程
待提交*
提交 -> 审核中
审核中
审批人拒绝 -> 驳回
审批人通过 -> 待发布
驳回
自动 -> 待提交
待发布
Aspiration App Logic
open app from home screen -> Has User Previously Logged In?
Logged Out Flow
Has User Previously Logged In?
yes -> Is Device Authentication Set Up?
no -> App Welcome Screen
App Welcome Screen
tap login -> Is Device Authentication Set Up?
const addCounter = (list) => {
return [...list, 0];
};
const removeCounter = (list, index) => {\
return [
...list.slice(0, index),
...list.slice(index + 1)
];
};
@hidoos
hidoos / formArray
Last active September 17, 2021 03:04
Angular FormArray
```ts
```
// errors-handler.ts
import { ErrorHandler, Injectable} from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
@Injectable()
export class ErrorsHandler implements ErrorHandler {
handleError(error: Error | HttpErrorResponse) {
if (error instanceof HttpErrorResponse) {
// Server or connection error happened
if (!navigator.onLine) {
// Handle offline error
@hidoos
hidoos / SassMeister-input.scss
Created April 21, 2015 09:11
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// example1
$color:red;
.button{
$color:blue;
color:$color;
@hidoos
hidoos / dabblet.css
Created November 9, 2014 11:20
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@hidoos
hidoos / dabblet.css
Created May 28, 2014 07:20
代码片断
fieldset{
border:none;
border-top:1px solid #ccc;
padding:0;
}
fieldset>legend{
font-size:12px;
line-height:24px;
margin:0;
padding-right:20px;