Skip to content

Instantly share code, notes, and snippets.

@draxaris1010
draxaris1010 / browser
Created May 4, 2024 08:15 — forked from defunkt/browser
pipe html to a browser
#!/bin/sh -e
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo '<h1>hi mom!</h1>' | browser
# $ ron -5 man/rip.5.ron | browser
if [ -t 0 ]; then
if [ -n "$1" ]; then
@draxaris1010
draxaris1010 / pop.js
Created July 7, 2020 16:02 — forked from DraxAris/pop.js
Pop-up window in Js & HTML to use Js console in phone
function pop(){
var input = window.prompt("enter a command","");
var output = eval(input);
eval(input);
console.log(output);
alert(output);
};
window.onload = pop();