I hereby claim:
- I am cgbystrom on github.
- I am cgbystrom (https://keybase.io/cgbystrom) on keybase.
- I have a public key whose fingerprint is DB53 8B7D E338 2CC6 2464 A30C 39BE BCB1 2F5B EF1A
To claim this, I am signing this object:
class CORSMiddleware(object): | |
"""Enable serving of CORS requests (http://en.wikipedia.org/wiki/Cross-origin_resource_sharing)""" | |
ALLOW_ORIGIN = "*" | |
ALLOW_HEADERS = "Origin, X-Requested-With, Content-Type" | |
def __init__(self, app): | |
self.app = app | |
def __call__(self, environ, start_response): |
var util = require('util'); | |
var exec = require('child_process').exec; | |
function getNpmLinkedPackages (callback) { | |
exec('npm list --global', function (error, stdout, stderr) { | |
if (error) return callback(error); | |
if (stderr.length > 0) return callback(stderr); | |
var pkgs = stdout | |
.split('\n') |
function hookCanvasGetContext () { | |
var ctxFns = [ | |
'fillRect', | |
'save', | |
'restore', | |
'scale', | |
'rotate', | |
'translate', | |
'transform', | |
'setTransform', |
I hereby claim:
To claim this, I am signing this object:
// An example for how to map a GraphQL schema on to Scala's type system. | |
// Work in progress and still lots of unknowns but the great benefit we are after is true type safety at compile time. | |
// Tries to mimic the original Star Wars schema found in graphql-js reference impl. | |
// The schema below does not deal with Futures at all but it something we definitively need to support. | |
import scala.annotation.StaticAnnotation | |
// Test fixture data | |
object Data { |
package(default_visibility = ["//visibility:public"]) | |
load("@io_bazel_rules_go//go:def.bzl", "go_prefix", "go_binary") | |
go_prefix("helloworld") | |
go_binary( | |
name = "helloworld", | |
srcs = ["helloworld.go"], | |
) |