This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const readline = require('readline'); | |
const {google} = require('googleapis'); | |
// If modifying these scopes, delete token.json. | |
const SCOPES = ['https://www.googleapis.com/auth/spreadsheets']; | |
// The file token.json stores the user's access and refresh tokens, and is | |
// created automatically when the authorization flow completes for the first | |
// time. | |
const TOKEN_PATH = 'token.json'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import radio | |
import random | |
from microbit import display, Image, button_a, sleep, uart | |
flash = [Image().invert()*(i/9) for i in range(9, -1, -1)] | |
radio.on() | |
uart.init(115200) | |
def get_serial_number(type=hex): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dbURL = 'https://magneta-mvp.herokuapp.com/users' | |
let brandUserID = '5d57078dd48b5a00177167d9'; | |
let campaign; | |
const getUrlParams = () => { | |
const uurl = window.location.href; | |
let paramsObj = {}; | |
let params = uurl.split('?')[1]; | |
if (params) { | |
params = params.split('#')[0]; |