Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mário Rodrigues mariorodriguespt

🏠
Working from home
View GitHub Profile
View toogle.js
const toggleMachine = createMachine({
id: 'toggle',
initial: 'inactive',
states: {
inactive: { on: { TOGGLE: 'active' } },
active: { on: { TOGGLE: 'inactive' } }
}
});
class SimpleToggle {
View gist:14c2b5f97814ccd763674b4bff4e97d6
2019-04-22T18:27:39.803428912Z 2019-04-22T18:27:39.803Z INFO piecestore uploaded {"Piece ID": "Y5QFKGHEQ2T5LR3AZZPX5ENVGR2QY65U7KX6WKMTHVW2LAQ3N27A"}
2019-04-22T18:32:51.993106725Z 2019-04-22T18:32:51.992Z INFO running on version v0.9.1
2019-04-22T18:34:14.270380601Z 2019-04-22T18:34:14.270Z DPANIC INVALID NODE TYPE: transport dial node
2019-04-22T18:34:34.270180560Z 2019-04-22T18:34:34.269Z DPANIC INVALID NODE TYPE: connection failed
2019-04-22T18:34:34.270402174Z 2019-04-22T18:34:34.270Z DPANIC INVALID NODE TYPE: connection failed
2019-04-22T18:43:08.842661152Z 2019-04-22T18:43:08.842Z DPANIC INVALID NODE TYPE: transport dial node
2019-04-22T18:43:09.217512045Z 2019-04-22T18:43:09.217Z DPANIC INVALID NODE TYPE: connection failed
2019-04-22T18:43:09.217699681Z 2019-04-22T18:43:09.217Z DPANIC INVALID NODE TYPE: connection failed
2019-04-22T18:44:55.382705980Z 2019-04-22T18:44:55.382Z DPANIC INVALID NODE TYPE: transport dial node
2019-04-22T18:45:15.382922242Z 2019-04-22T18:45:15.382Z DPANIC INVALID NODE TYPE:
View gist:12bde38d2c213f3c0c1b26b780002f9c
{ Code: [ 'LIV' ],
Name: [ 'LendInvest' ],
Address1: [ 'Two Fitzroy Place' ],
Address2: [ '8 Mortimer Street' ],
Address3: [ '' ],
Town: [ 'London' ],
County: [ '' ],
Country: [ '' ],
PostCode: [ 'W1T 3JJ' ],
PhoneNumber: [ '020 3846 6838' ],
View gist:2bf5869202f0d829dd9a1035017e0c66
import React from "react";
import ReactDOM from "react-dom";
import { map } from "async";
import { userInfo } from "os";
import { ApolloProvider, Query } from "react-apollo";
import ApolloClient from "apollo-boost";
import gql from 'graphql-tag'
const client = new ApolloClient({
View boats.js
const _ = require("lodash");
const boat = {
color : {
back : "red",
front : {
noose : "grey",
hood : "blue"
}
}
View gist:44746d4053f24f38a0825aaa85291d1c
{
"presets": ["react-native"],
"plugins": [
["module-resolver", {
"root": ["./src"],
"alias": {
"Components" : "./src/components",
"components" : "./src/components",
"screens" : "./src/screens",
"Colours" : "./src/constants/Colours.js",
View buttonBarConfig.js
const buttonsViews = {
'close' : CloseButton,
'open' : OpenButton,
'delete' : DeleteButton
}
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
View gist:2e0262c3fc9e9e4493fcb0c4d3b321b8
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
stepUP(){
this.setState({
currentStep : 2
})
}
View gist:ec4a2265c01c3d504f00159244800a51
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
stepUP(){
this.setState({
currentStep : 2
})
}
View data-container.jsx
const containerFunction = {
getMeteorData: ( props , context ) => {
console.log( 'context' , context );
...secret code...
return {
isReady ,
timelineEvents
};