Skip to content

Instantly share code, notes, and snippets.

View mariorodriguespt's full-sized avatar
🏠
Working from home

Mário Rodrigues mariorodriguespt

🏠
Working from home
View GitHub Profile
//atmosphere packages: jparker:crypto-aes , matb33:collection-hooks
var encryptionKey = "adsffe534tryertrrtweGe";
//Before insert Hooks, I decide to use it only in the server. If you use on the client and server, you're encrypting it twice.
Todos.before.insert( function( userId , doc ){
doc.text = CryptoJS.AES.encrypt( doc.text , encryptionKey ).toString();
} );
const toggleMachine = createMachine({
id: 'toggle',
initial: 'inactive',
states: {
inactive: { on: { TOGGLE: 'active' } },
active: { on: { TOGGLE: 'inactive' } }
}
});
class SimpleToggle {
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:
{ Code: [ 'LIV' ],
Name: [ 'LendInvest' ],
Address1: [ 'Two Fitzroy Place' ],
Address2: [ '8 Mortimer Street' ],
Address3: [ '' ],
Town: [ 'London' ],
County: [ '' ],
Country: [ '' ],
PostCode: [ 'W1T 3JJ' ],
PhoneNumber: [ '020 3846 6838' ],
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({
const _ = require("lodash");
const boat = {
color : {
back : "red",
front : {
noose : "grey",
hood : "blue"
}
}
{
"presets": ["react-native"],
"plugins": [
["module-resolver", {
"root": ["./src"],
"alias": {
"Components" : "./src/components",
"components" : "./src/components",
"screens" : "./src/screens",
"Colours" : "./src/constants/Colours.js",
const buttonsViews = {
'close' : CloseButton,
'open' : OpenButton,
'delete' : DeleteButton
}
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
stepUP(){
this.setState({
currentStep : 2
})
}
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
stepUP(){
this.setState({
currentStep : 2
})
}