Skip to content

Instantly share code, notes, and snippets.

@EmperorEarth
EmperorEarth / README.md
Created February 19, 2016 00:45 — forked from miku/README.md
git --track vs --set-upstream vs --set-upstream-to

README

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 git@github.com:AKSW/OntoWiki.git

@EmperorEarth
EmperorEarth / practice.cfg
Last active June 24, 2016 14:14
Kevin's practice cfg
// 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
@EmperorEarth
EmperorEarth / autoexec.cfg
Created June 24, 2016 14:28
Kevin's autoexec
// 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"
@EmperorEarth
EmperorEarth / database.go
Last active August 3, 2016 06:01 — forked from sogko/database.go
hello-world-relay-part-1 - In-memory database
package data
// Data model structs
type Post struct {
Id string `json:"id"`
Text string `json:"text"`
}
// Mock data
var latestPost = &Post{
@EmperorEarth
EmperorEarth / schema.go
Last active August 3, 2016 06:12 — forked from sogko/schema.go
hello-world-relay-part-2 - Schema definition (golang)
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
@EmperorEarth
EmperorEarth / main.go
Last active August 3, 2016 07:39 — forked from sogko/main.go
hello-world-graphql-part-1 - Schema definition (golang)
package main
import (
"github.com/graphql-go/graphql"
)
var queryType = graphql.NewObject(graphql.ObjectConfig{
Name: "Query",
Fields: graphql.Fields{
"latestPost": &graphql.Field{
@EmperorEarth
EmperorEarth / main.go
Last active August 3, 2016 07:40 — forked from sogko/main.go
hello-world-graphql-part-1 - Server
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
@EmperorEarth
EmperorEarth / udp_client.go
Created September 6, 2016 03:50 — forked from reterVision/udp_client.go
A dummy UDP hole punching sample in Go
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.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).