Skip to content

Instantly share code, notes, and snippets.

@TylerWhittaker
TylerWhittaker / notepad.html
Last active August 2, 2018 16:00 — forked from jdkanani/notepad.html
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/python");</script>
<!--
For other language: Instead of `ace/mode/ruby`, Use
Markdown -> `ace/mode/markdown`
Python -> `ace/mode/python`
C/C++ -> `ace/mode/c_cpp`
Javscript -> `ace/mode/javascript`
Java -> `ace/mode/java`
Scala- -> `ace/mode/scala`
@TylerWhittaker
TylerWhittaker / bash_wget.sh
Last active October 27, 2024 08:21
Bash HTTP(S) download script (pure bash HTTP download for systems without curl/wget/fetch)
#!/bin/bash
#
# bash_wget.sh
#
# Tyler Whittaker <[email protected]>
#
# BASH HTTP(S) DOWNLOAD SCRIPT
# - downloads a file from HTTP server in almost pure bash (no curl/wget required)
# - requires `openssl` binary for HTTPS download (alternatively, just use curl/wget)
#