Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lachenmayer/dwiffy
- Owner: lachenmayer
- Created: 2019-02-01T20:11:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-01T20:22:44.000Z (almost 6 years ago)
- Last Synced: 2024-11-12T20:48:10.107Z (2 months ago)
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.js
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)