Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lachenmayer/dwiffy

dwitter.net style demo in the terminal using diffy
https://github.com/lachenmayer/dwiffy

Last synced: 2 days ago
JSON representation

dwitter.net style demo in the terminal using diffy

Awesome Lists containing this project

README

        

#!/usr/bin/env node
//
// This file came about when I was trying to create some test strings to debug https://npm.im/diffy.
// I couldn't find the bug, but I liked the look of it, so I golfed it in the style of https://dwitter.net.
//
// To try it out in your own terminal, run
//
//
// npx @lachenmayer/dwiffy
//
//
// As a demoscene effect, it's super basic - if you think you can do better, create your own!
//
// There are only three rules for taking part in the dwiffy demoscene:
//
// 1. The executable JavaScript code (without comments) should be less than 140 characters long
// 2. Your demo should be published on npm as @/dwiffy
// 3. Your readme should contain these three rules
//
d=require('diffy')(),i=0,r=x=>x.repeat(i);setInterval(()=>d.render(()=>(i++,r((r(' ')+r('#'))))),50)