Skip to content

Instantly share code, notes, and snippets.

View alanshaw's full-sized avatar
🫀
https://web3.storage

Alan Shaw alanshaw

🫀
https://web3.storage
View GitHub Profile
TutorWire talk
===
About
---
* Application to put students and tutors in touch with each other
* Simple map orientated interface
* Currently in public beta at beta.tutorwire.org
@alanshaw
alanshaw / gist:10046987
Last active August 29, 2015 13:58
Meteor, MongoDB, oplog tailing and you

Meteor, MongoDB, oplog tailing and you


Prior art

  • Pub sub
  • Live data sets
  • Poll and diff
@alanshaw
alanshaw / slides.md
Last active August 29, 2015 14:01
d3 London user group talk on foam.meteor.com

Hello


foam.meteor.com

This talk is a demo!


LXJS and DRIIFT

LXJS, a perfect blend of ideas and people, inspiration and collaboration, at the same time, in the same place. Choose your own adventure and go and be part of it. We build communities by participating; beauty emerges; the compound of countless interactions.

You'll find a contributor for your project, a bastion for your bugs, a hero for a high-five, and like-minds to mine. We're all there. Come find us.

DRIIFT is going to be there to help.

We'll greet you at the door, put your name in lights and give you a heat map of the bright sparks: the people, places, workshops and parties.

@alanshaw
alanshaw / button.js
Created July 4, 2014 04:42
High five button
var five = require("johnny-five")
, board = new five.Board()
board.on("ready", function () {
var led = new five.Led(11)
var btn = new five.Button(4)
led.pulse(2000)
var offTimeout = null
@alanshaw
alanshaw / child.js
Created July 17, 2014 06:57
Meteor London server to server DDP talk
var conn = DDP.connect("http://localhost:3000")
Pictures = new Meteor.Collection("pictures", conn)
function allow () {return true}
Pictures.allow({insert: allow, update: allow, remove: allow})
if (Meteor.isClient) {
conn.subscribe("pics")
$ node
> function foo () {return this}
undefined
> foo.call(9)
{}
> foo.call("bar")
{ '0': 'b',
  '1': 'a',
 '2': 'r' }
@alanshaw
alanshaw / exercises.js
Created October 7, 2014 08:41
Exercise questions covering arguments, arrays, functions, call, apply and closures
/*
Create a module that logs out arguments to a function on separate lines.
I should be able to call the module as follows:
*/
var argLogger = require('./arg-logger');
argLogger('foo', 3, {}, function () {});
// Expected output:
// foo
@alanshaw
alanshaw / ln-subl.sh
Created November 11, 2014 11:10
Sublime from command line
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
@alanshaw
alanshaw / mf2t.md
Last active August 29, 2015 14:11
Slides for Meat Fighter 2 Turbo talk - Meteor London December 2014

Alan Shaw
@_alanshaw
tableflip.io


An experiment with meteor and websockets.

I wanted to see if I could build a game with Meteor.