I hereby claim:
- I am caseywebb on github.
- I am caseywebb (https://keybase.io/caseywebb) on keybase.
- I have a public key ASAl0HVqJCnXXNmFSoGVTs4zfjEg63jI0Xftwy83UKxP2Qo
To claim this, I am signing this object:
#! /bin/bash | |
# | |
# Enable port forwarding | |
# | |
# Requirements: | |
# your Private Internet Access user and password as arguments | |
# | |
# Usage: | |
# ./port_forward.sh <user> <password> |
I hereby claim:
To claim this, I am signing this object:
'use strict' | |
const ko = require('knockout') | |
const _ = require('lodash') | |
ko.bindingHandlers.numericValue = { | |
init(el, valueAccessor, allBindings) { | |
const vstr = ko.pureComputed(() => ko.unwrap(valueAccessor()).toString()) | |
ko.applyBindingsToNode(el, { |
{ | |
"scripts": { | |
"install": "napa" | |
}, | |
"dependencies": { | |
"animate.css": "^3.2.5", | |
"autolinker": "^1.0.0", | |
"babel-polyfill": "^6.5.0", | |
"blueimp-file-upload": "^9.9.3", | |
"bootstrap": "^3.3.4", |
'use strict' | |
const spawn = require('cross-spawn') | |
const byline = require('byline') | |
const gulp = require('gulp') | |
const eslint = require('gulp-eslint') | |
module.exports = (done) => { | |
const diff = spawn('git', ['--no-pager', 'diff', '--cached', '--name-only', '*.js']) | |
const scripts = [] |
'use strict' | |
let _; const { each, map, some, every } = _ = require('lodash') | |
const ko = require('knockout') | |
const $ = require('jquery') | |
const Query = require('ko-querystring').default | |
module.exports = class LinkList { | |
constructor({ | |
sections, |
const { concat, endsWith, flatMap, includes, map, reduce } = require('lodash') | |
const routes = require('./routes') | |
function createSiteMap(routes) { | |
return reduce(routes, (accum, { routes: children }, route) => | |
concat(accum, | |
children | |
? flatMap(createSiteMap(children), (child) => { | |
let r = route + child | |
r = r.replace(new RegExp('//', 'g'), '/') |
'use strict' | |
const { each } = require('lodash') | |
incrementTabCount() | |
window.addEventListener('unload', decrementTabCount) | |
window.addEventListener('storage', (e) => { | |
if (e.key === 'getSessionStorage') { | |
// Some tab asked for the sessionStorage |
import events from '../events' | |
const COURSE_TYPES = new Map([ | |
['/', 0], | |
['/on-demand', 1], | |
['/live', 2], | |
['/assessment', 4] | |
]) | |
export default { |
import ko from 'knockout' | |
import Router from 'ko-component-router' | |
ko.components.register('app', { | |
template: '<ko-component-router params="routes: routes"></ko-component-router>', | |
viewModel: class App { | |
constructor() { | |
this.routes = { | |
'/user/:id/!': [loadUser, 'user-show'] | |
} |