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
// @ts-check | |
const express = require("express"); | |
const app = express(); | |
const fs = require("fs"); | |
const bodyParser = require('body-parser'); | |
const mountPath = "/etc/config"; | |
const configMapFile = "..data"; |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
test-app: test | |
name: test | |
namespace: default | |
spec: | |
externalTrafficPolicy: Cluster | |
ports: |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
test-app: test | |
name: test | |
namespace: default | |
spec: | |
externalTrafficPolicy: Cluster | |
ports: |
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
// @ts-check | |
const express = require("express"); | |
const app = express(); | |
const fs = require("fs"); | |
const bodyParser = require('body-parser'); | |
// volume mount path | |
const mountPath = "/etc/config"; |
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
// http://stackoverflow.com/a/26227662/1527470 | |
const singleton = Symbol(); | |
const singletonEnforcer = Symbol(); | |
class SingletonEnforcer { | |
constructor(enforcer) { | |
if (enforcer !== singletonEnforcer) { | |
throw new Error('Cannot construct singleton'); | |
} |
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 express = require('express'); | |
const { graphqlExpress, graphiqlExpress } = require('apollo-server-express'); | |
const bodyParser = require('body-parser'); | |
const bunyan = require('bunyan'); | |
const mysql = require('mysql2'); | |
const graphQLServer = express(); | |
const logger = bunyan.createLogger({ name: 'server' }); | |
const GRAPHQL_PORT = 3003; |
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
if filereadable(glob(".vimrc.local")) | |
source .vimrc.local | |
endif |
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
let g:neoformat_javascript_prettier = { | |
\ 'exe': 'prettier', | |
\ 'args': ['--single-quote'], | |
\ 'replace': 0, | |
\ 'stdin': 1, | |
\ 'no_append': 1 | |
\ } | |
let g:neoformat_enabled_javascript = ['prettier'] |
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
// FilmDetail.js | |
import React, { Component, PropTypes } from 'react'; | |
import { gql, graphql } from 'react-apollo'; | |
import { | |
Text, | |
View, | |
} from 'react-native'; | |
@graphql(gql` | |
query($id: ID!) { |
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
@graphql(gql` | |
query($id: ID!) { | |
film(id: $id) { | |
title | |
openingCrawl | |
director | |
producers | |
releaseDate | |
} | |
} |