This file contains 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 React from 'react'; | |
import Markdown from 'react-markdown'; | |
const containerStyles = { | |
display: 'flex', | |
flexDirection: 'column' | |
} | |
const propSetStyles = { | |
padding: '3em 0', | |
margin: 'auto' |
This file contains 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
// es6 riff on https://medium.com/@kevincennis/currying-in-javascript-c66080543528 | |
function curry(fn) { | |
const arity = fn.length | |
return (function resolver(...memory) { | |
return function(...args) { | |
const local = memory.concat(args) | |
const next = local.length >= arity ? fn : resolver | |
return next(...local) | |
}; |
This file contains 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
modules.export = belts; | |
var belts = ['black', 'canvas']; |
This file contains 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
var shownotes = require('shownotes'); | |
var Pinboard = require('node-pinboard'); | |
var _ = require( 'underscore' ); | |
var argv = require('optimist').demand(['network', 'show', 'ep','token']).argv; | |
var pinboard = new Pinboard(argv.token); | |
linksToPinboard(argv.network, argv.show, argv.ep); |
This file contains 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
var Shownotes = require('shownotes'); | |
var Pinboard = require('node-pinboard'); | |
var _ = require( 'underscore' ); | |
var api_token = 'user:NNNNNNN'; //Pinboard API token found in Settings -> Password | |
var shownotes = new Shownotes(); | |
var pinboard = new Pinboard(api_token); | |
This file contains 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
var GitHubApi = require('github'); | |
var Pinboard = require('node-pinboard'); | |
var _ = require('underscore'); | |
var github = new GitHubApi({ | |
version: "3.0.0" | |
}); | |
var api_token = "user:NNNNNN"; | |
var pinboard = new Pinboard(api_token); |