Skip to content

Instantly share code, notes, and snippets.

@nbargnesi
nbargnesi / issue-10.xbel
Created June 12, 2012 19:05
Issue 10 test case
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bel:document xmlns:bel="http://belframework.org/schema/1.0/xbel"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://belframework.org/schema/1.0/xbel http://resource.belframework.org/belframework/1.0/schema/xbel.xsd">
<bel:header>
<bel:name>Issue10</bel:name>
<bel:description>Loss of statement support backing equal edges</bel:description>
<bel:version>10</bel:version>
</bel:header>
<bel:namespaceGroup>
261,262c261,262
< # Except the ``url``. Requests on Py3 *really* wants that to be a
< # string, not bytes.
---
> # Except the ``url`` and ``headers``. Requests on Py3 *really*
> # wants those to be strings, not bytes.
264c264
< bytes_headers = {}
---
> _headers = {}
@nbargnesi
nbargnesi / gist:6357526
Created August 27, 2013 18:54
mongo-hacker Makefile patch for quoting source path in ln command
diff --git a/Makefile b/Makefile
index 7e327d2..8b229e0 100644
--- a/Makefile
+++ b/Makefile
@@ -10,4 +10,4 @@ mongo_hacker.js: ${base} ${config} ${hacks}
install:
@echo "INSTALLATION"
@echo "Linking MongoHacker to .mongorc.js in your home directory:"
- rm -f ~/.mongorc.js && ln -sf $(CURDIR)/mongo_hacker.js ~/.mongorc.js
+ rm -f ~/.mongorc.js && ln -sf "$(CURDIR)/mongo_hacker.js" ~/.mongorc.js
def test():
pass
{
"completion": {
}
}
@nbargnesi
nbargnesi / belhop-snippet.js
Last active August 29, 2015 14:13
BELHop Snippet
/**
* @file BELHop JavaScript library.
* @author OpenBEL Committers
* @license Apache-2.0
*/
(function() {
var root = this;
/**