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 gcpslog | |
import ( | |
"context" | |
"fmt" | |
"golang.org/x/exp/slog" | |
"io" | |
"os" | |
"runtime" | |
"strconv" |
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
// from https://blog.apollographql.com/three-ways-to-represent-your-graphql-schema-a41f4175100d | |
// https://blog.apollographql.com/modularizing-your-graphql-schema-code-d7f71d5ed5f2 | |
const fs = require("fs"); | |
const glob = require("glob"); | |
const { graphqlSync, getIntrospectionQuery } = require("graphql"); | |
const { makeExecutableSchema } = require("graphql-tools"); | |
const typeDefs = glob | |
.sync("../graphql/*.graphql") |
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 { createStore, applyMiddleware, combineReducers } from "redux"; | |
import thunk from "redux-thunk"; | |
import { userReducer, UserAction, UserState } from "./user"; | |
import { handshakeReducer, HandShakeAction, HandshakeState } from "./handshake"; | |
import { productInfoReducer, ProductInfoAction, ProductInfoState } from "./product"; | |
import { circleReducer, CircleAction, CircleState } from "./circle"; | |
export const store = createStore(combineReducers({ | |
user: userReducer, |
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
aaa |
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-lock.json | |
node_modules/ | |
*.js |
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
interface Hello { | |
hello(): string; | |
} | |
interface Named { | |
name: string; | |
} | |
function parrot<T extends Named>(obj: T): T { | |
return obj; | |
} |
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
node_modules/ | |
*.js |
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
"use strict"; | |
{ // sample | |
class Base { | |
static hello() { | |
return "test"; | |
} | |
} | |
class Inherit extends Base { | |
} |
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
node_modules/ | |
npm-debug.log | |
.vscode | |
*.js |
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
node_modules/ | |
.vscode/ | |
npm-debug.log | |
index.js | |
index.jsx |
NewerOlder