Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Pravda SOULPWRD

View GitHub Profile
View machine.js
const AppMachine = Machine({
id: "manualRefundApp",
initial: "new",
states: {
new: {
on: {
NEXT_STATE: {
target: "in_progress"
}
}
View machine.js
const machine = Machine({
id: "refund_services",
initial: "idle",
states: {
idle: {
on: {
FETCH: {
target: "pending"
}
}
View machine.js
const stateMachine = Machine({
id: "refunds",
initial: "initial",
states: {
initial: {
on: {
FETCH: {
target: "created"
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am soulpwrd on github.
  • I am soulpwrd (https://keybase.io/soulpwrd) on keybase.
  • I have a public key ASDW1n9n0t5iyZxXWqAgL1wZtIqzI-KnE1ps1nLl6ewYgQo

To claim this, I am signing this object:

@SOULPWRD
SOULPWRD / gist:4866edaba62475d2183cae67c56f46e1
Created Jun 10, 2018
Typescript class transpilation WTF
View gist:4866edaba62475d2183cae67c56f46e1
class Raster {
private mimeType: string;
private fileBuffer: any;
private path: string;
constructor(config) {
this.mimeType = config.mimeType;
this.fileBuffer = config.fileBuffer;
this.path = config.path;
}
}
You can’t perform that action at this time.