You should prefer
#js["tag" #js{"k1" v1, "k2" v2}]over
| /* This is a proof-of-concept, inspired by clojure, that stores just the | |
| * transitions between multiple Foo structs, rather than copying the entire | |
| * struct's fields each time. | |
| */ | |
| #[derive(Default)] // <-- this derives Foo::default() which creates a Foo struct | |
| // with a and b initialized to zero. | |
| struct Foo { | |
| a: u8, | |
| b: u8, |
| #!/bin/bash | |
| # This assumes that the ~6GB mojave installer is in the /Applications folder. | |
| # If it's not, just open the App Store, search Mojave, and you can download the installer file from there. | |
| hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave | |
| sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave | |
| mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
| hdiutil detach /Volumes/Install\ macOS\ mojave |
| Binding | Action |
|---|---|
| <localleader>cd | Disconnect from the current nREPL server. |
| <localleader>cf | Connect to a server using the port found in any of the files specified by clojure.nrepl/connection.port-files. |
| <localleader>sc | Clone the current nREPL session. |
| <localleader>sf | Create a fresh session from scratch. |
| <localleader>sq | Close the current session. |
| <localleader>sQ | Close all sessions. |
| \sl | List all sessions. |
| #!/usr/bin/env bb | |
| ;; Inspired from https://book.babashka.org/#_running_tests | |
| (require '[clojure.test :as t] | |
| '[clojure.string :as string] | |
| '[babashka.classpath :as cp] | |
| '[babashka.fs :as fs]) | |
| (cp/add-classpath "src:test") |
| [Desktop Entry] | |
| Name[en_US]=hyper-key | |
| Comment[en_US]=Set CapsLock to Control and Escape to Hyper | |
| Exec=/usr/local/bin/hyper-key.sh | |
| Icon=application-default-icon | |
| X-GNOME-Autostart-enabled=true | |
| Type=Application |
”If you like Java, program in Java. If you like C#, program in C#. If you like Ruby, Swift, Dart, Elixir, Elm, C++, Python, or even C; by all means use those languages. But whatever you do, learn Clojure, and learn it well.” --- Uncle Bob (and several more tweets: 1, 2, 3).
There are lots of articles about Clojure. In this one, I'd like to share my thoughts on the advantages of using it for cross-platform mobile development. Dart programmers are the target audience, but anyone interested in Flutter and/or Clojure is welcome.
Clojure was not created in a hurry (JS), it didn't try to seize the market with a multimillion budget (Java). It wasn't backed by a powerful company (Go, Dart,
| From 36a4180bd37e851686b95ac4aac5bfe22036ce49 Mon Sep 17 00:00:00 2001 | |
| From: root <root@chromium.lxd> | |
| Date: Tue, 19 Sep 2023 02:53:45 +0000 | |
| Subject: [PATCH] Hacks to allow unsafe-eval in mv3 chrome extensions | |
| --- | |
| chrome/browser/ash/system_web_apps/apps/terminal_source.cc | 2 +- | |
| extensions/common/csp_validator.cc | 2 +- | |
| extensions/common/manifest_handlers/csp_info.cc | 6 +++--- | |
| 3 files changed, 5 insertions(+), 5 deletions(-) |