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
@alanshaw
alanshaw / meteor-asciify-slides.md
Last active December 20, 2015 03:39
METEOR ASCIIFY

What do we want?

Messages!

When do we want them?

Yesterday! Wait,

 ___ ___ ___ 
@alanshaw
alanshaw / gist:6270911
Last active December 21, 2015 07:28
Scrape polestarglobal.com [where to buy page](http://web.polestarglobal.com/about/where-to-buy) for import into django
var Browser = require("zombie")
, defaults = require("defaults")
var regionMap = {
"Africa": 1,
"Asia/Pacific": 2,
"Europe": 3,
"Middle East": 4,
"North America": 5,
"South America": 6
@alanshaw
alanshaw / nodebot-logo.css
Last active December 23, 2015 05:19
The official nodebot logo implemented purely in CSS. It uses percentages for internal elements so resizing is simply a case of overriding the width/height on the .nodebot class.
.nodebot {
width: 450px;
height: 450px;
background: #f3df49;
position: relative;
}
.nodebot div {
position: absolute;
background: #2e2e2c;
}
@alanshaw
alanshaw / gist:7411296
Created November 11, 2013 10:45
JavaScript test for Array
function isArray (obj) {
return Object.prototype.toString.call(obj) == "[object Array]"
}
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")