- Dominion Hinterlands - Expansion for my favourite board game
- Clank A deck building board game (my favourite type of board game), apparently very good!
- Camel Up (2nd edition) a fun and strategic camel racing game
- The latest Legend of Zelda game
- A game about commanding tiny plant pixies to beat up insects Pikmin 4
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
import reactBem from 'react-bem'; | |
class Component() { | |
const name = 'Anna', age = 42; | |
return reactBem(<section className="User:& &-active"> | |
<ul className="&_details"> | |
<li className="&_name"> | |
Name: <span className="&_name &-highlight">{name}</span> | |
</li> | |
<li className="&_age italic">Age: {age}</li> |
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
import random | |
random.seed(42) | |
UUID_ENTROPY = 122 | |
UUID_COUNT = 1 << UUID_ENTROPY | |
BIT_MASK_FULL = UUID_COUNT - 1 | |
INDEX_OFFSET = 0 | |
INDEX_OFFSET = random.randrange(UUID_COUNT) |
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
AQAAAAMAAAAAAAAAAgACAAMAogCbAJMAAwCiAJsAkwABAAUAAQAFAAAAWQAAAIJu1XMCAIJu1XMCAIJuGnQCAKhuXnQCAM5u53QCABtvtHUCAI5vxnYCAE1wYHgCADNxP3oCAItyMH0CAFZ07oACACJ2rIQCAIZ4e4kCAN55bIwCADd7044CAGl8spACACh9xJECAMF91pICADR+o5MCAIF+cJQCAPR++ZQCAEB/gpUCAGZ/xpUCAI1/T5YCALN/T5YCANl/lJYCAP9/2JYCACaAHJcCAEyAHJcCAHKAHJcCAJmAYZcCAL+AYZcCAOWApZcCAAuB6pcCADKBc5gCAFiBQJkCAH6ByZkCAMuBDZoCAPGBlpoCAD6C2poCAGSCH5sCAIqCH5sCANeCH5sCAP2CH5sCAEmDH5sCALyDH5sCAAmE2poCAHyElpoCAMiEUZoCADuFDZoCAK6FyZkCAEeGhJkCALqGhJkCAFOHQJkCABKI+5gCAF+I+5gCAKuIt5gCANGIt5gCANGIc5gCANGILpgCAKuILpgCAIWILpgCADiI6pcCAOyH6pcCAMaH6pcCAHmHpZcCAFOHpZcCAAaHYZcCAOCGYZcCALqGYZcCAJOGHJcCAG2GHJcCACGGHJcCANSF2JYCAGGF2JYCABWF2JYCAKKE2JYCAFWElJYCAAmElJYCAOODlJYCAOOD2JYCAOODHJcCAAmEHJcCAAmEYZcCAAmEpZcCAAmE6pcCAAmELpgCAOODLpgBAOODLpgEAAMAsACEAEAAAwCwAIQAQAAAADQAAADBYH9yAgDBYH9yAgDnYH9yAgANYX9yAgANYTtyAgA0YTtyAgBaYfZxAgCAYfZxAgDNYbJxAgDzYW1xAgBAYilxAgBmYilxAgCMYuVwAgCyYuVwAgD/YqBwAgAlY1xwAgBLYxdwAgCYYxdwAgC+Y9NvAgDlY49vAgALZEpvAgAxZEpvAgBXZAZvAgB+ZMFuAgDKZH1uAgDwZDhuAgAXZThuAgA9ZfRt |
The goal in this example is to count the number of books each author has written, from a list of book objects.
Example input:
const books = [
{ author: "Jane", name: "Foo: a bar" },
{ author: "John", name: "Tale of Zim" },
{ author: "Jan", name: "Legend of Gir" },
{ author: "Jane", name: "Zig 2: the sequel" },
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
{ | |
"/slf4j-logkit/org/slf4j/implStaticLoggerBinder.java": { | |
"coveredLines": 7, | |
"totalLines": 78 | |
}, | |
"/slf4j-logkit/org/apache/jmeter/loggingLogkitLoggerAdapter.java": { | |
"coveredLines": 137, | |
"totalLines": 327 | |
}, | |
"/slf4j-logkit/org/apache/jmeter/loggingLogkitLoggerFactory.java": { |
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
var assert = require('assert'); | |
describe('Synchronous timeout', () => { | |
beforeEach(() => { | |
var x = Date.now(); | |
while (Date.now() < x + 2100) {} | |
}); | |
it('Tests nothing', () => assert.equal(1, 1)); | |
}); |
Prototype for a Perch-inspired CMS template.
- Tags based on handlebars, using JS syntax for arguments
- Four tags:
block
- defines a named section in the CMSrepeat
- allows items to repeated; can set min, max or exact number of repetitionscontent
- defines a piece of content, same kind of configuration as Perch, sensible defaults based on where the tag is used (i.e. text in a<p>
, URL in ahref
, text in analt
),template
- loads another file as a template, templates can contain any of the four tags
Thinking about something like: {{ template('shared/content', {shared: true}) }}
to allow templates to be shared across different pages.
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
#!/usr/bin/env bash | |
set -euo pipefail | |
for BRANCH in $(git branch | grep -E -v "^(\* | (develop|master|main)$)"); do | |
if [[ -z $(git --no-pager log develop..$BRANCH --author=$(git config user.email)) ]]; then | |
git branch -D $BRANCH | |
fi | |
done |
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
sudo find / -name ".DS_Store" -depth -exec rm {} \; |
NewerOlder