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
if (typeof require !== "undefined" && typeof Avro === "undefined") { | |
var Avro = require("../lib/validator.js").Avro; | |
} | |
/** | |
* autograph.model.gen.PersonId (AUTOGENERATED) | |
*/ | |
if (typeof autograph === "undefined") { | |
var autograph = {}; | |
} |
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
import collection.JavaConversions._ | |
import java.net.URI | |
import java.net.ConnectException | |
import java.util.concurrent.TimeUnit | |
import com.couchbase.client.protocol.views.ViewRow | |
import com.couchbase.client.CouchbaseClient | |
import com.couchbase.client.protocol.views.Query | |
import java.util.concurrent.TimeUnit | |
import com.couchbase.client.protocol.views.ComplexKey | |
import com.couchbase.client.protocol.views.Stale |
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
# When running Docker (0.8-0.11.1) on an Ubuntu 14.04 or Amazon Linux host, | |
# using btrfs, the btrfs partition fills up when building a container with | |
# docker-in-docker. | |
# | |
# STEPS TO REPRODUCE: | |
# 1. Launch a new EC2 instance with Ubuntu 14.04, 64-bit, m3.large. | |
# 2. Log in with `ssh -i /path/to/key.pem ubuntu@ec2-hostname`. | |
# 3. Copy this script to the EC2 instance and run it. | |
# 4. Wait ~3 minutes, and you'll see the error at the bottom. | |
# |
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
diff -r 5b025577f8ab cmd/present/static/slides.js | |
--- a/cmd/present/static/slides.js Fri Jun 13 12:42:11 2014 +1000 | |
+++ b/cmd/present/static/slides.js Fri Jun 13 06:09:06 2014 -0700 | |
@@ -10,6 +10,8 @@ | |
var curSlide; | |
+var showNotes; | |
+ | |
/* ---------------------------------------------------------------------- */ |
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
$ go test -test.run=Concurrency | |
*** Error in `/tmp/go-build871593397/github.com/sourcegraph/go-vcs/vcs/_test/vcs.test': double free or corruption (top): 0x0000000001549d60 *** | |
======= Backtrace: ========= | |
/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7faa96ef7996] | |
/usr/local/lib/libgit2.so.0(+0x77acc)[0x7faa974d3acc] | |
/usr/local/lib/libgit2.so.0(+0x77b24)[0x7faa974d3b24] | |
/usr/local/lib/libgit2.so.0(+0x77cdd)[0x7faa974d3cdd] | |
/usr/local/lib/libgit2.so.0(+0x9bea5)[0x7faa974f7ea5] | |
/usr/local/lib/libgit2.so.0(+0x6c1aa)[0x7faa974c81aa] | |
/usr/local/lib/libgit2.so.0(+0x6c381)[0x7faa974c8381] |
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 db | |
import ( | |
"strings" | |
"time" | |
"github.com/sqs/modl" | |
) | |
// SimpleQueue is a PostgreSQL-backed queue with atomic enqueue and dequeue, no |
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
[ | |
{ | |
“Name”: “twitter-text-dart”, | |
“Type”: “DartPackage”, // same as defined in the Srclibtoolchain | |
“Files”: [ | |
“lib/foo.dart”, “lib/bar.dart” // all files related to the Dart package (used as make prereqs in Makefile generated by srclib underlying backend) | |
], | |
“Ops”: { // just use this - null means use the registered toolchain for graphing/depresolving DartPackage source units | |
“graph”: null, | |
“depresolve: null |
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
javascript:(function(){ if (window.location.hostname !== "github.com" && window.location.hostname !== "sourcegraph.com") { alert("This bookmarklet may only be used on GitHub.com or Sourcegraph.com, not " + window.location.hostname + "."); return; } var pats = [ ["^/([^/]+)/([^/]+)/tree/([^/]+)$", "/github.com/$1/$2@$3", "^/github\.com/([^/]+)/([^/@]+)@([^/]+)$", "/$1/$2/tree/$3"], ["^/([^/]+)/([^/]+)/tree/([^/]+)/(.+)$", "/github.com/$1/$2@$3/-/tree/$4", "^/github\.com/([^/]+)/([^/@]+)@([^/]+)/-/tree/(.+)$", "/$1/$2/tree/$3/$4"], ["^/([^/]+)/([^/]+)/blob/([^/]+)/(.+)$", "/github.com/$1/$2@$3/-/blob/$4", "", ""], ["^/([^/]+)/([^/]+)$", "/github.com/$1/$2", "^/github\.com/([^/]+)/([^/]+)$", "/$1/$2"], ["^/([^/]+)$", "/$1", "^/([^/]+)$", "/$1"], ]; var pathname = window.location.pathname; if (window.location.hostname === 'sourcegraph.com') { if (pathname.indexOf('/sourcegraph.com/') === 0) { pathname = pathname.replace('/sourcegraph.com/', '/github.com/'); } else if (pathname.indexOf('/sourcegraph/') === 0) { pa |
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
/** | |
* Returns true iff url == uri-resolve(url, candidate) per | |
* https://tools.ietf.org/html/rfc3986#section-5.2.2. For example, if currentURL is | |
* http://example.com/foo and newURL is /foo, then it returns true. | |
*/ | |
export function resolvesToEqual(url: URI | string, candidate: URI | string): boolean { | |
if (typeof url === 'string') { url = URI.parse(url); } | |
if (typeof candidate === 'string') { candidate = URI.parse(candidate); } | |
const change: { |
OlderNewer