Skip to content

Instantly share code, notes, and snippets.

@shuuki
Last active April 26, 2017 04:51
Show Gist options
  • Save shuuki/44275e9f8aac8c251188a271e87835e4 to your computer and use it in GitHub Desktop.
Save shuuki/44275e9f8aac8c251188a271e87835e4 to your computer and use it in GitHub Desktop.
M // M // 7 // LANGUAGE
WE
NEVER
UNDERSTOOD
EACH
OTHER
BUT
ALL
I
WANTED
WAS
TO
SAY
HELLO
AND
HEAR
YOU
SAY
IT
TOO
VIEW
DEVELOPER
JAVASCRIPT CONSOLE
// PASTE THINGS HERE! //
// YOU CAN RUN ALL SORTS OF PROGRAMS
// INSIDE A WEB BROWSER
// WITH A LITTLE JAVASCRIPT
function m() {
var i = 0, p = [], wc = 999, mn = 0x0061, mx = 0x007a;
while (i < wc) {
p.push(String.fromCharCode(mn + Math.floor( Math.random() * (mx-mn) )));
i++;
}
return(p.join(''))
}
m();
function d() {
var l='s,f,k,g,h,p,r,d,i,o,b,u,d,v,n,m,z,j'.split(','),e=prompt('Huh?');for(e=e.split(''),i=0;i<e.length;i++) for(k=0;k<l.length;k++) e[i]==l[k]&&delete e[i]; return e.join('');
}
d();
function c() {var a=('abcdefghijklmnopqrstuvwxyz').split(''),k = a.slice(),m = prompt('?',''),d = prompt('#','3');k = k.concat(k.splice(0,d));return m.split('').map(x=>a[k.indexOf(x)]).join('');}
c();

NOTES

Thinking about different ways to bend language. You can paste the code from my entries into your browser's Javascript console and run the programs there (I included HOWTO as an entry to try to explain this without giving too much away for anyone who wants to discover on their own). All the code snippets are janky and susceptible to breaking because of the MICRO//MACRO 200 character limit, but I'd like to think they'll be worth a fun few minutes or maybe serve as a departure point for other ideas.

  • UNICODE MONKEYS is what happens if you just bang on a keyboard with no rhyme or reason. the easter egg is that it uses min/max values corresponding to a unicode block range so you can easily change it to generate different gibberish. Learn more about Unicode Blocks

  • HEARING LOSS asks for text and turns it into something approximating what an almost-deaf grandma might hear. if takes out letters that i found were associated with types of hearing loss. the list of items to remove is one thing that can be changed here.

  • CAESAR'S MESSAGE is a caesarean shift cipher, like a decoder ring. you enter a message and an offset number from 0-25 to spin the ring and encode or decode a message. for example, a message encoded with an offset of 3 can be read with an offset of 23. Learn more about Caesar Shift Ciphers


entries for MICRO//MACRO ISSUE #7 "LANGUAGE" from NULITHOUSE

written by BONES @MZXIO

except CAESAR'S MESSAGE written by BONES @MZXIO && DANTE @C-DANTE

with help from JSCompress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment