This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const head = array => array[0]; | |
const zip = (...arrays) => ( | |
head(arrays).map((value, index) => arrays.map(otherArray => otherArray[index])) | |
); | |
const map = (collection, mapFn) => ( | |
Object.keys(collection).map(key => mapFn(collection[key], key)) | |
); | |
const reduce = (collection, reduceFn, seed) => ( | |
Object.keys(collection).reduce((acc, key) => { | |
const value = collection[key]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class Injector { | |
constructor() { | |
this.loader = new System.constructor(); | |
this.loader.config({ | |
baseURL: System.baseURL, | |
defaultJSExtensions: true, | |
transpiler: System.transpiler, | |
paths: System.paths, | |
map: System.map, | |
// Map is transformed to packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/OliverJAsh/Development/frontend/static/src/javascripts/test/helpers/injector.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint-env node*/ | |
var jspm = require('jspm'); | |
var builder = new jspm.Builder(); | |
builder.buildSFX('main.js', 'build.js', { sfxFormat: 'amd' }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
"defaultJSExtensions": true, | |
"transpiler": "babel", | |
"babelOptions": { | |
"optional": [ | |
"runtime" | |
] | |
}, | |
"paths": { | |
"github:*": "jspm_packages/github/*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: git merge-pr [<branch-name>] | |
# ln -s ~/Desktop/git-merge-pr /usr/local/bin | |
# | |
# Merge the PR for a given branch, and delete branches (local and remote) | |
# afterwards. | |
# Defaults to current branch. | |
set -e | |
BRANCH=`git rev-parse --abbrev-ref HEAD` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
"baseURL": "/", | |
"transpiler": "traceur", | |
"paths": { | |
"*": "*.js", | |
"github:*": "jspm_packages/github/*.js" | |
} | |
}); | |
System.config({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tags": { | |
"commercial": [ | |
"media-network/series/brand-marketing", | |
"media-network/series/organic-marketing", | |
"teacher-network/series/schools-of-the-future", | |
"teacher-network/series/pe-and-school-sport", | |
"higher-education-network", | |
"social-care-network", | |
"media-network/series/changing-business", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import org.scalatra.sbt._ | |
import org.scalatra.sbt.PluginKeys._ | |
import com.mojolly.scalate.ScalatePlugin._ | |
import ScalateKeys._ | |
object CiapiBuild extends Build { | |
val Organization = "com.example" | |
val Name = "ci-api" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import org.scalatra.sbt._ | |
import org.scalatra.sbt.PluginKeys._ | |
import com.mojolly.scalate.ScalatePlugin._ | |
import ScalateKeys._ | |
object CiapiBuild extends Build { | |
val Organization = "com.example" | |
val Name = "ci-api" |