Skip to content

Instantly share code, notes, and snippets.

View hazeledmands's full-sized avatar

Hazel Edmands hazeledmands

View GitHub Profile
# Casual Grammar
/{{\s*\W?\s*\w+\s*}}|{{!.*?}}|{{{\s*(\w+)\s*}}}/g
# Informal Grammar
<template> ::= (<static-content> <tag>)* <static-content>
<static-content> ::= <text>+
<tag> ::= "{{" <whitespace>* [<tag-type>] <whitespace>* <tag-name> <whitespace>* "}}" |
@christineyen
christineyen / annotated git branches
Last active February 3, 2023 21:35
Longer-lived feature branches can usually benefit from notes, so you can figure out more quickly where you were at in the process. TIL about branch descriptions, and made it easier to keep track of my various branches.
sample output: branch names have been changed to protect the innocent
cyen:~/working-path (christine.maybe-whipped-cream)$ git branchdate
2 hours ago master
2 hours ago christine.maybe-whipped-cream
3 hours ago christine.magic-shell -- make sure to use the stuff that hardens, not just choc syrup
10 days ago christine.maybe-add-caramel-syrup
4 weeks ago christine.serve-in-cream-puff -- WIP; current implementation looks too small
5 months ago christine.cream-puff-proof-of-concept