Skip to content

Instantly share code, notes, and snippets.

View o0's full-sized avatar
🎯
Focusing

Igor Alexeenko o0

🎯
Focusing
View GitHub Profile
@qrohlf
qrohlf / OSX-tweaks.md
Last active November 4, 2015 17:07
Disable/enable drop shadows in OSX screenshots
@ryanflorence
ryanflorence / static_server.js
Last active July 21, 2024 12:43
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);