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 / .claude--skills--hook-development--SKILL.md
Created January 9, 2026 06:58 — forked from alexfazio/.claude--skills--hook-development--SKILL.md
Claude Code Hook Development Skill - Install to .claude/skills/hook-development/

name: Hook Development description: >- This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "implement agent hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", "frontmatter hooks", "scoped hooks", "once: true", or mentions hook events (PreToolUse, PostToolUse, Stop,

@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%;