Skip to content

Instantly share code, notes, and snippets.

Avatar

Tony Meyer thm-design

  • Canada
View GitHub Profile
View machine.js
const defaultContext = {
loggedIn: null,
oneIdToken: null,
oneIdGuest: null,
oneIdInitialized: false
};
const oneIdMachine = Machine({
id: "oneIdMachine",
initial: "uninitialized",
View machine.js
const initialAppContext = {
maintenance: null,
appHealth: {
codeRedemption: null,
loyalty: null,
partnerLinking: null,
purchase: null,
ticketUpload: null,
physicalRewards: null
},
View machine.js
const initialAppContext = {
maintenance: null,
appHealth: {
codeRedemption: null,
loyalty: null,
partnerLinking: null,
purchase: null,
ticketUpload: null,
physicalRewards: null
View machine.js
const trackPackageMachine = Machine({
id: "trackPackage",
initial: "idle",
context: {
results: undefined,
errorMessage: undefined
},
states: {
idle: {
on: {
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@thm-design
thm-design / index.html
Created Nov 23, 2018 — forked from kentcdodds/index.html
The one true react boilerplate
View index.html
<body>
<div id="⚛️"></div>
<script src="https://unpkg.com/react@16.0.0/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16.0.0/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
<script type="text/babel">
ReactDOM.render(<div>Hello World!</div>, document.getElementById('⚛️'))
</script>
</body>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="script.js"></script>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="script.js"></script>
@thm-design
thm-design / list.md
Created May 23, 2018 — forked from notwaldorf/list.md
Meownica's packing list
View list.md

Meownica's packing list

I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.

🚨

  • 🆔Wallet & Passport
  • 💧Travel water bottle
  • 💳Travel credit cards (don't pay foreign currency fees!)
  • 💳Insurance cards
  • 💵Local currency you have
  • 🚎Local public transport cards