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 secret = "dooboolab0!"; | |
const repo = "./whichwitch-server"; | |
const http = require('http'); | |
const crypto = require('crypto'); | |
const exec = require('child_process').exec; | |
http.createServer(function (req, res) { | |
req.on('data', function(chunk) { | |
let sig = "sha1=" + crypto.createHmac('sha1', secret).update(chunk.toString()).digest('hex'); |
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
server { | |
listen 80; | |
listen 443 ssl; | |
server_name dooboo.dev; | |
ssl_certificate /root/cert/certificate.crt; | |
ssl_certificate_key /root/cert/private.key; | |
location / { |
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
for i in $(find lib -type f -name "*.d.ts"); | |
do sh -c "flowgen $i -o ${i%.*.*}.js.flow"; | |
done; |
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 { ApolloClient, ApolloLink, HttpLink, InMemoryCache } from 'apollo-boost'; | |
import { AsyncStorage } from 'react-native'; | |
import { GRAPHQL_URL } from '../../config'; | |
import { WebSocketLink } from 'apollo-link-ws'; | |
import { getMainDefinition } from 'apollo-utilities'; | |
import { onError } from 'apollo-link-error'; | |
import { setContext } from 'apollo-link-context'; | |
import { split } from 'apollo-link'; |
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 models, { ModelType } from './models'; | |
import { ApolloServer } from 'apollo-server-express'; | |
import { Http2Server } from 'http2'; | |
import { JwtUser } from './utils/auth'; | |
import { PubSub } from 'graphql-subscriptions'; | |
import { User } from './models/User'; | |
import { allResolvers } from './resolvers'; | |
import { createApp } from './app'; | |
import { createServer as createHttpServer } from 'http'; |
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 { | |
PanGestureHandler, | |
PanGestureHandlerGestureEvent, | |
PinchGestureHandler, | |
PinchGestureHandlerStateChangeEvent, | |
State, | |
} from 'react-native-gesture-handler'; | |
import React, { ReactChildren, ReactElement } from 'react'; | |
import { Animated } from 'react-native'; |
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 data = [ | |
{ | |
date: '2019-12-13', | |
group: 'person', | |
type: 'domain', | |
visitors: 48, | |
appearanceTimeInSecs: 986, | |
}, | |
{ | |
date: '2019-12-13', |
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 { CacheConfig, GraphQLResponse, RequestParameters, Variables } from 'relay-runtime'; | |
const FETCH_URL = 'https://hackatalk.azurewebsites.net/graphql'; | |
export type FetchArgProps = { | |
request: RequestParameters; | |
variables: Variables; | |
cacheConfig: CacheConfig; | |
token?: string | null; | |
}; |
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 { | |
CacheConfig, | |
Environment, | |
GraphQLResponse, | |
Network, | |
RecordSource, | |
RequestParameters, | |
Store, | |
Variables, | |
} from 'relay-runtime'; |
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
{ | |
"coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "ts", "tsx", "js", "jsx"], | |
"prettier.eslintIntegration": true | |
} |