Skip to content

Instantly share code, notes, and snippets.

View TannerQuigley's full-sized avatar

Tanner Quigley TannerQuigley

View GitHub Profile
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';
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):
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];