• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    Go
  • License
    Other
  • Created over 11 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Invoke the hive-mind

zalgo finally brings support for Zalgo text to Go.

package zalgo_test

import (
    "fmt"
    "github.com/kortschak/zalgo"
    "os"
)

const invoke = `To invoke the hive-mind representing chaos.
Invoking the feeling of chaos.
With out order.
The Nezperdian hive-mind of chaos. Zalgo.
He who Waits Behind The Wall.
ZALGO!
`

func Example_1() {
    z := zalgo.NewCorrupter(os.Stdout)

    z.Zalgo = func(n int, r rune, z *zalgo.Corrupter) bool {
        z.Up += 0.1
        z.Middle += complex(0.01, 0.01)
        z.Down += complex(real(z.Down)*0.1, 0)
        return false
    }

    z.Up = complex(0, 0.2)
    z.Middle = complex(0, 0.2)
    z.Down = complex(0.001, 0.3)

    fmt.Fprintln(z, invoke)

    // Output:
    // Eternal happiness.
}

got:

To ͪ͞i͝n͙v͟o̟ke̷ ̢̝t͓ͪh̨e̖ ͨ͟h͇iv̋e-̪m̘i̹n̑d̝ ͏̺re̞̓͡p͢r͡és̷e̎͞ņ̿͐͒tį̊ng̃͢ ̓̽c̨̰ͬ̇ḫ͞a͢o͍͑s̐ͣ́.

I̛ͭ̌n̪̉̓̀v̒͢ǫk͐͝in̸͆g ͚̑̔͠t͓̽ͤ͡h̦͒͆͜e̜̿ ͢f̸e͂͏̻e̵ļi͂͗̀n̡ͤ̋g̢̾ ̵̹́̊ơf̲͞ ̉͢c̎̏̉͟h̘̒̾̆͠â̧ǫ͖̈̂̓ͫs̫̳.̋҉̪

W͍̗͟í̗t̺̬̏͊̌̕ẖ̢̎̏ ͔̈͝ŏ̻̊ͧ̀u̕t̨̲ͯ̿ ̭͂ͨͮ͆ͮ̈͢o̻̍͡r̠̎͢ͅḏ͐͟ë̢͙̇̿̽r͏͓̮.̴̋

T͇͇͌ͣ͊͝h̦̳̽ͫͬ́e̥̤̬̐͛ͥ͠ ̶̱̝͎͇ͦ̈́͑͊N̨̹͎ͤȩ͈̻̲̕ͅz̨̫̫̼͕̱̜̆͢p̵̟͙̤͇̈́͂̎̽̀ė̷ͦ͏͚̤̘̜͓̲r̶͎͑̄̀d̛͖̠̣̣̦̽͝į̷͔̲̦̩̜̮͈͒ą̨͈̘̥̥͉ͨ͑͐n̸̲̜̳͓̱̙͌͡ ͋̈̍̑͝҉̥͈͎̝h̢̥̹̣̖̱̓͊͡ͅiͦ̋̄͞҉̜͎̳̗ͅv̵̨̙͙̰͍̼ͧ̈́ͅę̣͓͈̣̱̞̚͠ͅ-̷̛͖̜͎̠̼̻͑͆m͙̺̦̱͚̋ͣ͘͞ͅi̷̷̲̯̣̺͓͉̰͈n͚̘̣̳̥̥̂̊͢͞d̨̘̣͓̮̱̓͌́̕ ̤̝̼͇͇̩̘̳͘͜ǫ̴̣̙͙̦̝̠̮̈f̡͙̞̬̤̪͙̊͛͟ ͕̖̉͒ͨ̒ͨ́͝ͅċ̡͈͔̦̙̤͎͞ͅh͐̐҉̲̪̼̮̫̼͜ą̰̘̙͙͓̘̲̐͠o̡̩͉͓̫̼͗͂́͟ṡ̸̪͎̱̭͙͎ͭ͜.̝̗̪̑ͭ̿͆ͩ̀͞ ͌͐̅ͦ̋̍͛̌͏̨Z̝̝͎̫ͭ͊ͤ̚͟͝ą̳͙̹͉͖͉̎͘ͅl̸͈͖̝̣ͩͬͣ̚͝g̸̷̜̝͍̲͛̊̎͊ó̵̗͉̠̯̬͎͐͝.͡͏̩̥̖͉͓͙̺̲

