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
const childOf = function () {
return this.parents.map(parent => parent.name).join(' & ') || "parents unknown"
}
const thirdGen = [
{
name: "Bernard",
parents: [],
childOf: childOf
},
const {google} = require('googleapis')
const atob = require('atob')
const scopes = [
'https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.readonly',
'https://www.googleapis.com/auth/drive.file'
]
const auth = new google.auth.JWT(process.env.DRIVE_CLIENT_EMAIL, null, atob(process.env.DRIVE_PRIVATE_KEY), scopes)
const docs = google.docs({version: 'v1', auth})
{
"startIndex": 30766,
"endIndex": 30795,
"table": {
"rows": 3,
"columns": 2,
"tableRows": [
{
"startIndex": 30767,
"endIndex": 30776,

Papper - Portfolio Mapper

This tool to map the competencies covered in an apprentices portfolio can be found here:

https://papper.whitehatcoaches.org.uk

Constrants or Conns

  • Apprentices have to have their portfolio as a Google Doc
  • Can at the moment generate page references (you would have to click through)

SWE Newsletter

Important dates

May 2019 Cohort - Module 4 Full Stack + CI/CD | Mon 10 - Fri 21 August

Industry News

  • Apple is moving to ARM chips for it's laptops!
  • Big Sur (MAC OS 11) coming in the Autumn new UI

SWE Newsletter 15 June

Important dates

Aug 2019 Cohort - Module 3 BCS Software Methodologies | Mon 15 - Fri 26 June

Industry News

PS5 launch 🤩.

SWE Newsletter 2

Important dates

Aug 2019 Cohort - Module 3 BCS Software Methodologies | Mon 15 - Fri 26 June

Industry News

💰 The company behind the React-based Gatsby framework has raised $28m in series B funding!

SWE Newsletter 1

Important dates

Oct 2019 Cohort - Module 2 Microsoft Technical Associate | Mon 1 - Fri 12 June

Aug 2019 Cohort - Module 3 BCS Software Methodologies | Mon 15 - Fri 26 June

Industry News

@bmordan
bmordan / rainbow-colors.js
Created August 29, 2019 08:14
Rainbow colors
window.onload = function () {
function addColorBrick (color) {
$('body').append(`<div class="h2 w2" style="background-color:${color};"></div>`)
}
function sine_wave(val) {
if (val > 6) return
const red = Math.sin(val) * 127 + 128
const green = Math.sin(val + 2) * 127 + 128
const blue = Math.sin(val + 4) * 127 + 128
require "sqlite3"
DB = SQLite3::Database.new("./database.db")
class Todo
attr_reader :id, :task, :status
def initialize(task, status = 0, id = nil)
@task = task
@status = status == 1