Skip to content

Instantly share code, notes, and snippets.

View shurane's full-sized avatar

Ehtesh Choudhury shurane

  • Astoria, NY | Seattle, WA
  • 16:09 (UTC -07:00)
View GitHub Profile
@shurane
shurane / contenteditable.html
Created April 27, 2022 20:05
data:text/html, <html contenteditable> with some extra styling to make it easier to use. Just copy/paste the code in your browser and type away. Or make it a bookmarklet.
data:text/html;charset=utf-8,<title>TextEditor</title><style>body{background:#fbfbfb;color:#333;margin:0%50auto;width:100%}textarea{background:#fbfbfb;border:0;color:#333;font-family:sans-serif;font-size:2rem;height:98%;line-height:1.4;margin:0%20auto;outline:0;padding:4rem;width:100%}button{background-color:#fbfbfb;border:1px%20#ccc%20solid;color:#999;cursor:pointer;float:right;margin:10px%200;padding:5px%2010px}@media%20(max-width:100%){body{width:100%;padding:0}textarea{padding:10px}button{float:none}}</style><body><button%20onclick="sM();%20return%20false">Email%20this</button><textarea%20contenteditable%20id=TE%20spellcheck=false%20placeholder=Write...%20autofocus></textarea><script>function%20sM(){var%20a="mailto:?subject="+escape("Text%20from%20TextEditor")+"&body="+escape(document.getElementById("TE").value);window.location.href=a};</script>
@shurane
shurane / install.python.sh
Last active August 29, 2015 13:56 — forked from pithyless/gist:1208841
Python installation instructions
#!/usr/bin/env bash
##Install python, assuming you already have homebrew: http://brew.sh/
brew install readline sqlite gdbm
brew install python --universal
python --version ##Python 2.7
##Install PIP
easy_install pip
This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.