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 React, { Component } from 'react'; | |
| import { render } from 'react-dom'; | |
| const gql = require('graphql-tag'); | |
| import { graphql } from 'react-apollo'; | |
| import appRoot from 'app-root-path'; | |
| import store from '../../store.js'; | |
| const Recent_Query = gql(` | |
| query recent_query($username: String! $type: String! ){ | |
| recent (username: $username type: $type){ |
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 React, { Component } from 'react'; | |
| import { render } from 'react-dom'; | |
| import { ApolloClient, createNetworkInterface, ApolloProvider, graphql } from 'react-apollo'; | |
| import History_HOC from './history-hoc' | |
| import appRoot from 'app-root-path'; | |
| import store from '../../store'; | |
| const config = require(`${appRoot}/config/config.js`); | |
| let graphqlClient = require(appRoot + '/models/graphql-client.js'); | |
| export default class RecentHistory extends Component { |
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 { | |
| GraphQLEnumType, | |
| } from 'graphql'; | |
| var recentTypes = new GraphQLEnumType({ | |
| name: 'recentTypess', | |
| values: { | |
| // The values are going to be used in the actual redis key itself | |
| // i.e. analytics => recent:analytics:username | |
| "Analytics" : { value: "analytics" }, |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| labels: | |
| app: lettuce-redis | |
| name: lettuce-redis-6684f999c4-kfdfr | |
| namespace: default | |
| ownerReferences: | |
| - apiVersion: extensions/v1beta1 | |
| name: lettuce-redis-6684f999c4 |
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
| kind: PersistentVolumeClaim | |
| apiVersion: v1 | |
| metadata: | |
| name: let-us-claim | |
| annotations: | |
| volume.beta.kubernetes.io/storage-class: "slow" | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: |
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
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: pv0001 | |
| spec: | |
| capacity: | |
| storage: 5Gi | |
| accessModes: | |
| - ReadWriteOnce | |
| persistentVolumeReclaimPolicy: Recycle |
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
| apiVersion: storage.k8s.io/v1 | |
| kind: StorageClass | |
| metadata: | |
| name: slow | |
| provisioner: memorialhealth/nfs |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| fmt.Println("Hello, playground") | |
| mp := messagePrint{"foo"} |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| fmt.Println("Hello, playground") | |
| mp := messagePrint{"foo"} |
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| foo := newMyStruct() | |
| foo.myMap["bar"] = "baz" | |