Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone [email protected]:AKSW/OntoWiki.git
Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone [email protected]:AKSW/OntoWiki.git
| // Server config | |
| sv_cheats 1 | |
| mp_limitteams 0 | |
| mp_autoteambalance 0 | |
| mp_maxrounds 999 | |
| mp_roundtime 60 | |
| mp_roundtime_defuse 60 | |
| mp_maxmoney 60000 | |
| mp_startmoney 60000 | |
| mp_freezetime 0 |
| // voice toggle for clutching | |
| alias "clutchtoggle" "clutchon" | |
| alias "clutchon" "voice_scale 0;cl_showfps 0;alias clutchtoggle clutchoff" | |
| alias "clutchoff" "voice_scale 0.1;cl_showfps 1;alias clutchtoggle clutchon" | |
| bind "mouse3" "clutchtoggle" | |
| alias "voicetoggle" "voiceon" | |
| alias "voiceon" "voice_enable 1;say_team voice_enable 1;alias voicetoggle voiceoff" | |
| alias "voiceoff" "voice_enable 0;say_team voice_enable 0;alias voicetoggle voiceon" | |
| bind "u" "voicetoggle" |
| package data | |
| // Data model structs | |
| type Post struct { | |
| Id string `json:"id"` | |
| Text string `json:"text"` | |
| } | |
| // Mock data | |
| var latestPost = &Post{ |
| package data | |
| import ( | |
| "github.com/graphql-go/graphql" | |
| "github.com/graphql-go/relay" | |
| ) | |
| var postType *graphql.Object | |
| var queryType *graphql.Object | |
| var Schema graphql.Schema |
| package main | |
| import ( | |
| "github.com/graphql-go/graphql" | |
| ) | |
| var queryType = graphql.NewObject(graphql.ObjectConfig{ | |
| Name: "Query", | |
| Fields: graphql.Fields{ | |
| "latestPost": &graphql.Field{ |
| package main | |
| import ( | |
| "net/http" | |
| "github.com/graphql-go/graphql" | |
| "github.com/graphql-go/handler" | |
| ) | |
| var queryType = graphql.NewObject(graphql.ObjectConfig{ |
| import { mockServer, MockList } from 'graphql-tools'; | |
| import casual from 'casual-browserify'; | |
| // The GraphQL schema. Described in more detail here: | |
| // https://medium.com/apollo-stack/the-apollo-server-bc68762e93b | |
| const schema = ` | |
| type User { | |
| id: ID! | |
| name: String |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net" | |
| "os" | |
| "time" | |
| ) |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).