Skip to content

Instantly share code, notes, and snippets.

View balupton's full-sized avatar

Benjamin Lupton balupton

View GitHub Profile
@balupton
balupton / README.md
Last active August 29, 2015 14:00
Bevry member geolocation consolidation script

Bevry member geolocation consolidation script

This is an example script of doing some advanced data operations with high-level APIs

  • chainy.coffee is my upcoming way of doing this, using chainy
  • desired.js is my desired way of doing this, not yet possible
  • highland.js is a mostly-working implementation using highland

The goal of the script is to:

@balupton
balupton / README.md
Last active August 29, 2015 14:00
Checklist: Running a Google Hangout on Air

Running a Google Hangout on Air

  1. Before Creating the Hangout On Air
    1. Create a Google Document with public editing that you can use as the agenda, taking notes, and for others not able to call to keep up
  2. Creating the Hangout on Air
    1. Invite Public, and the communities as the Audience
      1. Public is needed as otherwise the video is not available on youtube and the hangout isn't visible to others afterwards
    2. Set the description to the google document
    3. Click the enable Q&a button
  3. Start the hangout
@balupton
balupton / README.md
Last active August 29, 2015 14:02
Podcasts

Podcasts

Podcasts that I've taken note of.

Libre Music

  • Starfrosch
@balupton
balupton / script.js
Created June 25, 2014 06:42
Chainy: Update base files for all repos of multiple github organisations
var util = require('util')
require('chainy').create().require('feed set map exec')
.set(['bevry', 'docpad'])
.addExtension('pagefeed', 'action', function(url, opts, next){
url = url.replace('PER_PAGE', opts.per_page).replace('PAGE', opts.page)
var chain = this
var results = []
var fetch = function(page){
chain.create()
@balupton
balupton / README.md
Created June 30, 2014 18:00
Talk: A road to open-source life
@balupton
balupton / gist:47fb659790b178f566ff
Last active August 29, 2015 14:04
Poylmer Feedback

Polymer Feedback

Things I've come accross that are unpleasant with polymer.

Template Binding

  1. There is TemplateBinding which is standalone
  2. It doesn't seem like a direct implementation of the template tag
  3. No instructions for using it standalone (turns out you have to bower install it and its dependencies and include them manually) — I've published a compiled version to npm at templatebinding
@balupton
balupton / app.js
Created December 16, 2014 12:17
Steams-based Static Site Generator
var Stream = require('stream').extend({
// arguments[i].pipe(this)
drink: function(){
var me = this
Array.prototype.slice.call(arguments).forEach(function(stream){
stream.pipe(me)
})
return this
},
// this.pipe(arguments[i])
@balupton
balupton / cssbutton.css
Created June 27, 2010 13:04
balupton's csscaffold mixins
/*
CSS3 Button Mixins
@author Benjamin "balupton" Lupton {@link http://www.balupton.com}
@author http://www.webdesignerwall.com/demo/css-buttons.html
@version 1.0, April 25 2010
Usage:
.button {
+cssbutton;
}
@balupton
balupton / multi-programmatic.html
Created June 30, 2010 05:54
Bespin multi issue. [closed]
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@balupton
balupton / jquery-lightbox-v2.0-semantics.html
Created July 18, 2010 10:55
jQuery Lightbox v2 semantics
A combination of both data attribute and CSS classnames:
<a
class="lightbox-image lightbox-image-link"
href="http://www.flickr.com/photos/jonbrown17/2271756525/"
title="View Moody Waters on Flickr"
data-lightbox-image="{title:'Moody Waters',description:'Crawley Boatshed, Perth WA.',author:{text:'jonathanbrown',title:'View jonathanbrowns Profile',url:'http://www.flickr.com/people/jonbrown17/'},large:'http://farm3.static.flickr.com/2411/2271756525_15aba52120_o.jpg',links:[{text:'Other Perth Boatshed Photos',url:'http://www.flickr.com/photos/35776898@N00/galleries/72157624368071194/'}]}"
>
<img class="lightbox-image-thumbnail" src="http://farm3.static.flickr.com/2411/2271756525_ff374888c3_s.jpg" height="75" width="75" />
</a>