Skip to content

Instantly share code, notes, and snippets.

View anitawoodruff's full-sized avatar
😁

Anita W anitawoodruff

😁
View GitHub Profile

Game of Thrones Kata

Rules

  1. Any living character with fewer than two living family members dies, as if their House became extinct.

  2. Any living character with two or three living family members, lives on to the next episode.

  3. Any living character with more than three living family members dies, as if by assassination.

  4. Any dead character with exactly three living family members is reanimated, as if by the Night King.

@anitawoodruff
anitawoodruff / test.html
Created February 5, 2018 17:20
testing gists
<script>
alert("hi");
</script>
@anitawoodruff
anitawoodruff / resubscribe.html
Last active October 26, 2016 17:30
Testing multiple subscribe() calls
<!doctype html>
<!-- View this at https://rawgit.com/anitawoodruff/b41cad489dba75cdbaf2ea942450cd1f/raw/ -->
<head>
<meta name=viewport content="initial-scale=1">
</head>
<body>
<a href="https://gist.github.com/anitawoodruff/a859c8e6c50082114cef2c1ccf7e5c8b">View code</a><br><br>
<button id="btn">Subscribe</button>
<script>
navigator.serviceWorker.register('sw-resubscribe.js');
@anitawoodruff
anitawoodruff / index.html
Last active February 5, 2018 17:30 — forked from johnmellor/index.html
Notification text action demo
<!doctype html>
<!-- View this at https://rawgit.com/anitawoodruff/b41cad489dba75cdbaf2ea942450cd1f/raw/ -->
<meta name=viewport content="initial-scale=1">
<a href="https://gist.github.com/anitawoodruff/b41cad489dba75cdbaf2ea942450cd1f">View code</a><br><br>
<button id="myButton">Show notification</button>
<script>
navigator.serviceWorker.register('sw.js');
document.getElementById('myButton').addEventListener('click', event => {
navigator.serviceWorker.ready.then(swRegistration => {
Notification.requestPermission(permission => {