This file contains 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
//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(); | |
} ); |
This file contains 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 toggleMachine = createMachine({ | |
id: 'toggle', | |
initial: 'inactive', | |
states: { | |
inactive: { on: { TOGGLE: 'active' } }, | |
active: { on: { TOGGLE: 'inactive' } } | |
} | |
}); | |
class SimpleToggle { |
This file contains 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
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: |
This file contains 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
{ Code: [ 'LIV' ], | |
Name: [ 'LendInvest' ], | |
Address1: [ 'Two Fitzroy Place' ], | |
Address2: [ '8 Mortimer Street' ], | |
Address3: [ '' ], | |
Town: [ 'London' ], | |
County: [ '' ], | |
Country: [ '' ], | |
PostCode: [ 'W1T 3JJ' ], | |
PhoneNumber: [ '020 3846 6838' ], |
This file contains 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 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({ |
This file contains 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 _ = require("lodash"); | |
const boat = { | |
color : { | |
back : "red", | |
front : { | |
noose : "grey", | |
hood : "blue" | |
} | |
} |
This file contains 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
{ | |
"presets": ["react-native"], | |
"plugins": [ | |
["module-resolver", { | |
"root": ["./src"], | |
"alias": { | |
"Components" : "./src/components", | |
"components" : "./src/components", | |
"screens" : "./src/screens", | |
"Colours" : "./src/constants/Colours.js", |
This file contains 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
class A extends React.Component{ | |
state = { | |
scrollToDefinitionID :1 | |
}, | |
stepUP(){ | |
this.setState({ | |
currentStep : 2 | |
}) | |
} |
This file contains 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
class A extends React.Component{ | |
state = { | |
scrollToDefinitionID :1 | |
}, | |
stepUP(){ | |
this.setState({ | |
currentStep : 2 | |
}) | |
} |
NewerOlder