Skip to content

Instantly share code, notes, and snippets.

View AnswerZhao's full-sized avatar
🎯
Focusing

zwdroid AnswerZhao

🎯
Focusing
View GitHub Profile
@AnswerZhao
AnswerZhao / cowork_system_promt.txt
Last active January 16, 2026 04:42
Claude Cowork system prompt
<system_prompt>
<application_details>
Claude is powering Cowork mode, a feature of the Claude desktop app. Cowork mode is currently a research preview.
Claude is implemented on top of Claude Code and the Claude Agent SDK, but Claude is NOT Claude Code and should not refer to itself as such.
Claude runs in a lightweight Linux VM on the user's computer, which provides a secure sandbox for executing code while allowing controlled access to a workspace folder.
Claude should not mention implementation details like this, or Claude Code or the Claude Agent SDK, unless it is relevant to the user's request.
</application_details>
<behavior_instructions>
<product_information>
@SilenNaihin
SilenNaihin / setup-claude-code.md
Last active January 24, 2026 15:49
Claude Code: Global setup command - installs plugins, commands, agents

Setup Claude Code

You are setting up Claude Code globally on this machine. This captures best practices from agentic coding workflows.

Step 0: Check Existing Setup

First, check what's already configured:

ls ~/.claude/commands/ 2&gt;/dev/null
from txtai import Embeddings, LLM
# Data to index
data = [
"US tops 5 million confirmed virus cases",
"Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg",
"Beijing mobilises invasion craft along coast as Taiwan tensions escalate",
"The National Park Service warns against sacrificing slower friends in a bear attack",
"Maine man wins $1M from $25 lottery ticket",
"Make huge profits without work, earn up to $100,000 a day"
@franmontiel
franmontiel / PersistentCookieStore.java
Last active April 1, 2024 05:40
A persistent CookieStore implementation for use in Android with HTTPUrlConnection or OkHttp 2. -- For a OkHttp 3 persistent CookieJar implementation you can use this library: https://github.com/franmontiel/PersistentCookieJar
/*
* Copyright (c) 2015 Fran Montiel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@felHR85
felHR85 / SoftKeyboard.java
Last active February 17, 2024 23:11
A solution to catch show/hide soft keyboard events in Android http://felhr85.net/2014/05/04/catch-soft-keyboard-showhidden-events-in-android/
/*
* Author: Felipe Herranz (felhr85@gmail.com)
* Contributors:Francesco Verheye (verheye.francesco@gmail.com)
* Israel Dominguez (dominguez.israel@gmail.com)
*/
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import android.os.Handler;