These are VMs running built with JavaScript/WASM allowing you to run an operating system within your browser, all client side.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: I previously suggested doing this through Grunt, but had plenty of problems with | |
// my set up. Grunt did some weird things with scope, and I ended up using nodemon. This | |
// setup is now using Gulp. It works exactly how I expect it to and is WAY more concise. | |
var gulp = require('gulp'), | |
spawn = require('child_process').spawn, | |
node; | |
/** | |
* $ gulp server | |
* description: launch the server. If there's a server already running, kill it. |
To run this, you can try:
curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash
I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.
Alternatively,
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var http = require("http"); | |
var url = require("url"); | |
var publicIp; | |
var fakeIp = "220.181.111." + Math.floor(Math.random() * 254 + 1); | |
var server = http.createServer(function(request, response) { | |
console.log("[%s] %s", request.method, request.url); |