Skip to content

Instantly share code, notes, and snippets.

Jonathan Barnett indieisaconcept

Block or report user

Report or block indieisaconcept

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View oboe-stream-request.js
'use strict';
/* eslint-disable indent */
const concat = require('concat-stream'),
parse = JSON.parse;
/* eslint-enable indent */
/**
* @ngdoc function
* @name oboeRequest
@indieisaconcept
indieisaconcept / package.json
Created Oct 11, 2016
package.json for a hanging yarn installation
View package.json
{
"name": "example",
"license": "MIT",
"version": "1.0.0",
"description": "package.json for a hanging installation",
"main": "index.js",
"author": "Jonathan Barnett <me@indieisaconcept.com>",
"devDependencies": {
"argv": "0.0.2",
"bas": "0.1.0",
View How make and deploy a tcog release.md

This HowTo should apply to all environments, with the proviso that added steps are needed for production.

Build a Release

  • Begin at the tcog (Bamboo dashboard)[http://bamboo.news.com.au/browse/NEWSTECH-TCOG].
  • In the top left of the screen, select the branch you wish to build from the dropdown.
  • You will now see the build history. Bamboo automatically builds each branch but let's create a new build.

Build

View test.md
if (tcog.experiment.isInVariant('template', 'tangram')) {
    ///... do something
}
@indieisaconcept
indieisaconcept / gist:21261cd9c7ff04be4447
Last active Aug 29, 2015
Mocking node.js dependies
View gist:21261cd9c7ff04be4447
var proxyquire = require('proxyquire').noPreserveCache(),
leche = require('leche'),
sinon = require('sinon'),
npath = require('path'),
_ = require('lodash');
/**
* @ngdoc function
* @name proxy
*
@indieisaconcept
indieisaconcept / gist:936dbf33cfc844d87968
Last active Mar 25, 2017
browserify + watchify + viny-transform + multiple bundles
View gist:936dbf33cfc844d87968
// this setup assumes you are using gulp-config for file.src & file.dest
// but can be adapted to vanilla easily.
'use strict';
var transform = require('vinyl-transform'),
browserify = require('browserify'),
watchify = require('watchify'),
// consider using gulp-load-plugins
View SassMeister-input-HTML.html
<div class="box box-one"></div>
<div class="box box-two"></div>
<div class="box box-three"></div>
<div class="box box-four"></div>
<div class="box box-five"></div>
View SassMeister-input-HTML.html
<div class="news">
<div class="module-header">news</div>
</div>
<div class="sport">
<div class="module-header">sport</div>
</div>
<div class="business">
<div class="module-header">business</div>
@indieisaconcept
indieisaconcept / SassMeister-input-HTML.html
Created Dec 11, 2013
Example of the wrong way of using variables with lists to display accent colors
View SassMeister-input-HTML.html
<div class="news">
<div class="module-header">news</div>
</div>
<div class="sport">
<div class="module-header">sport</div>
</div>
<div class="business">
<div class="module-header">business</div>
@indieisaconcept
indieisaconcept / SassMeister-input-HTML.html
Created Dec 11, 2013
Example of how not namespacing your variables can make it easier to maintain
View SassMeister-input-HTML.html
<div class="module">
<p>This is an example of using namespaced variables</p>
</div>
<div class="box">BOX</div>
You can’t perform that action at this time.