Skip to content

Instantly share code, notes, and snippets.

View tmf's full-sized avatar
🇨🇭

Tom Forrer tmf

🇨🇭
View GitHub Profile
addEventListener("fetch", event => {
if (event.request.method === "GET") {
return event.respondWith(handleGet(event));
}
// fallback for non-GET requests
return event.respondWith(fetch(event.request));
});
async function fetchBucket(host, path) {

Keybase proof

I hereby claim:

  • I am tmf on github.
  • I am tmf (https://keybase.io/tmf) on keybase.
  • I have a public key ASAbvmFWInDsI77fynzjpiPWlGE_-IWvgrlrOcna80kISQo

To claim this, I am signing this object:

@tmf
tmf / index.html
Created January 21, 2018 21:39
GPT refresh demo // source http://jsbin.com/tuveroq
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>GPT refresh demo</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<style id="jsbin-css">
#leaderboard {
@tmf
tmf / index.html
Created January 21, 2018 16:15
GPT Demo // source http://jsbin.com/vokiyok
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>GPT Demo</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<style id="jsbin-css">
#demo-slot {
@tmf
tmf / index.html
Created January 21, 2018 16:10
GPT Demo // source http://jsbin.com/rijuwal
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>GPT Demo</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<style id="jsbin-css">
#demo-slot {
@tmf
tmf / index.html
Created January 21, 2018 10:50
GPT Demo // source http://jsbin.com/pamujiv
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>GPT Demo</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<style id="jsbin-css">
#demo-slot {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<style id="jsbin-css">
#demo-slot {
width:320px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<style id="jsbin-css">
#demo-slot {
width:320px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<style id="jsbin-css">
#demo-slot {
width:320px;height:160px;display:flex;justify-content:center;align-items:center;color:#c5cdd3;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="http://web-components.kubernetes.doodle-test.com/styles.dev.css" rel="stylesheet"/>
<style id="jsbin-css">
#demo-slot {
width:320px;height:160px;display:flex;justify-content:center;align-items:center;color:#c5cdd3;