Skip to content

Instantly share code, notes, and snippets.

View davidtaylorhq's full-sized avatar

David Taylor davidtaylorhq

View GitHub Profile
import Component from '@glimmer/component';
export default class extends Component {
classNameBindings = ":value-list"
valueList = true;
}
Some component here
import Component from '@ember/component';
export default Component.extend({
actions: {
toggle(){
this.set("shouldShow", !this.shouldShow);
}
}
})
@davidtaylorhq
davidtaylorhq / codenames-timer.js
Last active August 15, 2022 17:22
Timer UI for codenames.game
/*
Add-on timer for https://codenames.game
When run, a popup window will be opened with a countdown timer.
The timer will automatically reset when a team completes its turn.
There is also a manual reset control and duration setting
To run, start a game, then paste this entire gist into your browser developer tools.
Alternatively, add this URL as a bookmarklet:
javascript:fetch("https://gist.githubusercontent.com/davidtaylorhq/b64c294122dafbaf244ad7a53ce7a82a/raw/codenames-timer.js").then(response => response.text()).then(eval)
### Keybase proof
I hereby claim:
* I am davidtaylorhq on github.
* I am davidtaylorhq (https://keybase.io/davidtaylorhq) on keybase.
* I have a public key ASAmJUHYd5-2pkpCLAKsjkvYxgn7g1H4jmX-PKHpZwPNtgo
To claim this, I am signing this object: