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
{ | |
"name": "app", | |
"namespace": true, | |
"refmt": 3, | |
"reason": { | |
"react-jsx": 3 | |
}, | |
"bs-dependencies": [ | |
], |
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 field = ({name, type, resolver}) => { | |
return { | |
name, | |
stringifyResponse: type, | |
getFieldValue: resolver, | |
} | |
} | |
let schema = field({}) |
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
open Graphql_lwt; | |
type role = | |
| Admin | |
| User; | |
type user = { | |
id: int, | |
name: string, | |
role, |
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
type file = { | |
. | |
"path": string, | |
"data": string, | |
"mime": string, | |
"size": int, | |
}; | |
type currentImage = { | |
. |
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
module type SERIALIZABLE = sig | |
type t | |
val to_string: t -> string | |
val of_string: string -> t | |
end;; | |
implicit module SInt : SERIALIZABLE with type t = int = struct | |
type t = int | |
let to_string = string_of_int | |
let of_string = int_of_string |
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
import * as React from "react" | |
import Ripples from 'react-ripples' | |
import styled from "styled-components" | |
import { variant } from "styled-system" | |
import { MdChevronLeft, MdChevronRight } from "react-icons/md" | |
import { useTransition, animated } from 'react-spring' | |
import { Box } from "./Box" | |
import { Text } from "./Text" | |
const Wrapper = styled(Box)` |
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
Prysmian | |
Connect to ModBus | |
next -> Read register | |
Read register | |
next -> Calculate matrix | |
Calculate matrix | |
next -> Write matrix to PLC | |
Write matrix to PLC | |
next -> Process preform idle state | |
Process preform idle state |
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
module Region = { | |
[@bs.deriving abstract] | |
type t = { | |
latitude: float, | |
longitude: float, | |
latitudeDelta: float, | |
longitudeDelta: float, | |
}; | |
}; |