Code Monkey home page Code Monkey logo

zalgots's Introduction

Zalgo in TypeScript

There ͔̆oñ̥͓ͯ͗̕ce was a pe͖̯̲͈̎͟rfect answer to͍̟̒̀̀͡ a often ask̛̩̰̱̻͕͑ͣ̈́ed StackOverflow question: "RegEx match̡̪͒ͫ open tags except ̨̱̳̩͓̌͜X̧̭̲͊̇HTML sel͓͔̘̮̋ͪ͂̇̐f-containē̜̎d tags" - briefly, ho̡̻͚͉̻͙̾̉͜w to use a Regex to parse H̝̲̍͂̈́ͅTML ̶̗̄ͬͦ̀or XHTML. The a̩͉̱̝̾̎̕nswer ̴͉̳̭ͦͯͣgot...weird.

I liḱ̞̫͐ͦed the effect, and look̮͛̀ed to see if̩͑̋́ ̤ͭ͞͞anyone had̵̎ͅ listed how͓͗͡ to do it. ͍̥ͣ̔S̺͎̩͉̄̊̊om͉͇͂̔͠eone did onê̩͚͊ be͓͖͕̊̚tter,̻͍̂̓͡ and ̸̨̝̣̘ͦ͊created a site that would do it on deman͊̓̀̕d in 2̙̍̑0ͤ̈҉̗̯̩̖09: Zalgo text generator by tchouky.

Then someone ͏͖̱̖͖̙͡s̸͍̻ͪͅtole that scrip̟̽̀t, ą̾ͬ͋͢nd stuc͖͇̗̊͌k it on a G̘̱̲̭̿͊͂́it̸̹ͬͧHͩub gist. Then I stole it from them (well,̸̮̔͘ forked it).

In this project I hav̓ͥ̌̈́̒͝҉̟̟̮͍e refined̓ͬ́̐̒ ̖͚͊̓̾the gist down to a s̷̖̦̞͙̱̓ͭ̂imple typescript f͔͆̓͆̈͘ile that wí͓̝ͦ̓ͬͥ͘ll 'Zalgo-ise' any text ̮̇ͭ͛ͪ͝you give i̯t, ̧͓̳͙͑with͗͏̢͕͚̤ configurable o̼̯͔̝͋ͦ͂́ptions. Also in the repo is the s̶͖̟͗̾ͪ͘ame script a͖̖̽̓͊͛ͭ̚s JS compiled wit̿̀ͮ҉h TSC, and a sampļ̗̬̲̃e file.҉ Feel free̛̺͢ to use as yo̡̤̪̱͉̖ͅu wish (o̻̚͝r ste̷̯̬̯͍̝ͥ̾́̓al it in tuř̑͟n - woo̥̞͛ͥ̂ͦ unilic̝͗ense!).

zalgots's People

Contributors

chrispritchard avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dacuteraccoon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.