Skip to content

Instantly share code, notes, and snippets.

View rickbeerendonk's full-sized avatar
🎯
Focusing

Rick Beerendonk rickbeerendonk

🎯
Focusing
View GitHub Profile
@rickbeerendonk
rickbeerendonk / static_server.js
Created September 5, 2016 09:22 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@rickbeerendonk
rickbeerendonk / uuid.cs
Created August 10, 2014 00:07
Java's Universally Unique Identifier (UUID) implementation in C#
// Copyright © 2014 Rick Beerendonk. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,