| description |
|---|
Critical analysis of problems with root cause identification before proposing solutions |
Thoroughly analyze the current problem before proposing any solutions. Focus on identifying root causes and asking clarifying questions.
| description |
|---|
Critical analysis of problems with root cause identification before proposing solutions |
Thoroughly analyze the current problem before proposing any solutions. Focus on identifying root causes and asking clarifying questions.
Claude Code has introduced a new feature called hooks which lets you run a script during different events.
One of the event is Stop, which runs when the main Claude Code agent has finished responding.
We can make the use of this hook to play a notification sound.
You can download this notification sound (downloads automatically) from mixkit
Paste this JSON into .claude/settings.json, either project or global .claude folder.
Make sure to update the path of the script.
| let totalSize = 0; | |
| for (let key in localStorage) { | |
| if (localStorage.hasOwnProperty(key)) { | |
| let keySize = new Blob([key]).size; // Size of the key | |
| let valueSize = new Blob([localStorage[key]]).size; // Size of the value | |
| totalSize += keySize + valueSize; | |
| } | |
| } |
| import AudioRecorderPlayer, { PlayBackType } from "react-native-audio-recorder-player"; | |
| import { isIOS } from "utils/utils"; | |
| type Callback = (args: { data?: PlayBackType; status: AudioStatus }) => void; | |
| type Path = string | undefined; | |
| export enum AudioStatus { | |
| PAUSED = "PAUSED", | |
| PLAYING = "PLAYING", | |
| RESUMED = "RESUMED", |
| /* -------------------------------------------------------------------------- */ | |
| /* More here; */ | |
| /* -------------------------------------------------------------------------- */ | |
| // https://gist.github.com/rphlmr/0d1722a794ed5a16da0fdf6652902b15 | |
| export function distinctOn<Column extends AnyColumn>(column: Column) { | |
| return sql<Column["_"]["data"]>`distinct on (${column}) ${column}`; | |
| } | |
| export function jsonBuildObject<T extends SelectedFields>(shape: T) { |
| import React, {FC} from 'react'; | |
| import {Dimensions, StyleSheet, View} from 'react-native'; | |
| import { | |
| Gesture, | |
| GestureDetector, | |
| GestureHandlerRootView, | |
| } from 'react-native-gesture-handler'; | |
| import Animated, { | |
| Easing, | |
| interpolate, |
| import React, { useRef, useState } from "react"; | |
| import { | |
| ScrollView, | |
| PanGestureHandler, | |
| PanGestureHandlerGestureEvent, | |
| } from "react-native-gesture-handler"; | |
| import Animated, { | |
| useAnimatedGestureHandler, | |
| useAnimatedStyle, | |
| useSharedValue, |
| import AsyncStorage from '@react-native-async-storage/async-storage'; | |
| import create from 'zustand'; | |
| import { persist } from 'zustand/middleware'; | |
| export const useSomthingStore = create<TSomthingStore>( | |
| persist( | |
| (set, get) => ({ | |
| isTrue: false, | |
| _hasHydrated: false, | |
| setHasHydrated: state => { |
| #import "AppDelegate.h" | |
| #import "Swift-Header.h" | |
| @implementation AppDelegate | |
| - (BOOL)application:(UIApplication *)application | |
| didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| LocalNetworkPrivacy *local = [LocalNetworkPrivacy new]; |
| import { writeFileSync } from 'fs' | |
| import { map } from 'lodash' | |
| import en from './src/localize/en' | |
| const lines = map(en, (text, key) => { | |
| return `"${key}","${text}"` | |
| }) | |
| writeFileSync('english.csv', lines.join('\n')) |