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
Epoch 1/2... Discriminator Loss: 2.9822... Generator Loss: 0.0750 | |
Epoch 1/2... Discriminator Loss: 1.7655... Generator Loss: 0.9984 | |
Epoch 1/2... Discriminator Loss: 2.0640... Generator Loss: 0.2003 | |
Epoch 1/2... Discriminator Loss: 0.5469... Generator Loss: 2.2514 | |
Epoch 1/2... Discriminator Loss: 0.5017... Generator Loss: 3.0328 | |
Epoch 1/2... Discriminator Loss: 1.5120... Generator Loss: 0.4518 | |
Epoch 1/2... Discriminator Loss: 0.4125... Generator Loss: 3.2917 | |
Epoch 1/2... Discriminator Loss: 0.4879... Generator Loss: 2.2174 | |
Epoch 1/2... Discriminator Loss: 2.3055... Generator Loss: 5.8401 |
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 Stack { | |
constructor() { | |
this.storage = []; | |
} | |
push(val) { | |
this.storage.push(val); | |
} | |
pop() { | |
this.storage.pop(); | |
} |
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
// See original source here: https://github.com/RyanCCollins/the-agency/tree/master/packages/ui/src/WithAnimation | |
import * as React from 'react'; | |
import { ThemedCssFunction } from 'styled-components'; | |
import Animation from './animation'; | |
import { AnimationType } from './types'; | |
export interface Props { | |
type?: AnimationType; | |
isVisible: boolean; |
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 styled, { css } from 'styled-components'; | |
import { StateProps } from './types'; | |
import { Heading } from 'ui'; | |
function styles({ isVisible }: StateProps) { | |
const opacity = isVisible | |
? 1.0 | |
: 0.0; | |
const translate = isVisible | |
? 0 |
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
.grommetux-dropzone { | |
border-width: 2px; | |
border-color: #333; | |
border-style: dashed; | |
border-radius: 4px; | |
transition: all 0.5s; | |
} | |
.grommetux-dropzone__input { | |
display: none; |
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 * as React from 'react'; | |
import { graphql } from 'react-apollo'; | |
import { Headline, LoadingIndicator, PostCard, Section, Box } from 'components'; | |
import POST_QUERY from './posts.graphql'; | |
import { StyledHr } from './styles'; | |
interface IPost { | |
id: string; | |
title: string; | |
image: string; |
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 * as React from 'react'; | |
import { graphql } from 'react-apollo'; | |
import { LoadingIndicator, Post, Section } from 'components'; | |
import POST_QUERY from './post.graphql'; | |
import COMMENT_MUTATION from './comments.graphql'; | |
interface IPostComments { | |
body: string; | |
author: string; | |
} |
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
// From server/graph/queries/post/posts.ts | |
import { | |
GraphQLList, | |
} from 'graphql'; | |
import types from '../../types'; | |
import PostModel from '../../../db/models/post'; | |
export default { | |
type: new GraphQLList(types.postType), |
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
// Comment Model Schema and related GraphQL Schema | |
// From /server/db/models/comment.ts | |
import mongoose from 'mongoose'; | |
const CommentSchema = new mongoose.Schema({ | |
author: String, | |
body: String, | |
post: { | |
type: String, | |
ref: 'Post', |