Milestone | Status | Notes |
---|---|---|
S |
Sep 22, 2023 | Source map hackathon
Attendees: artem.kobzar@jetbrains.com Benedikt Meurer Daniel Ehrenberg denise.l.mccoy@gmail.com hmanilla@mozilla.com holger@replay.io Jaroslav Sevcik jon.kuperman@gmail.com Jutta Simon Eric Leese luca.forstner@sentry.io Meysam Sarabadani Mathias Bynens Ryan Day tobias.koppers@googlemail.com
Notes
- Going through issues first, starting with the correctness stream.
- List source map implementations
This file contains 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
export const cfTeamsAccessAuthMiddleware = async ({request, data, env, next}) => { | |
try { | |
const userEmail = request.headers.get("cf-access-authenticated-user-email") | |
if (!userEmail) { | |
throw new Error("User not found, make sure application is behind Cloudflare Access") | |
} | |
// Pass user info to next handlers | |
data.user = { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.foo { | |
color: blue; | |
} | |
#bar { | |
color: red; | |
} |
This file contains 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
interface Admin { | |
id: string; | |
role: string; | |
} | |
interface User { | |
email: string; | |
} | |
function redirect(usr: Admin | User) { | |
if("role" in usr) { | |
// I was amazed TS knew this was an Admin type |
- I have a Node app running locally with Express + React + etc.
- I have an /etc/hosts entry mapping 127.0.0.1 to a necessary hostname
127.0.0.1 really.important.mycompany.com
- I have a standalone Docker image running selenium with standalone Chrome (https://hub.docker.com/r/selenium/standalone-chrome/)
- I have a webdriverio (http://webdriver.io/) suite of tests that need to run against the really.important.mycompany.com local hostname.
- I start the Docker image with:
docker run --name mycompany-selenium --add-host -d --rm -p 4444:4444 selenium/standalone-chrome
This file contains 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
function* createName() { | |
console.log(yield) | |
} | |
const name = createName() | |
name.next('Jon') |
This file contains 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
request.onload = function () { | |
if (this.status >= 200 && this.status < 400) { | |
var data = JSON.parse(this.response) | |
data.photos.photo.map(function (photo) { | |
var image = generateImageFromPhotoObject(photo) | |
wrapper.appendChild(image) | |
}) | |
} else { | |
wrapper.innerHTML = 'We recieved an error from the Flickr API. Please try again later.' |
This file contains 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
object Foo { | |
def bar() { | |
println("no semicolons here!") | |
val xs = List(1, 2, 3, 4) | |
xs foreach println | |
def sumOfSquares(x: Int, y: Int) { | |
(x * x) + (y * y) |
This file contains 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
def foo() { | |
var bar = 42 | |
} |
NewerOlder