Skip to content

Instantly share code, notes, and snippets.

Stian Soiland-Reyes stain

Block or report user

Report or block stain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:10012153
: stain@harold ~;curl -LiH "Accept: text/turtle" http://orcid.org/0000-0001-9842-9718/notfound
HTTP/1.1 404 Not Found
Server: nginx/1.1.19
Content-Type: text/turtle; qs=3;charset=UTF-8
Date: Sun, 06 Apr 2014 22:29:22 GMT
Access-Control-Allow-Origin: *
Connection: keep-alive
Set-Cookie: X-Mapping-fjhppofk=B2DFB1F63A3D97059291392F5F649BA0; path=/
Content-Length: 549
View manifest.json
{
"@context" : [ "https://w3id.org/bundle/context" ],
"id" : "/",
"manifest" : [ "/.ro/manifest.json", "/manifest.xml" ],
"createdOn" : "2013-05-30T20:18:08Z",
"aggregates" : [ {
"file" : "/manifest0.xml",
"folder" : "/",
"mediatype" : "http://identifiers.org/combine.specifications/omex-metadata",
"createdOn" : "2013-05-30T20:18:08Z",
View creator-might-be-a-bag.sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
SELECT ?agent
WHERE
{ { ?r dct:creator _:b0 .
_:b0 rdfs:member ?agent
}
View gist:a98cba3cbe32a35a5f1e
Python 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mock
>>> import select
>>> select.select([1], [1,2], [1])
([], [1, 2], [])
>>> sel = select.select
>>> select.select = mock.Mock()
>>> select.select([1], [1,2], [1])
View workflowrun.prov.ttl
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix cnt: <http://www.w3.org/2011/content#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
@prefix wfprov: <http://purl.org/wf4ever/wfprov#> .
@prefix dcam: <http://purl.org/dc/dcam/> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
View gist:c6404b959b1b38232b43
/home/stain/src/seek/app/controllers/models_controller.rb:93: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0057 p:---- s:0268 e:000267 CFUNC :to_s
c:0056 p:0056 s:0265 e:000263 METHOD /home/stain/src/seek/app/controllers/models_controller.rb:93
c:0055 p:0012 s:0260 e:000259 METHOD /home/stain/.rvm/gems/ruby-2.1.2@seek-0-21-biovel/gems/actionpack-3.2.17/lib/action_controller/metal/implicit_render.rb:4
c:0054 p:0011 s:0254 e:000253 METHOD /home/stain/.rvm/gems/ruby-2.1.2@seek-0-21-biovel/gems/actionpack-3.2.17/lib/abstract_controller/base.rb:167
c:0053 p:0023 s:0249 e:000248 METHOD /home/stain/.rvm/gems/ruby-2.1.2@seek-0-21-biovel/gems/actionpack-3.2.17/lib/action_controller/metal/rendering.rb:10
c:0052 p:0010 s:0245 e:000244 BLOCK /home/stain/.rvm/gems/ruby-2.1.2@seek-0-21-biovel/gems/actionpack-3.2.17/lib/abstract_controller/callbacks.rb:18
@stain
stain / gist:aaf5bc710defc36f5d16
Last active Aug 29, 2015
Loading new artifacts from inside a Taverna Beanshell
View gist:aaf5bc710defc36f5d16
import net.sf.taverna.raven.repository.Artifact;
import net.sf.taverna.raven.repository.BasicArtifact;
import net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader;
LocalArtifactClassLoader cl = (LocalArtifactClassLoader) getClass().getClassLoader();
Artifact a = new BasicArtifact("com.example", "fred", "0.1.0");
cl.getRepository().addArtifact(a);
cl.getRepository().update(); // force any download and resolution
View gist:b3c8ca07cf92ab3cac2c
NoMethodError in Workflows#new
Showing /home/stain/src/seek/app/views/workflows/_form.html.erb where line #33 raised:
undefined method `find_by_name' for #<Class:0x00000008f6dcb0>
Extracted source (around line #33):
30: "It may not be appropriate for all workflows to be ran in this manner, for example certain workflows with interactions.") -%>
View gist:8fb6ed182eed9ff339ce
<dd prefix="pav: http://purl.org/pav/">
<a rel="pav:authoredBy" href="http://orcid.org/0000-0001-9842-9718" >
<span property="foaf:name">Stian Soiland-Reyes</span></a>,
<a href="http://www.cs.manchester.ac.uk/">University of Manchester</a></dd>
View gist:3edb9c3beee930da7bff
@prefix : <http://localhost/issue-management/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://www.w3.org/2002/07/owl#> .
You can’t perform that action at this time.