git hook for adding a jira ticket number to relevant commits.
Note: It expects relevant branches to have this naming pattern: PREFIX/USER_NAME/JIRA-TICKET
> cd PROJECT_ROOT/.git/hooks/
import { createMachine, actions, assign } from "xstate"; | |
const { raise } = actions; | |
const stubbornMachine = createMachine({ | |
id: "number", | |
context: { | |
numb: 0, | |
}, | |
on: { | |
"number.reset": { |
const activeTripMachine = Machine( | |
{ | |
id: 'activeTrip', | |
initial: 'inactive', | |
context: { | |
trip: null, | |
}, | |
states: { | |
inactive: { | |
invoke: { |
const activeTripMachine = Machine( | |
{ | |
id: 'activeTrip', | |
initial: 'inactive', | |
context: { | |
trip: null, | |
errorCode: null, | |
}, | |
states: { |
const activeTripMachine = Machine({ | |
id: 'activeTrip', | |
initial: 'init', | |
context: { | |
trip: null, | |
lastTrip: null, | |
pollInterval: 15000, | |
}, | |
states: { | |
init: { |
const activeTripMachine = Machine({ | |
id: 'activeTrip', | |
initial: 'init', | |
context: { | |
tripId: null, | |
pollInterval: 30000, | |
}, | |
states: { | |
init: { | |
exit: ['hasActiveTrip'], |
git hook for adding a jira ticket number to relevant commits.
Note: It expects relevant branches to have this naming pattern: PREFIX/USER_NAME/JIRA-TICKET
> cd PROJECT_ROOT/.git/hooks/
I hereby claim:
To claim this, I am signing this object:
Just things I've enjoyed watching.
Users expect Progressive Web Apps interfaces to be responsive and intuitive. In this session we dissect some UI components, and see how we can build them in a performant way that delights our users.
#!/bin/bash | |
echo "Removing dependencies..."; | |
rm -rf $1/**/node_modules; | |
echo "Ziping..."; | |
zip -r -q $1.zip $1; | |
echo "Removing original..."; | |
rm -rf $1; |
27/12/14 14:18:35,492 Chroma[44698]: Unable to simultaneously satisfy constraints: | |
( | |
"<NSLayoutConstraint:0x6080002809b0 V:[NSImageView:0x60800016e7c0]-(13)-| (Names: CRAddRowView:0x6080001ff200, '|':CRAddRowView:0x6080001ff200 )>", | |
"<NSLayoutConstraint:0x608000280a00 CRAddRowView.centerY == NSImageView:0x60800016e7c0.centerY (Names: CRAddRowView:0x6080001ff200 )>", | |
"<NSLayoutConstraint:0x608000280a50 V:|-(12)-[NSImageView:0x60800016e7c0] (Names: CRAddRowView:0x6080001ff200, '|':CRAddRowView:0x6080001ff200 )>" | |
) | |
Will attempt to recover by breaking constraint | |
<NSLayoutConstraint:0x608000280a00 CRAddRowView.centerY == NSImageView:0x60800016e7c0.centerY (Names: CRAddRowView:0x6080001ff200 )> |