This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "iceberg-light-theme", | |
"$schema": "https://zed.dev/schema/themes/v0.1.0.json", | |
"name": "Iceberg Light Theme", | |
"author": "S Knutsen <[email protected]>", | |
"description": "Un-official port of (Neo)Vim Iceberg theme. Credits for https://github.com/cocopon/iceberg.vim", | |
"themes": [ | |
{ | |
"name": "Iceberg Light", | |
"appearance": "light", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\newcommand{\cat}[1]{\mathscr{#1}} | |
\newcommand{\fcat}[1]{\mathbf{#1}} | |
\newcommand{\FF}{\mathbb{F}} | |
\newcommand{\CC}{\mathbb{C}} | |
\newcommand{\RR}{\mathbb{R}} | |
\newcommand{\QQ}{\mathbb{Q}} | |
\newcommand{\ZZ}{\mathbb{Z}} | |
\newcommand{\NN}{\mathbb{N}} | |
\newcommand{\II}{\mathbb{I}} | |
\newcommand{\C}{\cat{C}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Vec(tuple): | |
def __new__(cls, x, y=None, z=None): | |
if y is None: | |
return super(Vec, cls).__new__(cls, x) | |
if z is None: | |
return super(Vec, cls).__new__(cls, (x, y)) | |
return super(Vec, cls).__new__(cls, (x, y, z)) | |
def dot(self, other): | |
return sum(x0 * x1 for (x0, x1) in zip(self, other)) | |
def __add__(self, other): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
class NormalPoint: | |
""" | |
Normalised Cartesian coördinates | |
in the space [-1; 1]×[-1; 1] ⊆ ℝ² | |
""" | |
def __init__(self, x, y): | |
self.x, self.y = x, y | |
def polar(t): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WIDTH = `tput cols`.to_i - 1 || 80 | |
HEIGHT = `tput lines`.to_i - 1 || 40 | |
FPS = 60 | |
include Math | |
class Array | |
def x; self[0]; end | |
def y; self[1]; end | |
def z; self[2]; end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S deno run --allow-net --allow-env --allow-read --allow-write | |
import MP3Tag from 'https://cdn.jsdelivr.net/gh/eidoriantan/mp3tag.js@latest/src/mp3tag.mjs'; | |
Object.defineProperty(Deno, "execName", { | |
get() { | |
const PATHS = Deno.env.get('PATH')?.split(':') || []; | |
// Deno doesn't seem to have something akin to $0 in shell. | |
let progName = Deno.mainModule.replace("file://", "") | |
for (const path of PATHS) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # Exaple: | |
# ```py | |
# from tacit import * | |
# | |
# @fn | |
# def f(x, y): | |
# return 2 * (x + y) | |
# | |
# @fn | |
# def g(x): return x + 3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init |
NewerOlder