Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
If you wan't a cljs
that acts like clj
, but for ClojureScript, there are a few minor changes you can make:
First, add the following entry to ~/.clojure/deps.edn
under the :deps
key:
org.clojure/clojurescript {:mvn/version "1.10.439"}
Then make copies of clj
and clojure
named cljs
and clojurescript
, and put those copies on your path.
import ErrorStackParser from 'error-stack-parser' | |
const ROLLBAR_ACCESS_TOKEN = '[ACCESS TOKEN]' | |
var rollbarUrl = `https://api.rollbar.com/api/1/item/` | |
// https://github.com/rollbar/rollbar.js/blob/master/src/errorParser.js | |
function Frame(stackFrame: ErrorStackParser.StackFrame) { | |
var data:any = {}; | |
// data._stackFrame = stackFrame; |
import { decode } from "blurhash" | |
const cache: Record<string, string> = {} | |
export function blurHashToDataURL(hash: string | undefined): string | undefined { | |
if (!hash) return undefined | |
const cachedBlurDataURL = cache[hash] | |
if(cachedBlurDataURL) { |