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
☁ ~ npm show cache
npm http GET https://registry.npmjs.org/cache
^C% ☁ ~ npm show cached
{ name: 'cached',
description: 'Simple access to a cache',
'dist-tags': { latest: '0.4.1' },
versions: [ '0.0.1', '0.4.1' ],
maintainers: 'jkrems <jan.krems@gmail.com>',
time:
@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);
#coffee test.coffee
bar
bar
@mcculloughsean
mcculloughsean / environments.local.yml
Created February 12, 2013 13:32
Local development config for quick reloading
development:
compile_javascript: false
compile_javascript: css
node_modules/
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
@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) {
@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 / control-your-templates.md
Created October 16, 2012 03:32
Control Your Templates

Control Your Templates!

@mcculloughsean

module.exports =
env: process.env.NODE_ENV ? 'development'