View style-01.js
// my initial code from https://github.com/bevry/outpatient/blob/455fd3a32791259931e0fa4e3b9b3b7d1dc26d8b/source/block.js#L55-L75
'use strict'
const h = require('hyperscript')
module.exports = function (opts = {}) {
// Prepare
const { document, content } = this
const {
permalink = document.url,
View sprout.js
'use strict'
const exec = require('exec-then')
// prefills values for questions to ask, such that if there is a non-null value, ask the question
// if the value has a value, skip the question
// alterantive would be a `value` property on questions, which if not null, then ask the question
exports.load = function (utils) {
return utils.target.read('package.json').then(function (source) {
const data = JSON.parse(source)
return {
View next.config.js
module.exports = {
webpack: (config) => {
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
config.plugins = config.plugins || []
config.plugins.push(new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en/))
config.plugins.push(new BundleAnalyzerPlugin())
return config
}
}
View README.md

Convert XPS to PDF on Linux and Mac

Add the xps2pdf.sh contents to your bashrc file. If you don't know what that means, then run the following:

curl -fsSL https://gist.githubusercontent.com/balupton/7f15f6627d90426f12b24a12a4ac5975/raw/xps2pdf.sh | bash

Use like so:

View README.md

Powerful yet low powered DIY servers

Hardware

  • Intel Compute Stick
  • Up Board
  • Udoo x86
  • Rasberry Pi
  • Jaguar Board
  • Riot Board
View gist:a1934563e0b47ed58ef1466badef7820
Verifying that "balupton.id" is my Blockstack ID. https://onename.com/balupton
View README.md
View README.md
  • Web developer since 2005, specialist in JavaScript since 2009, used Node.js since v0.3. Created over 200 open-source JavaScript projects including over 180 npm packages, History.js (over 8000 github stars), and DocPad (over 2000 github stars).
View automate.js
const commands = [
'git reset --hard',
'rm -Rf esnextguardian.js .babelrc nakefile.js',
'wget -N https://raw.githubusercontent.com/bevry/base/master/.editorconfig',
'wget -N https://raw.githubusercontent.com/bevry/base/master/.eslintrc.js',
'wget -N https://raw.githubusercontent.com/bevry/base/master/.gitignore',
'wget -N https://raw.githubusercontent.com/bevry/base/master/LICENSE.md',
'wget -N https://raw.githubusercontent.com/bevry/base/master/.npmignore',
'wget -N https://raw.githubusercontent.com/bevry/base/master/CONTRIBUTING.md',
'wget -N https://raw.githubusercontent.com/bevry/base/master/index.js',