Skip to content

Instantly share code, notes, and snippets.

View d9k's full-sized avatar
🌱

Dmitry d9k

🌱
View GitHub Profile
#!/usr/bin/env node
'use strict';
// Local-only session dumper:
// - scans ~/.claude/projects
// - selects top-level sessions between --from and --to (by first event timestamp)
// - writes one compact .txt per session under: <out>/<YYYY-MM-DD>/<sessionId>.txt
// - merges session subagents (<sessionId>/subagents/**/*.jsonl) into the same file
const fs = require('fs');
@ncurrier
ncurrier / calibre-reader.css
Created April 17, 2024 02:11
Readability focused *forced* stylesheet for Calibre Reader.
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
/* Base styles */
body {
font-family: 'Roboto Slab', 'Helvetica Neue', 'Segoe UI', 'Arial', sans-serif !important;
font-size: 1rem !important;
line-height: 1.6 !important;
color: #333333 !important;
@tito
tito / refactor.py
Created March 8, 2023 16:51
Using OpenAI/ChatGPT as refactoring tool
"""
Refactoring tool using ChatGPT from Vue 2 to Vue 3
$ export OPENAPI_APIKEY=sk.........
$ python refactor.py MyView.vue
"""
import os
import re
import sys
@mujsdev
mujsdev / Button.tsx
Created December 11, 2022 06:45
Button.tsx for Storybook
import React from "react";
export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
color: "black" | "white";
size?: "sm";
hasBorder?: boolean;
disabled?: boolean;
isLoading?: boolean;
}

Phaser 3 Cheatsheet

Originally inspired by woubuc/phaser-cheatsheet.md, this version has been almost completely rewritten and expanded with new notes and insights to better support everyone learning and using Phaser 3.

Starting a new game

All config is optional, but width, height and scene are recommended to add.

let config = {
@OliverBalfour
OliverBalfour / README.md
Last active April 20, 2026 05:51
Obsidian custom checkbox snippet

Custom checkboxes for Obsidian! It's like deathau's snippet except updated to work really well in Live Preview mode in Obsidian 1.0.

Simply edit the x inside checkboxes to >, ?, etc. to see styling like below!

Editing Live Preview Viewing
image image image

Installation:

  • Download the checkbox.css file on this page
@ozbillwang
ozbillwang / Git_Behind_Proxy.md
Last active October 17, 2025 22:34
Configure Git to use a proxy (https or SSH+GIT)
@gingerBill
gingerBill / odin-checklist.txt
Created February 11, 2019 12:08
Odin Checklist
Programming Language Checklist
by Colin McMillen, Jason Reed, and Elly Jones.
Odin language
[x] - yes
[~] - maybe
[?] - unknown
[text] specific answer
// ==UserScript==
// @name VKDownloadMedia
// @description Скачать фото/аудио/видео-файлы с соц. сети ВКонтакте.
// @namespace https://github.com/KJ86/VKDownloadMedia
// @version 5.5
// @date 2018-04-10
// @author KJ86
// @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSIjODI4YTk5IiBkPSJtIDEwLDYgaCA0IHYgNiBoIDMgbCAtNSw2IC01LC02IGggMyB6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvc3ZnPg==
// @homepage https://greasyfork.org/ru/scripts/7385-vkdownloadmedia
// @downloadURL https://greasyfork.org/scripts/7385-vkdownloadmedia/code/VKDownloadMedia.user.js