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
'use strict' | |
# imports | |
assign = require('lodash.assign') | |
babelify = require('babelify') | |
browserify = require('browserify') | |
buffer = require('vinyl-buffer') | |
gulp = require('gulp') | |
eslint = require('gulp-eslint') | |
gutil = require('gulp-util') |
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
'use strict'; | |
// the base application component for syllabus | |
class Test extends React.Component{ | |
constructor(){ | |
// create this | |
super(); | |
// set the initial state |
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
#!/usr/bin/env python3 | |
class Meta(type): | |
""" | |
Keeps track of classes derived from a base | |
""" | |
@classmethod | |
def __prepare__(cls, name, bases, **kwds): |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Value an interface for anything with a value. | |
type Value interface { | |
Value() interface{} |
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
enum Species { | |
Dog | |
Cat | |
} | |
type Animal { | |
species: Species | |
breed: 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
enum Species { | |
Dog | |
Cat | |
} | |
type Animal { | |
species: Species | |
breed: 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
type User { | |
username: String! | |
history: [Bid] | |
favoritePhoto: Photo | |
photoGallery: [Photo] | |
} | |
type Auction { | |
photo: Photo | |
offers: [Bid] |
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
type User { | |
id: ID! | |
username: String! | |
history: [Bid] | |
favoritePhoto: Photo | |
photoGallery: [Photo] | |
} | |
type Auction { | |
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
type User { | |
id: ID! | |
username: String! | |
history: [Bid] | |
} | |
type Auction { | |
id: ID! | |
offers: [Bid] | |
highestOffer: Bid |
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
extend type User { | |
favoritePhoto: Photo | |
photoGallery: [Photo] | |
} | |
extend type Auction { | |
photo: Photo! | |
} | |
extend type Photo { |
OlderNewer