This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>toCamelCase</title> | |
<script src="tail-tocc.js"></script> | |
<script src="loop-tocc.js"></script> | |
<script type="text/javascript"> |
This file contains hidden or 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
var cls = require('continuation-local-storage-glue'); | |
var http = require('http'); | |
var uuid = require('uuid').v4; | |
var local = cls.createNamespace('reqNS'); | |
http.createServer(function(req, res) { | |
req._id = uuid(); | |
local.run(function() { | |
local.set('id', req._id); | |
next(req, res); |
This file contains hidden or 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
var Kolba = require('kolba'); | |
var app = new Kolba.App(); | |
// RESTful | |
var lyricsResource = new Kolba.Resource({ | |
get: function() { | |
// Fetch from somewhere | |
return json; | |
} |
This file contains hidden or 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
var http = require('http'); | |
var rid = 0; | |
var uuid; | |
var server = http.createServer(function(req, res) { | |
var domain = require('domain'); | |
var reqd = domain.create(); | |
var uuid = require('node-uuid').v1(); | |
rid += 1; |
Published to HN: https://news.ycombinator.com/item?id=5643342
Quite recently an article calling to stay away from rebase was published, in which the author states that you should absolutely never rebase. Well... that's bullshit.
This file contains hidden or 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
from flask import Flask, Response | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return Response('{}', headers={'content-encoding': 'gzip'}) |