Skip to content

Instantly share code, notes, and snippets.


Spencer Carney spencercarnage

View GitHub Profile

Keybase proof

I hereby claim:

  • I am spencercarnage on github.
  • I am spencercarney ( on keybase.
  • I have a public key ASA5uuLhRpHwpDAgUo-QIoHM4VQ-AbTX0br-612G95o1iAo

To claim this, I am signing this object:

View webpack.config.js
var path = require('path');
var merge = require('webpack-merge');
var webpack = require('webpack');
var ProgressPlugin = require('webpack/lib/ProgressPlugin');
var CleanPlugin = require('clean-webpack-plugin');
var webpackUtils = require('./webpackUtils'); // helper file for common tasks
var common;
var config;
common = {
spencercarnage / compass cli callback
Last active Jan 4, 2016
Execute commands from CLI to perform specfic Grunt task(s) after Compass compilation
View compass cli callback
# Add this to your Compass config.rb to perform a Grunt-specific task after Compass
# compiles your Sass.
# see if a shell command exists
def which(cmd)
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
exts.each { |ext|
exe = File.join(path, "#{cmd}#{ext}")
return exe if File.executable? exe
spencercarnage / gist:6786259
Created Oct 1, 2013
Sample grunt config using browserify
View gist:6786259
module.exports = function(grunt) {
  // Project configuration.
    pkg: grunt.file.readJSON('package.json'),
browserify: {
pages: {
files: [
expand: true,
cwd: 'javascript/src/pages/',
View core.test.js
//Wait for relevant code bits to load before starting any tests
define(['core.js'], function( core ) {
module("Core Tests");
test("Test core methods", function(){
equals( 1, 1, "A trivial test");
ok( true, "Another trivial test");
spencercarnage / require.js is loading the data-main script twice
Last active Dec 14, 2015
require.js is loading the data-main script twice
View require.js is loading the data-main script twice
<!DOCTYPE doctype 5>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<script data-main="js/test" src="/js/libs/require-2.1.4.js"></script>
View glg
alias glg='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr by %an)%Creset" --abbrev-commit --date=relative'
View application.js
if (!Modernizr.input.placeholder){
if (!Modernizr.textarea.placeholder){
spencercarnage / gist:b16100b536f6df0262ac
Created Apr 15, 2015
Babelify transform with runtime
View gist:b16100b536f6df0262ac
"browserify": {
"transform": [
"optional": [
"whitelist": [
spencercarnage / New Directory Structure
Created Apr 7, 2015
refactoring the atlas component to use a better directory structure
View New Directory Structure
├── atlas.module.js
├── atlas.provider.js
├── atlas.provider_spec.js
├── circle.directive_spec.js
├── circle.directive.spec.js
├── connection
├── connection.directive.js
├── connection.directive_spec.js
├── connection.controller.js
You can’t perform that action at this time.