Skip to content

Instantly share code, notes, and snippets.

View dbarden's full-sized avatar

Daniel Barden dbarden

View GitHub Profile
@dbarden
dbarden / .clang-format
Last active August 29, 2015 14:04
Clang Format
BasedOnStyle: Chromium
AccessModifierOffset: 0
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
@dbarden
dbarden / Articles
Created February 10, 2012 17:31
Interesting Articles
Web
http://blog.steveklabnik.com/posts/2011-07-03-nobody-understands-rest-or-http
Various
http://www.paulgraham.com/hamming.html
@dbarden
dbarden / Chamaleon-stylus.m
Created November 2, 2011 05:16
The server modification for Stylus support
if (!path.existsSync(localFile)) {
response.writeHead(404);
response.end();
return;
}
fs.readFile(localFile, function(error, content) {
if (error) {
response.writeHead(500);
response.end();