Skip to content

Instantly share code, notes, and snippets.

@1Marc
1Marc / debugging-js-setup.md
Last active March 20, 2025 16:08
Debugging JavaScript LIVE -- Setup Instructions
  • Make sure you have a GitHub account
  • Install:
    • Git
    • Text editor (Atom or VSCode suggested)
    • Node installed and available via command line node. Recommended version 4.6 or greater.
    • Chrome web browser (latest stable release)
  • Clone the getRANTR repo and follow the install instructions.
@staltz
staltz / introrx.md
Last active November 19, 2025 07:55
The introduction to Reactive Programming you've been missing
@davemo
davemo / api.proxy.server.js
Created November 6, 2012 21:56
A simple express.js server with a proxy that intercepts all requests with /api/ and proxies them to localhost:3000
var express = require('express'),
httpProxy = require('http-proxy'),
app = express();
var proxy = new httpProxy.RoutingProxy();
function apiProxy(host, port) {
return function(req, res, next) {
if(req.url.match(new RegExp('^\/api\/'))) {
proxy.proxyRequest(req, res, {host: host, port: port});