H̢͍̺͖͂̓͗ͬ̍̀e̼͇̦̰͔͖͂͒̕͡ ̧̭͈̖̟͕̃̓ͦ͠w̴̷͈̰̻͈͕̋͒̓h̑̔̀̿ͤ̓͏̱̰͘o̵̸͈͔̫͔͍̤̓̊ ̴͖̞͚̯̝͐͛ͫ͡W̷̱͖̲̤̬̃̔͂͝ạ̸͍̇̔̑̑͆ͩ͝ị̢̢̯̠͕̞̓ͪ͛ţ̴̜̝̞̭̑ͬ̄ͥs̛̲͙͕̪̓̿̑͛͡ ̣̰͎̽̏̄́̊̀͘B̨͔͕̮̝͕̩̓̂͡ẹ̴͍̟̮̅͛ͫ̕ͅh̆̅ͨ̒ͨ͏̮̙̠͠í̻̩̭̫͎ͯ̚͡͠ṅ̵̢̜̪̮̩̣ͤ͂d̘̮͇̟̺̖ͦ͒̀͜ ̸̰̣̳̭̜̈́́̀ͅT̸̢͕̬̯͎͒ͤ͗ͦh̷̵̥̫̻͓͔̖̃̄ę̞͇̗̣̫̟̼̎͡ ̴̧͎̠͇̥̪̬ͮ͛W̶̨͖͖͈͎̌͆̌͐a̷̧̺̦͚̯̹ͣ̚ͅl̢̥̹̜͑̑ͣͩ̂͟l̃ͧͩͭ͏̹͈̬͡ͅ.̢̯̔́͆ͩͪ͊̑͟

Z̛̝͕̫͎ͦ̓̓́͡Ḁ̧͖̣͎̋̀ͯ̈̕L̷̹̥̣̪̮̩̅̄͝G̱̭͔̜̹͊͆̃͝͠O̍͐͐͏̷̟̰̼͉̰!̴͎̩̣̇͗̈́̀̅͡

want:

Eternal happiness.

More Repositories

1

goroutine

Package for getting the runtime ID of a goroutine
Go
42
star
2

gospel

misspelled word linter for Go comments, string literals and embedded files
Go
40
star
3

ds212

DS212 Firmware — this is the V1.03 release from http://www.minidso.com/forum.php?mod=viewthread&tid=1816&extra=page%3D1 translated to English comments
C
27
star
4

ugbt

Ugg boot is a tool for people wanting to have some comfort in their lives.
Go
16
star
5

arrgh

Go interface to the OpenCPU R server system
Go
13
star
6

lectures

Bioinformatics lecture slides 2014
Go
11
star
7

mbg

mbox forensics
Go
10
star
8

typo

The typogenetics game from "Gödel, Escher, Bach: an Eternal Golden Braid"
Go
8
star
9

loopy

blasr-based structural variation detection
Go
7
star
10

dex

El Gato Stream Deck controller and infrastructure
Go
6
star
11

gogo

gogo enables programmatic queries of a Gene Ontology graph
Go
5
star
12

graphprac

Graph analysis practical code
Jupyter Notebook
5
star
13

ct

Terminal text decoration
Go
5
star
14

yaegiconf

Who wouldn't want arbitrary computation in a configuration parser?
Go
5
star
15

kprobe

Construct kprobe structs dynamically — there is no spoon
Go
4
star
16

yoink

Automate code appropriation.
Go
3
star
17

gd

Markdown rendering of simple programs and their output — Godown
Go
3
star
18

ins

Library-based repeat identification tool
Go
3
star
19

ardilla

La Ardilla de Tierra for El Gato Stream Deck
Go
3
star
20

nmf

Non-negative matrix factorisation by alternative least squares using projected gradients.
Go
3
star
21

mnist

MNIST dataset interface for Go
Go
2
star
22

matrix

Discussion doc for gonum/matrix
Go
2
star
23

bogo

Sorting for when you don't value time.
Go
2
star
24

mito

sketch for a message stream processing engine based on CEL
Go
2
star
25

delivery

Taking Takeout to the next level.
Go
2
star
26

smeargol

smeargol is a tool for non-redundantly assigning gene count data to Gene Ontology terms associated with genes
Go
2
star
27

go-stippling

This is Job Leonard van der Zwan's go-stippling project salvaged from google code.
Go
2
star
28

quilt

A pipeline for chaining repeat annotations.
Go
2
star
29

colm

Colm Programming Language - http://www.colm.net/open-source/colm/
C++
2
star
30

git_workshop

Git collaboration workshop
Shell
1
star
31

hunspell

hunspell bindings for Go
Go
1
star
32

wol

An extremely simple WOL client
Go
1
star
33

cd

Cayley-Dickson construction
Go
1
star
34

integers

ITF-8 and LTF-8 encoding for Go
Go
1
star
35

goodintentions

Go
1
star
36

ding

Because someone has to do the work that NBNCo claims to do.
Go
1
star
37

toutoumomoma

Is that a sneaky executable?
Go
1
star
38

counter_act

1
star
39

unlicensable

List licenses in a source tree
1
star
40

databook_go

gd notebooks with demo code intended as a companion to the book "Data-Driven Science and Engineering: Machine Learning, Dynamical Systems, and Control" by Steven L. Brunton and J. Nathan Kutz
Go
1
star