Skip to content

Instantly share code, notes, and snippets.

View gejiaheng's full-sized avatar

Jiaheng gejiaheng

  • United States
View GitHub Profile
@iammert
iammert / NewIntentProcessor.java
Created May 9, 2017 08:24
NewIntentProcessor
public class NewIntentProcessor extends AbstractProcessor {
private static final String METHOD_PREFIX = "start";
private static final ClassName classIntent = ClassName.get("android.content", "Intent");
private static final ClassName classContext = ClassName.get("android.content", "Context");
private Filer filer;
private Messager messager;
private Elements elements;
private Map<String, String> activitiesWithPackage;
@NonNull
@CheckReturnValue
public static Maybe<Boolean> confirm(
@NonNull final AlertDialog.Builder builder,
@StringRes final int positiveTitleRes,
@StringRes final int negativeTitleRes
) {
return Maybe.create(new MaybeOnSubscribe<Boolean>() {
@Override
public void subscribe(@NonNull final MaybeEmitter<Boolean> emitter) throws Exception {
@bradtraversy
bradtraversy / django_cheat_sheet.md
Last active April 6, 2026 13:51
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active May 29, 2026 06:22
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@emschwartz
emschwartz / README.md
Last active May 31, 2026 20:31
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.