Last active
May 29, 2022 14:32
-
-
Save josephspurrier/162d1f4443187410c332522cf38c2d60 to your computer and use it in GitHub Desktop.
Font Tester
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
// Package main can be used to see how a font looks in your IDE. | |
// Preference: https://github.com/gaplo917/Ligatured-Hack | |
// VSCode Settings: https://gist.github.com/josephspurrier/15a74871d65926c7415b55fe4b8d2946#file-settings-json | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
// Source: https://github.com/tonsky/FiraCode/blob/947ced55552af16f5b01d2ab947e06647dbf064d/showcases/v3/showcases.txt | |
/* Showcase | |
.= .- ..= := ::= =:= __ | |
== != === !== =/= =!= | |
<-< <<- <-- <- <-> -> --> ->> >-> | |
<=< <<= <== <<->> <=> => ==> =>> >=> | |
>>= >>- >- <~> -< -<< =<< | |
<-| <=| /\ \/ |-> |=> | |
<~~ <~ ~~ ~> ~~> | |
<<< << <= <> >= >> >>> | |
{. {| [| <: :> |] |} .} | |
<||| <|| <| <|> |> ||> |||> | |
<$ <$> $> | |
<+ <+> +> | |
<* <*> *> | |
\n \\ /* */ /// // | |
/* </ <!-- </> --> /> | |
0xF www Fl Tl Il fi fj | |
;; :: ::: !! ?? %% && | |
|| .. ... ..< .? ?. | |
-- --- ++ +++ ** *** | |
=~ !~ ~- -~ ~@ | |
^= ?= /= /== | |
-| _|_ |- ||- |= ||= | |
#! #= ## ### #### | |
#{ #[ ]# #( #? #_ #_( | |
# Context-aware alignment | |
fii fjj | |
a*b a*A B*b A*B *a *A a* A* | |
a-b a-A B-b A-B -a -A a- A- | |
a+b a+A B+b A+B +a +A a+ A+ | |
a:b a:A B:b A:B :a :A a: A: | |
# Powerline | |
| |
# Stylistic sets | |
r 0 123456789 & && $ <$ <$> $> @ <= >= | |
# Unicode | |
≢ ẞ ᐅ ᐊ ∴ ∵ ⎈ ‖ ∧ ∨ ⊢ ⊣ ⊤ ⊥ ⊦ ⊧ ⊨ ⊩ ⊪ ⊫ ⊬ ⊭ ⊮ ⊯ | |
⟲⟳ ⟰ ⟱ ⟴ ⟵ ⟶ ⟷ ⟸ ⟹ ⟺ ⟻ ⟼ ⟽ ⟾ ⟿ | |
↩ ⇞ ⇟ ⇤ ⇥ ⌀ ⌃ ⌄ ⌅ ⌆ ⌘ ⌤ ⌥ ⎇ ⎋ ⏏ ✓ ☐ ☑ ☒ ▤ ▦ ▧ ▨ ▩ | |
␆ ␈ ␇ ␣ ␢ ␘ ␍ ␐ ␡ ␥ ␔ ␑ ␓ ␒ ␙ ␃ ␄ ␗ ␅ ␛ ␜ ␌ ␝ ␉ ␊ ␕  ␀ ␞ ␏ ␎ ␠ ␁ ␂ ␚ ␦ ␖ ␟ ␋ | |
ℂ ℍ ℕ ℙ ℚ ℝ ℤ 𝔹 ∀ ∃ ∄ ∅ ⊂ ⊃ ⊄ ⊅ ⊆ ⊇ ⊈ ⊉ ⊊ ⊋ ∈ ∉ ∊ ∋ ∌ ∍ ∪ ∩ | |
☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ 「a」 「a」 | |
# Box drawing | |
╭╌╌╌╌╮ ╭┄┄┄┄╮ ╭┈┈┈┈╮ | |
╎ ╏ ┆ ┇ ┊ ┋ | |
╎ ╏ ┆ ┇ ┊ ┋ | |
╰╍╍╍╍╯ ╰┅┅┅┅╯ ╰┉┉┉┉╯ | |
┌─┬─┐ ╔╦═╗ ┏━┳┓ ╒═╤═╗ ╭─┰─╮ | |
├─┼─┤ ╠╬═╣ ┣━╋┫ ├─┼─╢ ┝━╋━┥ | |
└─┴─┘ ╚╩═╝ ┗━┻┛ ╘═╧═╝ ╰─┸─╯ | |
# Blocks | |
|███ | 50% | |
▖ ▗ ▙ ▚ ▛ ▜ ▞ ▟ | |
▁▂▃▄▅▆▇█▀▔ | |
▏ | |
▎ | |
▍ | |
▌ | |
▋ | |
▊ | |
▉ | |
▐ | |
▕ | |
# Multi-line brackets | |
⎛ 1 ⎞ ⎡ a ⎤ ⎧ x ⎫ | |
⎜ 2 ⎟ ⎢ b ⎥ ⎪ y ⎪ | |
⎜ 3 ⎟ ⎢ c ⎥ ⎨ z ⎬ | |
⎜ 4 ⎟ ⎢ d ⎥ ⎪ y ⎪ | |
⎝ 5 ⎠ ⎣ e ⎦ ⎩ x ⎭ | |
*/ | |
// Example of HTML: | |
/* | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 boilerplate – all you really need…</title> | |
<link rel="stylesheet" href="css/style.css"> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<body id="home"> | |
<h1>HTML5 boilerplate</h1> | |
</body> | |
</html> | |
*/ | |
func main() { | |
alphaCapital := "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
alphaLower := "abcdefghijklmnopqrstuvwxyz" | |
alike := "Oo01iIlL" | |
symbols := ">= <= == != <html/> " | |
s := []int{7, 2, 8, -9, 4, 0} | |
counter := 0 | |
counter++ | |
c := make(chan int) | |
sumF := func(s []int, c chan int) { | |
sum := 0 | |
for _, v := range s { | |
sum += v | |
} | |
c <- sum | |
} | |
go sumF(s[:len(s)/2], c) | |
x, y := <-c, <-c | |
// Handle only errors. | |
var err error | |
status := http.StatusOK | |
if status >= 400 { | |
switch status { | |
default: | |
if err != nil { | |
fmt.Printf("router error (%v): %v", status, err.Error()) | |
} | |
} | |
} | |
fmt.Println(x, y, x+y, alphaCapital, alphaLower, alike, symbols) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment