![][4]
I've been gathering the best resources to teach children & teens programming — books, environments, apps, courseware and games.
| export default { | |
| async fetch(request, env, ctx) { | |
| const url = new URL(request.url); | |
| // 处理 API 请求:支持 POST (/api/add-ssl) 和 GET (/?...) | |
| if ( | |
| (url.pathname === '/api/add-ssl' && request.method === 'POST') || | |
| (url.pathname === '/' && request.method === 'GET' && url.searchParams.has('zoneId')) | |
| ) { | |
| return handleApiRequest(request, url.searchParams); |
| //@version=5 | |
| // ══════════════════════════════════════════════════════════════════════════════════════════════════ // | |
| //# * ══════════════════════════════════════════════════════════════════════════════════════════════ | |
| //# * | |
| //# * Study : Volume Profile / Price by Volume - Fixed Ragne | |
| //# * Author : © dgtrd | |
| //# * | |
| //# * Revision History | |
| //# * Release : Feb 23, 2022 | |
| //# * Update : Feb 27, 2022 : added volume indicator (histogram) |
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.
| { attr | |
| }: | |
| # Scaffold to build just one package with modified stdenv scripts. | |
| # | |
| # Dependencies come unmodified from <nixpkgs>, including the stdenv's | |
| # toolchain. This is useful for (a) iterating quickly on changes to | |
| # stdenv scripts (like setup.sh), and (b) more easily comparing the | |
| # build log against a baseline, by keeping inputs' paths the same so | |
| # that any changes caused by changes in the scripts' behavior stand out. |
Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.
Please note that unless you see a shebang (#!/...) these code blocks are usually meant to be copy & pasted directly into the shell. Some of the steps will not work if you run part of them in a script and copy paste other ones as they rely on variables set before.
The { and } surrounding some scripts are meant to avoid poisoning your bash history with individual commands, etc. You can ignore them if you manually copy paste the individual commands.
I chose to write things "in the open" that way so there's still some control and things don't become a black box.
| #!/bin/bash | |
| installCursor() { | |
| local CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64" | |
| local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png" | |
| local APPIMAGE_PATH="/opt/cursor.appimage" | |
| local ICON_PATH="/opt/cursor.png" | |
| local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop" | |
| echo "Checking for existing Cursor installation..." |
This is a Rails 8 app, using Tailwind for CSS (with DaisyUI), Slim for HTML templates, Phlex for view components, Stimulus for JavaScript, and Turbo for streaming updates. It runs using docker-compose, which we manage with dip.
Read more about the purpose and business logic of the app in @README.md
Before you started, the following two commands were already run for you: bin/setup set everything up, and bin/dev started the web app.
| { | |
| "description": "Monitor Claude Code usage, costs, tokens, and productivity metrics", | |
| "layout": [ | |
| { | |
| "h": 1, | |
| "i": "row-overview", | |
| "moved": false, | |
| "static": false, | |
| "w": 12, | |
| "x": 0, |