Skip to content

Instantly share code, notes, and snippets.

 Inserting Special Symbols using Apple US Keyboard

You can search special symbols by name in any text field with Ctrl Space.

Or remember the hotkey of ones you frequently use:

`1234567890-=
~!@#$%^&*()_+  (shift)
`¡™£¢∞§¶•ªº–≠  (alt)
@shaunlebron
shaunlebron / halo.md
Last active September 4, 2023 06:00

I spent a lot of time in high school and college (2005-07) modifying the game Halo—a dark art I learned by finding experts willing to teach me.

I first approached David Skotnicki (TocaEdit) to ask how he added a knob to the Field of View in Halo. He taught me how to use TSearch and Cheat Engine to analyze the effects of in-game actions on locations in memory, how to find locations in code which accessed its values, how to reroute the game to use custom code, and how to package the edits into a VB6 app for distribution.

I set out to use this for a bit of vanity—to keep the camera floating behind

@shaunlebron
shaunlebron / instaparse.diff
Created December 15, 2018 04:01
parindent on instaparse
diff --git a/runner/cljs/runner/runner.cljs b/runner/cljs/runner/runner.cljs
index e1b2f97..74bc9f6 100644
--- a/runner/cljs/runner/runner.cljs
+++ b/runner/cljs/runner/runner.cljs
@@ -1,13 +1,13 @@
(ns instaparse.runner.runner
(:require [cljs.nodejs :as nodejs]
- [instaparse.abnf-test]
- [instaparse.auto-flatten-seq-test]
- [instaparse.core-test]
@shaunlebron
shaunlebron / rum.diff
Created December 15, 2018 04:00
parindent on rum
diff --git a/examples/rum/examples.cljs b/examples/rum/examples.cljs
index 70d2a96..e0e5ed3 100644
--- a/examples/rum/examples.cljs
+++ b/examples/rum/examples.cljs
@@ -1,26 +1,26 @@
(ns rum.examples
(:require
- [clojure.string :as str]
- [rum.core :as rum]
- [rum.examples.core :as core]
@shaunlebron
shaunlebron / figwheel.diff
Created December 15, 2018 04:00
parindent on figwheel-main
diff --git a/dev/user.clj b/dev/user.clj
index 63a1ebe..7a0b0b4 100644
--- a/dev/user.clj
+++ b/dev/user.clj
@@ -1,23 +1,23 @@
(ns user
(:require [figwheel.server.ring]
- [figwheel.main.schema.config]
- [figwheel.main.api :as api]
- [clojure.string :as string]))
@shaunlebron
shaunlebron / clj.dif
Created December 15, 2018 03:22
parindent on clojure core
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index 8e98e072..b3174e14 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -7,26 +7,26 @@
; You must not remove this notice, or any other, from this software.
(ns ^{:doc "The core Clojure language."
- :author "Rich Hickey"}
+ :author "Rich Hickey"}
@shaunlebron
shaunlebron / cljs.diff
Created December 15, 2018 03:20
parindent on clojurescript core
diff --git a/benchmark/cljs/benchmark_runner.cljs b/benchmark/cljs/benchmark_runner.cljs
index a4ea583c..4407b571 100644
--- a/benchmark/cljs/benchmark_runner.cljs
+++ b/benchmark/cljs/benchmark_runner.cljs
@@ -1,8 +1,8 @@
(ns cljs.benchmark-runner
(:refer-clojure :exclude [println])
(:require [cljs.reader :as reader]
- [clojure.core.reducers :as r]
- [clojure.string :as string]))
@shaunlebron
shaunlebron / nudge-formatter.md
Created December 11, 2018 10:35
how elm-format and prettier deal with ambiguity

Case Study: how to branch without options

[elm-format inspired prettier] to let the user branch between two different formatters without the use of explicit options, by taking cues from the source's original formatting. (see [multi-line objects])

  • Context: an object literal is sometimes better displayed on multiple lines even it can fit on one
  • Problem: it was deemed impossible for the formatter to know when multiline is preferable
  • Solution: allow the user to insert a newline after the first curly to force multiline
// before
@shaunlebron
shaunlebron / realtalk.md
Last active March 25, 2024 15:26
why Dynamicland Realtalk isn't open source

Transcribed from an interview with Toby Schachman and Paula Te on The Afrofuturist Podcast:

There's this notion of the open-source movement. There are a lot of things
that we totally resonate with that because it's about understanding how your
technology works. We're totally 100% on board with that.

But then there are other issues with the open-source community, where it's
very internet-based and so open-source ends up benefitting this group of
people who have really strong access to internet and understand how to use
Idling
shiftdown -> Highlighting point
mousedown -> MouseDrag?
touchstart -> TouchDrag?
Highlighting point
mousedown -> Creating selection
mousemove -> Highlighting point
shiftup -> Idling