Brenna O'Brien - The myth of the “Real JavaScript Developer” (Front-Trends 2016)
Bret Victor - Inventing on Principle
Bret Victor - The Future of Programming
Brian Fitzpatrick - The Myth of the Genius Programmer
Brian Lonsdorf - Hey Underscore, You're Doing It Wrong!
Brian Lonsdorf - Oh Composable World!
Bryan Cantrill - Debugging Under Fire: Keep your Head when Systems have Lost their Mind (GOTO 2017)
Bryan Cantrill - Oral Tradition in Software Engineering (Monktoberfest 2016)
Cheng Lou - On the Spectrum of Abstraction (react-europe 2016)
Computerphile - [The Problem
This file contains hidden or 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 functions = require('firebase-functions') | |
const cors = res => { | |
res.setHeader('Timing-Allow-Origin', 'https://nice-timer.web.app') | |
res.setHeader('Access-Control-Allow-Origin', 'https://nice-timer.web.app') | |
res.setHeader('Access-Control-Allow-Methods', 'GET,HEAD,OPTIONS') | |
res.setHeader('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept') | |
return res | |
} | |
exports.now = functions.https.onRequest((_, res) => cors(res).send(`${Date.now()}`)) |
This file contains hidden or 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 parseNote = noteStr => { | |
const [ note, rest = '' ] = noteStr.split('.') | |
const duration = durations[rest.slice(0, -1)] / tempo | |
return { | |
duration, | |
frequency: notes[note], | |
type: types[rest[rest.length - 1]] || types[0], | |
} | |
} |
This file contains hidden or 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
(HD - Movies) Birds.Of.Prey.2020.1080p.WEBRip.x264.AAC5.1-MP4, Uploaded Y-day 06:49, Size 2.01 GiB, ULed by MrStark | |
(HD - Movies) The.Invisible.Man.2020.1080p.WEBRip.x264.AAC5.1-MP4, Uploaded 03-20 17:45, Size 2.29 GiB, ULed by MrStark | |
(HD - Movies) The.Invisible.Man.2020.720p.WEBRip.x264.AAC2.0-MP4, Uploaded 03-20 15:43, Size 1.12 GiB, ULed by MrStark | |
(HD - Movies) Onward.2020.720p.WEBRip.x264.AAC2.0-MP4, Uploaded 03-21 21:06, Size 939.84 MiB, ULed by MrStark | |
(HD - Movies) Contagion.2011.1080p.BRRip.x264.AAC5.1-MP4, Uploaded 03-20 16:35, Size 1.89 GiB, ULed by MrStark | |
(HD - Movies) Star.Wars.Episode.IX.The.Rise.Of.Skywalker.2019.1080p.BRRip.x264, Uploaded 03-16 08:29, Size 2.61 GiB, ULed by MrStark | |
(HD - Movies) Contagion.2011.720p.BRRip.x264.AAC2.0-MP4, Uploaded 03-20 16:34, Size 978.29 MiB, ULed by MrStark | |
(HD - Movies) Parasite.2019.1080p.HDRip.X264.AC3-EVO[TGx], Uploaded 08-16 2019, Size 2.8 GiB, ULed by sotnikam | |
(HD - Movies) Jumanji.The.Next.Level.2019.720p.BRRip.x264.AAC2.0-MP4, Uploaded 03-01 |
This file contains hidden or 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 eq = (a, b) => { | |
if (a === b) return true | |
if (!a || !b) return false | |
if (typeof a !== typeof b) return false | |
if (typeof a === 'number' && Number.isNaN(a) && Number.isNaN(b)) return true | |
if (typeof a === 'object') { | |
if (a.constructor !== b.constructor) return false | |
const entries = Object.entries(a) | |
if (entries.length !== Object.values(b).length) return false | |
for (const [k,v] of entries) { |
This file contains hidden or 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 { createServer, get } = require('http') | |
const index = ` | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>streamable</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> |
This file contains hidden or 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
local function empty(tbl) | |
if type(tbl) == 'string' then return #tbl == 0 end | |
if type(tbl) ~= 'table' then return true end | |
if #tbl ~= 0 then return false end | |
for k, v in pairs(tbl) do return false end | |
return true | |
end | |
local function len(tbl) |
This file contains hidden or 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
// pop the inspector and findyour authURL | |
// past this in the console | |
[...$$('a')] | |
.map(h => h.href) | |
.filter(a => a.startsWith('https://www.netflix.com/watch/')) | |
.map(a => a.split('/')[4].split('?')[0]) | |
.map(n => fetch("https://www.netflix.com/api/shakti/v5bb18c11/playlistop", { | |
credentials: "include", | |
headers: {}, | |
referrer: "https://www.netflix.com/browse/my-list", |
This file contains hidden or 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
FROM node:10-alpine | |
RUN \ | |
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ | |
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \ | |
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ | |
&& apk --no-cache update \ | |
&& apk --no-cache upgrade \ | |
&& apk add --no-cache --virtual .build-deps \ | |
gifsicle pngquant optipng libjpeg-turbo-utils \ |