| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
The Clojure Style Guide is pretty good overall. It's very detailed and most of its advice is solid. There are handful of places it makes bad recommendations or is missing some advice.
Many of these criticisms apply to the output of linters like clj-kondo as well.
| -- supabase/seed.sql | |
| -- | |
| -- create test users | |
| INSERT INTO | |
| auth.users ( | |
| instance_id, | |
| id, | |
| aud, | |
| role, | |
| email, |
These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.
| # See also: | |
| # - https://github.com/actions/runner/issues/774 | |
| # - https://help.github.com/en/actions/reference/events-that-trigger-workflows#push-event-push | |
| # - https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request | |
| # - https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions | |
| name: "[skip ci]" on Actions | |
| on: [push, pull_request] |
| ;; Run me with: | |
| ;; clojure -Sdeps '{:deps {org.jsoup/jsoup {:mvn/version "1.12.1"}}}' gen.clj | |
| (require '[clojure.string :as str]) | |
| (import (java.time.format DateTimeFormatter) | |
| (java.time LocalDate LocalTime ZoneId ZonedDateTime) | |
| (java.util UUID) | |
| (org.jsoup Jsoup) | |
| (org.jsoup.nodes Document)) |
| name: CI | |
| on: [push] | |
| jobs: | |
| tslint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| job: [0, 1, 2, 3, 4] |
| #!/bin/bash -ex | |
| # Tries to download latest cached node_modules based on package-lock.json | |
| # If it can't, then `npm ci` and push up node_modules to cache | |
| # Assumes S3_BUCKET env var has been set, and that `aws` credentials | |
| # are configured (either in env, or ~/.aws/credentials) | |
| CHECKSUM=$(sha256sum package-lock.json | awk '{print $1}') |
| #!/bin/sh | |
| #_( | |
| #_DEPS is same format as deps.edn. Multiline is okay. | |
| DEPS=' | |
| {:deps {clj-time {:mvn/version "0.14.2"}}} | |
| ' | |
| #_You can put other options here | |
| OPTS=' |