Skip to content

Instantly share code, notes, and snippets.

View mov-78's full-sized avatar

MOV78 mov-78

  • Trip.com
  • Shanghai, China
View GitHub Profile
@mov-78
mov-78 / fiddle.html
Created March 27, 2017 10:24
minimal JS fiddler
<iframe id=o></iframe><textarea id=x></textarea><textarea id=y></textarea><textarea id=z></textarea><script>d=o.contentWindow.document;b=d.body;document.body.oninput=function(){b.innerHTML=x.value;m=d.createElement('script');m.textContent=y.value;b.appendChild(m);n=d.createElement('style');n.textContent=z.value;b.appendChild(n)}</script>
@mov-78
mov-78 / BRAIN_FUCKED.js
Last active March 3, 2017 01:57
a 430byte brainfuck interpreter
p=process;j=require('path').join;r=require('fs').readFileSync;u='utf8';d=__dirname;v=p.argv;e=[];i=v[3]?r(j(d,v[3]),u).split(''):[];s=r(j(d,v[2]),u);t={'<':'c--;','>':'c++;','+':'m[c]++;','-':'m[c]--;',',':'i[0]&&(m[c]=i.shift().charCodeAt(0)%0xFF);','.':'p.stdout.write(String.fromCharCode(m[c]));','[':'while(m[c]){',']':'}'};m=new Array(0xFFFF).fill(c=0);for(n of s.replace(/[^<>\-+,.[\]]/g,''))e.push(t[n]);eval(e.join(''));
{"0":["(TM)","/dev/null","/me","0","1TBS","2","404","404 compliant","@-party"],"A":["abbrev","ABEND","accumulator","ACK","Acme","ad-hockery","address harvester","adger","admin","ADVENT","adware","AFAIK","AFJ","AFK","AI","AI-complete","airplane rule","Alderson loop","aliasing bug","Alice and Bob","All hardware sucks, all software sucks.","all your base are belong to us","alpha geek","alpha particles","alt","alt bit","Aluminum Book","ambimouseterous","Amiga","Amiga Persecution Complex","amp off","amper","and there was much rejoicing","Angband","angle brackets","angry fruit salad","annoybot","annoyware","ANSI standard","ANSI standard pizza","anti-idiotarianism","AOL!","app","Archimedes","arena","arg","ARMM","armor-plated","asbestos","asbestos cork award","asbestos longjohns","ASCII","ASCII art","ASCIIbetical order","astroturfing","atomic","attoparsec","Aunt Tillie","AUP","autobogotiphobia","autoconfiscate","automagically","avatar","awk"],"B":["B1FF","B5","back door","backbone cabal","backbone site","backgammon",
@mov-78
mov-78 / EDM.html
Last active January 4, 2016 03:19
a starting point for creating bullet-proof responsive HTML emails
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>|*MAIL:TITLE*|</title>
<style type="text/css">
/*
[NOTICE]
Before sending this mail: