Skip to content

Instantly share code, notes, and snippets.

View mcculloughsean's full-sized avatar

Sean McCullough mcculloughsean

  • Groupon
  • San Francisco, CA
View GitHub Profile
@mcculloughsean
mcculloughsean / NodeReadingList.md
Created September 3, 2012 01:28
Node Reading List
module.exports =
env: process.env.NODE_ENV ? 'development'
@mcculloughsean
mcculloughsean / control-your-templates.md
Created October 16, 2012 03:32
Control Your Templates

Control Your Templates!

@mcculloughsean

@mcculloughsean
mcculloughsean / control-your-templates.md
Created October 16, 2012 03:35
Control Your Templates

Control Your Templates!

@mcculloughsean

Actually

Control Your Templates!

Scratch that. This talk is really about...

@mcculloughsean
mcculloughsean / piper.js
Created October 17, 2012 20:51
Pipe stdin to a file
#!/usr/bin/env node
var fs = require('fs');
var outputFile, outputStream;
if (process.argv[1] == __filename)
outputFile = process.argv[2];
if (!outputFile) {
diff --git a/spec/lumber/transports/process-test.coffee b/spec/lumber/transports/process-test.coffee
new file mode 100644
index 0000000..c60b0f9
--- /dev/null
+++ b/spec/lumber/transports/process-test.coffee
@@ -0,0 +1,53 @@
+fs = require "fs"
+path = require "path"
+mocha = require "mocha"
+assert = require("chai").assert
node_modules/
@mcculloughsean
mcculloughsean / environments.local.yml
Created February 12, 2013 13:32
Local development config for quick reloading
development:
compile_javascript: false
compile_javascript: css
#coffee test.coffee
bar
bar
@mcculloughsean
mcculloughsean / cs-extended-regex.js
Last active December 16, 2015 03:59
csr extended regex bug
// Generated by CoffeeScript 1.6.2
(function() {
var fileName;
fileName = 'foo/bar/baz.mustache';
fileName.match(/.+\/(.+)\..+\.mustache$/)[1];
}).call(this);