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
$ curl --insecure -H "Host: http://github.com " -v https://github.com .A520FF6C4690D131A96967BEDD740751FB33A230.exit/ | |
* About to connect() to proxy 127.0.0.1 port 8118 (#0) | |
* Trying 127.0.0.1... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected | |
* Connected to 127.0.0.1 (127.0.0.1) port 8118 (#0) | |
* Establish HTTP proxy tunnel to github.com.A520FF6C4690D131A96967BEDD740751FB33A230.exit:443 | |
> CONNECT github.com.A520FF6C4690D131A96967BEDD740751FB33A230.exit:443 HTTP/1.1 | |
> User-Agent: curl/7.26.0 |
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
private static class CompositeClassLoader extends ClassLoader { | |
private Vector<ClassLoader> classLoaders = new Vector<ClassLoader>(); | |
@Override | |
public URL getResource(String name) { | |
for (ClassLoader cl : classLoaders) { | |
URL resource = cl.getResource(name); |
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
@Override | |
public Restlet createRoot() { | |
final Router router = new Router(getContext()); | |
getConnectorService().getClientProtocols().add(Protocol.FILE); | |
getConnectorService().getClientProtocols().add(Protocol.CLAP); | |
LocalReference localReference = LocalReference.createClapReference(LocalReference.CLAP_THREAD, "/src/main/webapp/"); | |
CompositeClassLoader customCL = new CompositeClassLoader(); |
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 org.restlet.Context; | |
import org.restlet.Request; | |
import org.restlet.Response; | |
import org.restlet.data.Reference; | |
import org.restlet.resource.Directory; | |
public class ClassLoaderDirectory extends Directory { | |
private ClassLoader _cl; | |
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
Store.create(function(store){ | |
var graph = new store.rdf.createGraph(); | |
store.rdf.setPrefix("earl", "http://www.w3.org/ns/earl#"); | |
store.rdf.setDefaultPrefix("http://www.w3.org/ns/earl#") | |
store.rdf.setPrefix("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"); | |
graph.add(store.rdf.createTriple( store.rdf.createNamedNode("earl:test"), |
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 com.jayway.example; | |
public interface Delegate { | |
String doSomething(); | |
String doSomethingElse(); | |
} |
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 sandbox.client; | |
import java.io.Serializable; | |
import sandbox.shared.SequenceAnalyzer; | |
public class FirstBases implements SequenceAnalyzer | |
{ | |
private int count=0; | |
private transient StringBuilder sequence=null; | |
public FirstBases() | |
{ |
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
ed@taylor:~$ zcat WorldCatMostHighlyHeld-2012-05-15.nt.gz | rdfsum | |
5834638 <http://schema.org/Intangible> | |
3164779 <http://schema.org/Place> | |
2422712 <http://schema.org/CreativeWork/Manifestation> | |
2422712 <http://purl.org/library/Manifestation> | |
1570772 <http://schema.org/Organization> | |
1121498 <http://schema.org/Book> | |
980152 <http://schema.org/Person> | |
398778 <http://schema.org/Event> | |
101060 <http://schema.org/CreativeWork> |
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
PREFIX core: <http://purl.uniprot.org/core/> | |
SELECT * | |
WHERE { | |
?protein rdf:type core:Protein . | |
?protein core:annotation ?functionAnn . | |
?functionAnn a core:Function_Annotation . | |
} |
OlderNewer