Skip to content

Instantly share code, notes, and snippets.

View NiallEgan's full-sized avatar

Niall Egan NiallEgan

  • Microsoft
  • London
View GitHub Profile
from microbit import *
networkID = 0 # Change the channel variable in the radio.configure to this
def selectNetwork(): # Call this function before calling anything else
global networkID
currentID = networkID
while True:
if button_a.is_pressed() and button_b.is_pressed():
networkID = currentID
from microbit import *
import radio
xImage = Image("90009:"
"09090:"
"00900:"
"09090:"
"90009")
radioMap = {"left": b'\xF0', "right": b'\x0F',
from microbit import *
import radio
xImage = Image("90009:"
"09090:"
"00900:"
"09090:"
"90009")
radioMap = {"left": b'\xF0', "right": b'\x0F',
@NiallEgan
NiallEgan / revisionGuide.md
Created April 28, 2018 22:44
CST Revision Guide

CST Revision Guide for Emmanuel College Students

Below are some tips on revision for Part 1A CST, made with <3 by your wonderful subject parents, Niall & Matteo.

Paper 1

FoCS

Despite its name, this is mostly just a functional programming course. The only way to get good at it is by doing all of the past exam questions. Paulson's book, ML for the Working Progammer also provides some useful exercices and more detail. Don't forget the simple definitions in there too, e.g. big O notation, as that is also examinable.

OOP

@NiallEgan
NiallEgan / revisionGuide.md
Created April 28, 2018 22:44
CST Revision Guide

CST Revision Guide for Emmanuel College Students

Below are some tips on revision for Part 1A CST, made with <3 by your wonderful subject parents, Niall & Matteo.

Paper 1

FoCS

Despite its name, this is mostly just a functional programming course. The only way to get good at it is by doing all of the past exam questions. Paulson's book, ML for the Working Progammer also provides some useful exercices and more detail. Don't forget the simple definitions in there too, e.g. big O notation, as that is also examinable.

OOP