Skip to content

Instantly share code, notes, and snippets.

View msucorey's full-sized avatar

Corey Wofford msucorey

View GitHub Profile
@msucorey
msucorey / pull_request_template.md
Created January 30, 2023 15:12
A Copilot generated PR template

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

@msucorey
msucorey / sharpen-your-saw.js
Created February 25, 2020 00:13
Challenge for Feb 2020 Sharpen Your Saw
const dateTranslate = (annTimeUtc, tooEarlyTimeUtc) => {
const time = new Date();
const annTime = annTimeUtc.toTimeString().slice(0,5).split(':').join('');
const tooEarlyTime = tooEarlyTimeUtc.toTimeString().slice(0,5).split(':').join('')
const timeZoneOffset = time.getTimezoneOffset()
const correctedTime = tooEarlyTime - timeZoneOffset / 60;
return `At ${annTime}, Steve said that ${correctedTime} was too early to get up`;
}
@msucorey
msucorey / .markdown
Created August 29, 2019 15:09
🐝 & 🌹