Skip to content

Instantly share code, notes, and snippets.

@mohsenasm
mohsenasm / samsung_motion_photo_extractor.py
Created December 18, 2025 14:16
Samsung Motion Photo extractor
#!/usr/bin/env python3
"""
Samsung Motion Photo extractor
This code is the minimal version of the work in https://github.com/joemck/ExtractMotionPhotos
Usage: python3 main.py <motion_photo_file>
"""
def init_search(magic):
"""

The Unofficial 37signals/DHH Rails Style Guide

About This Document

This style guide was generated by Claude Code through deep analysis of the Fizzy codebase - 37signals' open-source project management tool.

Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.

How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not just what patterns are used, but why - inferring philosophy from implementation choices.

@zeevro
zeevro / README.md
Last active December 18, 2025 14:11
Pebble SDK installation script

Now that Pebble servers are gone, some old components in the SDK need to be patched or replaced so they can fetch what they need from Rebble.

This script downloads and installes everything needed to build projects and also run the emulator.

Was tested on Ubuntu 18.04.2 on WSL.

@davidcafor
davidcafor / TheUnofficialAppleDeveloperCurriculum.md
Created December 17, 2025 17:13
🍎 The Unofficial Apple Developer Curriculum

🍎 The Unofficial Apple Developer Curriculum

WWDC19 → WWDC25

A complete, curated roadmap for modern Apple developers.

Goal Build a deep, long-lasting understanding of Apple development: Swift → SwiftUI → Concurrency → Data → Testing → Performance → visionOS → Swift 6

Rules

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 18, 2025 14:09
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@albertms10
albertms10 / camelToKebab.ts
Last active December 18, 2025 14:08
TypeScript type to convert camel-cased strings to kebab-cased
/**
* Converts the given string from camel-case to kebab-case.
* @template T The string to convert the case.
* @see https://gist.github.com/albertms10/09f14ef7ebdc3ce0e95683c728616253
* @example
* type Kebab = CamelToKebab<'exampleVarName'>;
* // 'example-var-name'
*/
type CamelToKebab<S extends string> = S extends `${infer T}${infer U}`
? U extends Uncapitalize<U>
@p1mo
p1mo / tauri-stronghold-plugin.md
Last active December 18, 2025 14:08
Example for Tauri's stronghold plugin

example for tauri's stronghold-plugin

First go to plugin docs and add it to your project

Aragon create used: https://crates.io/crates/rust-argon2

src-tauri/main.rs

@sunmeat
sunmeat / scheme.txt
Created December 18, 2025 14:07
clean architecture
──────────────────────────────────────────────────────────────────────────────────────
Presentation Layer (PL / UI / Web)
├── Контролери (Controllers) / Razor Pages / Minimal API
├── Подання (Views / .cshtml)
├── ViewModels (моделі для представлення)
├── DTO (які приходять від користувача, наприклад, з форм)
├── Tag Helpers, View Components (перевикористовувані динамічні віджети)
├── wwwroot (CSS, JS, images)
├── Client-side validation (JS-валідація)
├── HttpContext (контекст запиту)
@crazyboycjr
crazyboycjr / 71-k380-keyboard.rules
Created May 1, 2020 13:24
running xset in udev.rules
# /etc/udev/rules.d/71-k380-keyboard.rules
ACTION=="add", KERNEL=="hidraw[0-9]*", RUN+="/usr/bin/su cjr -c \"DISPLAY=:1 XAUTHORITY=/home/cjr/.Xauthority xset r rate 200 36\""
ACTION=="add", KERNEL=="hidraw[0-9]*", RUN+="/usr/bin/su cjr -c \"DISPLAY=:1 XAUTHORITY=/home/cjr/.Xauthority setxkbmap -option 'ctrl:nocaps'\""
@UserUnknownFactor
UserUnknownFactor / Japanese SFX.md
Last active December 18, 2025 14:04
Japanese game and manga text sound effect (SFX) database

Japanese SFX

Introduction

This is a compiled collection of common Japanese SFXs (sound effects or onomatopoeia).

This collection uses mostly Romaji transliterations. Some of them can be used in combination with other SFXs; some of them, or combinations thereof, can be written separately for emphasis within the same panel (example: do-ki-, ドッ キッ ), but can be considered part of the same action; some use repeated sub-elements or prolongation characters (ー) within them. All interjections can be written differently, usually to indicate particularly strong or repeated stimulation. For example, a cho in isolation is almost certainly a truncated version of chotto, where the speaker was distracted from finishing the word. A prolongation of a character, on the other hand, often implies lazy, harsh, or sloppy pronunciation, or possibly even a scream. Because of this, many SFXs can have multiple meanings, depending on the action drawn, as well as one's interpretation of that action.