Skip to content

Instantly share code, notes, and snippets.

wrr / index.html
Last active May 14, 2019
Random walk illustrated with D3.
View index.html
<!DOCTYPE html>
<!-- By Jan Wrobel. See it working at:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Random walk</title>
arvearve / gist:4158578
Created Nov 28, 2012
Mathematics: What do grad students in math do all day?
View gist:4158578

Mathematics: What do grad students in math do all day?

by Yasha Berchenko-Kogan

A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.

The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.

What can you say?

coolaj86 /
Last active Dec 4, 2020
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set "Your Name"
npm set ""
npm set ""

npm adduser
lfborjas /
Created Sep 10, 2011
Simple proxy server for developing front-ends for APIs (using rack middleware)
require 'rack'
require 'rack/proxy' #gem install rack-proxy
class Proxy < Rack::Proxy
def rewrite_env(env)
env["HTTP_HOST"] = ""
env["SERVER_PORT"] = "80"
mbostock / .block
Last active Nov 15, 2019
OMG Particles!
View .block
license: gpl-3.0
tomlea / proxy.rb
Created Oct 11, 2009
Rack Middleware to proxy requests to a remote server. This is usefull for proxying AJAX request to remote services.
View proxy.rb
require "net/http"
require "enumerator"
# Example Usage:
# use Rack::Proxy do |req|
# if req.path =~ %r{^/remote/service.php$}
# URI.parse("{req.query}")
# end
# end
You can’t perform that action at this time.