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, | |
errorCode: null, | |
}, | |
states: { |
const activeTripMachine = Machine( | |
{ | |
id: 'activeTrip', | |
initial: 'inactive', | |
context: { | |
trip: null, | |
}, | |
states: { | |
inactive: { | |
invoke: { |
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'], |
<!-- jQuery 1.7.0 min --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> |
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.