Skip to content

Instantly share code, notes, and snippets.

View lyntco's full-sized avatar

Lyn Cooper lyntco

  • Sydney Australia
View GitHub Profile
let disco, playing = false;
const dots = document.getElementsByTagName('rect');
const box = document.getElementsByTagName('g')[0];
const getRandomNumber = () => {
return Math.floor(Math.random() * 255) + 1;
};
const getRandomCol = () => {
return `rgb(${getRandomNumber()}, ${getRandomNumber()}, ${getRandomNumber()})`;
You can access the UI at the localhost:`PORT_SPECIFIED`.
Example curl:
curl -H "Content-Type: application/json" -X POST -d '[{
"type": "email",
"data": {
"title": "welcome email for tj",
"to": "tj@learnboost.com",
"template": "welcome-email"
},

Keybase proof

I hereby claim:

  • I am lyntco on github.
  • I am lynt (https://keybase.io/lynt) on keybase.
  • I have a public key whose fingerprint is 13C9 8E59 5CBC 6A93 23AE F14A 10C7 838D 1897 D24E

To claim this, I am signing this object:

@lyntco
lyntco / faq.md
Last active August 29, 2015 14:09
WDI FAQ
@lyntco
lyntco / q020-crypto.md
Last active September 7, 2017 21:58
Quiz - Decode this message!

Quiz - Decode this message!

Write a program to decode this message:

FRZDUGV GLH PDQB WLPHV EHIRUH WKHLU GHDWKV, WKH YDOLDQW QHYHU WDVWH RI GHDWK EXW RQFH.

This is a form of cryptography known as the Caesar Ciper. It has a shift parameter of 3.

The alphabet is normally:

@lyntco
lyntco / q020-bdaycandles.md
Last active August 29, 2015 14:08
Quiz - Birthday Candles

Quiz - Birthday Candles

Write a program to tell you how many birthday candles a person would have had on their cakes total if every year they had an accurate number of candles to birth years on their cakes.

Example method call:

candle_count('01-01-2014')
# => '0 candles have burned for you'
candle_count('01-01-2012')
# => '3 candles have burned for you'
@lyntco
lyntco / q018-dice.md
Created October 22, 2014 22:13
Quiz - Dice

Quiz - Dice

Write a program to generate a standard dice roll.

Dice.roll
# => 6

It should give you a different result each time.

@lyntco
lyntco / q017-strbucks.md
Created October 19, 2014 22:05
Quiz - Starbucks

Quiz - Starbucks

Write a program that holds on to coffee orders.

c1 = Coffee.new('latte','2 sugars','medium','Darryl')

Write the .to_s method for this class so when you puts c1 you will have "Darryl's latte, medium, 2 sugars."

@lyntco
lyntco / q016-elevator.md
Last active August 29, 2015 14:07
Quiz - Elevator

Quiz - Elevator

Write a program that will tell you how many levels you'll travel in an elevator/lift. For now, let's pretend that this building has inifite stories above and below ground.

elevator(1,3)
# => "You'll go up 2 levels"
elevator(3,1)
# => "You'll go down 2 levels"
@lyntco
lyntco / q013-hbd.md
Last active August 29, 2015 14:07
Quiz - Happy Birthday

Happy Birthday

Write a program that asks what year a person was born in, then the month, then the day.

Figure out how old they are and give them a cake for each birthday they have had.

Extensions

  1. Give them a cupcake for how many months old they are.
  2. Give them a crumb for how many days old they are.