Skip to content

Instantly share code, notes, and snippets.

View bmordan's full-sized avatar
💭
At the command line

Bernard Mordan bmordan

💭
At the command line
View GitHub Profile
@bmordan
bmordan / Ideas.md
Last active November 11, 2015 09:02
  • A Local Authority present to their residents with the choices and challanges they face. Residents can engange through a choose your own adventure style narrative. Scenes are interspersed with other ad content. The results of choices can been seen in consequent scenes
  • You are invited by a adshal screen to visit the parks of the borough, when you visit on your phone you get a 360o view of the park. Which you can expore by moveing your phone screen around. The adshel screen then displays a 'thank you for visiting, take your rubbish home with you' in recognition of your visit.
  • Plant a digital flower or a building and watch it grow. Visit a site, create your bespoke flower/building, place it in the scene. Over time (2 - 3mins) you will see your creation take on a life of its own, growing and changing. It will eventually die, unless you visit the board again and feed, repair your creation.
  • Community tamagotchi. Each day there is a new egg, citizens have to raise the alien using their smart phones
@bmordan
bmordan / retrospective.md
Last active January 29, 2016 16:07
Retrospective November 2016

TABLEFLIP retrospective

November 2016

#;tldr

  • Going forwards we will work in 5 day sprints, from predefined and agreed workplans.
  • We will try to hang a project's admin and supporting materials off the github repo, for example; Resources and assets for a project we will store in github on the wiki pages. Workplans will be added to the body of milestones, off which will hang all the issues to complete the sprint.
  • We are going to hold hackathons on peer to peer technology in JAILmake and start a revolution in distributed computing.
  • We want to be in a position where we are choosing the projects we work on.

Todos

@bmordan
bmordan / Sprint7-payment-verification.md
Last active November 27, 2015 10:11
KitMapper Plans

KitMapper

Sprint 7 - Payment and Verification


Accounts page

We need some text in the accounts setting page to explain to the user what verification means, and to explain linking to Stripe accounts.

account-page

StreetFlower version 0.2

This first iteration will enhance the current user experince of StreetFlower.

  • Visitors will be welcomed by a visual example of how to interact with the map and flowers
  • Owners of businesses will be able to edit their business photo
  • Owners of businesses will be able to edit their business address

The second iteration will package StreetFlower as an app for Android and iOS

@bmordan
bmordan / online-safety.md
Created February 5, 2016 08:39
Blog Posts

How can we keep our young people safe on-line?

Protecting young people from inappropraite content and activity on-line is no easy task.

Most schools offer a filtered internet, preventing particular classifications of site from being accessed. Many parents also have this kind of filtering on computers at home, or as part of their internet service. But this still doesn't give you any information about what they can access.

Many parents I have spoken to are anxious about what their children are accessing online.

I found a simple solution which uses a free service and is easy to setup.

Group Accounts

Deal with account admin. Create account, update email, forgot and reset password, verify admin status.

/account

Get an account [GET]

Get account details for the currently logged in user.

  • Request (application/json)

@bmordan

2018 EU General Data Protection Regulation

  • EU Directive (current data law) vs Regulation (new data law)
    • Rules for collection, storage and usage of personal data
    • By non-EU companies
    • Codifys right to be forgotten
    • Fine data breaches 4% global revenue || 20millionEURO
  • 72 hour reporting window
var data = "something to hash";
var crypto = require('crypto');
crypto.createHash('md5').update(data).digest("hex");
// '6f4815fdf1f1fd3f36ac295bf39d26b4'
@bmordan
bmordan / alarm-clock.md
Created March 13, 2019 17:06
Events clock

Alarm Event Clock

The EventEmitter class is a core component of nodejs and we can just require it in our file then inherit it's functionality. The particular function we are most interested in is this.emit

  this.emit('tick', this.time)

Here we are emiting an event called 'tick'. Other pieces of code can listen for this event and register event handlers. An event handler is a function that will run whenever the 'tick' event is emitted. Not only that but we are also passing that event handler an argument which here is the current value of clock, which we are storing in state at this.time.

The Project Gutenberg EBook of Alice in Wonderland, by Lewis Carroll
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.org
Title: Alice in Wonderland