---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
| #!/usr/bin/env bb | |
| ;; ============================================================================ | |
| ;; Git LLM - LLM-powered commit messages and PR descriptions | |
| ;; ============================================================================ | |
| ;; This is a Babashka script - a fast-starting scripting environment for Clojure | |
| ;; Learn more at https://babashka.org/ | |
| ;; | |
| ;; This script uses LLMs (Claude or Codex) to generate git commit messages and | |
| ;; PR descriptions based on code changes. It can either preview the generated |
| #!/bin/sh | |
| rm -rf .dart_tool | |
| rm -rf build | |
| rm -rf ~/.gradle | |
| rm -rf .gradle | |
| rm -rf android/.gradle | |
| rm -f pubspec.lock | |
| flutter clean |
| #!/usr/bin/env python3 | |
| from xml.sax.handler import ContentHandler | |
| from xml.sax import make_parser | |
| from glob import glob | |
| import sys | |
| def parsefile(file): | |
| parser = make_parser() | |
| parser.setContentHandler(ContentHandler()) |
---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
| #!/bin/sh | |
| # AngularDart pub clean | |
| rm -rf "$HOME/.pub-cache" | |
| rm -rf .dart_tool | |
| rm -f .packages | |
| rm -f .pub | |
| rm -f pubspec.lock | |
| git rm -f .packages | |
| git rm -f .pub | |
| pub cache repair |
My notes for Dokku on Digital Ocean.
These may be a bit outdated: Since I originally wrote them, I've reinstalled on a newer Dokku and may not have updated every section below.
Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).
# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
| ImageMorph allInstances do: [ :im | | |
| im bounds origin x = 0 & im bounds origin y = 0 & | |
| im bounds corner x = 1 & im bounds corner y = 1 & | |
| im height = 1 & im width = 1 | |
| ifTrue: [ im inspect] | |
| ]. | |
| ImageMorph allInstances collect: [ :im | | |
| im bounds origin x = 0 & im bounds origin y = 0 & | |
| im bounds corner x = 1 & im bounds corner y = 1 & |
| Note: This hasn't been updated for macOS Catalina. | |
| 1. Download and move <https://gist.github.com/brackendev/97ed0793cf605b123ff14433ff075e0d> | |
| to /usr/local/bin/ccl (for example). | |
| 2. Via a shell: | |
| Note: Use latest URLs from <https://github.com/Clozure/ccl/releases>. | |
| $ chmod +x /usr/local/bin/ccl |
| #!/bin/sh | |
| # | |
| # Change the definition of CCL_DEFAULT_DIRECTORY below to refer to | |
| # your Clozure CL installation directory. The lisp will use this | |
| # environment variable to set up translations for the CCL: logical | |
| # host. | |
| # Any definition of CCL_DEFAULT_DIRECTORY already present in the | |
| # environment takes precedence over definition made below. |
| ;; Page 120 | |
| (defun dot->png (fname thunk) | |
| (with-open-file (*standard-output* | |
| fname | |
| :direction :output | |
| :if-exists :supersede) | |
| (funcall thunk)) | |
| (ccl:run-program "/usr/local/bin/dot" (list "-Tpng" "-O" fname))) |