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
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Sfml < Formula | |
homepage 'http://www.sfml-dev.org' | |
version '2.0' | |
url 'http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-sources.zip' |
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
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Sfml < Formula | |
homepage 'http://www.sfml-dev.org' | |
version '2.0' | |
url 'http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-sources.zip' |
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
- (CGImageRef)thumbnailImageForAsset:(ALAsset *)asset | |
maxPixelSize:(NSUInteger)size | |
{ | |
NSParameterAssert(asset != nil); | |
NSParameterAssert(size > 0); | |
ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation]; | |
CGDataProviderDirectCallbacks callbacks = { | |
.version = 0, |
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
Nicos-MacBook-Pro:ggbuilds nico$ go build *.go | |
# command-line-arguments | |
./write_json.go:1: missing return at end of function |
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 main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"strconv" | |
) | |
func writeJson(rw http.ResponseWriter, v interface{}) { |
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 main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"strconv" | |
) | |
func writeJson(rw http.ResponseWriter, v interface{}) { |
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
// Available races | |
type Race string | |
const ( | |
Protoss Race = "protoss" | |
Terran Race = "terran" | |
Zerg Race = "zerg" | |
) | |
func (r *Race) iconFileURL() string { | |
// TODO: |
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
// Build struct | |
type Build struct { | |
Name string // Short name for this build | |
Description []byte // Description explaining what the build is about | |
PlayerRace Race // The race this built is meant to be played with | |
OpposingRaces []Race // The target races this build works well against | |
} |
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
type Race string | |
const ( | |
Protoss Race = "protoss" | |
Terran Race = "terran" | |
Zerg Race = "zerg" | |
) |
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
Terrest.Router.reopen | |
location: 'history' | |
Terrest.Router.map -> | |
@resource "builds", path: "/builds/:build_race", -> | |
@resource "build", path: ":build_slug" |