This file contains hidden or 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
ROLLBAR_WRITE_ACCESS_TOKEN= | |
MAIN_APP_URL='https://...' | |
ROLLBAR_USERNAME= |
This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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
const dogLifeMachine = Machine({ | |
id: 'dogLife', | |
initial: 'bored', | |
context: { | |
}, | |
states: { | |
bored: { | |
on: { | |
LETS_PLAY: 'door' | |
} |
This file contains hidden or 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
const dogPlay = Machine({ | |
id: 'dogplay', | |
initial: 'sleeping', | |
context: { | |
doorOpen: false, | |
}, | |
states: { | |
sleeping: { | |
on: { |
This file contains hidden or 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
const trafficLightMachine = Machine({ | |
id: 'traffic-light', | |
initial: 'green', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
green: { | |
on: { |
This file contains hidden or 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
const dogTrainingMachine = Machine({ | |
id: 'dogTraining', | |
initial: 'bored', | |
context: { | |
}, | |
states: { | |
bored: { | |
on: { | |
LETS_PLAY: 'door' |
This file contains hidden or 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
const API = Cypress.env('API'); | |
const headers = { | |
Authorization: '', | |
}; | |
Cypress.Commands.add('loginUser', () => { | |
return cy.readFile('aad-tokens.json') | |
.then(creds => { | |
// set auth headers so test setup calls are authorized |
This file contains hidden or 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 { RollbarService, RollbarErrorHandler, rollbarFactory } from './rollbar'; | |
@NgModule({ | |
... | |
providers: [ | |
{ | |
provide: ErrorHandler, | |
useClass: RollbarErrorHandler | |
}, |
This file contains hidden or 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
<!-- Paste the following into your Reveal.js index.html to add +/- buttons to every <code> section --> | |
<style> | |
.reveal .fullscreen { | |
width: 1000px; | |
height: 600px; | |
position: fixed; | |
top: 0; | |
left: 0; | |
z-index: 100; | |
max-height: none; |
This file contains hidden or 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
try: | |
from urllib.parse import urlparse | |
except ImportError: | |
from urlparse import urlparse | |
from livereload import Server, shell | |
from pelican import Pelican | |
from pelican.settings import read_settings | |