This file has been truncated, but you can view the full file.
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
stain@biggie-utopic:~$ docker pull ubuntu:14.04 | |
Pulling repository ubuntu | |
5ba9dab47459: Download complete | |
511136ea3c5a: Download complete | |
27d47432a69b: Download complete | |
5f92234dcf1e: Download complete | |
51a9c7c1f8bb: Download complete | |
stain@biggie-utopic:~$ docker run -it ubuntu:14.04 bash | |
root@74add11e2e09:/# apt-get update | |
Ign http://archive.ubuntu.com trusty InRelease |
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
>>> def negate(f): | |
... return lambda *args,**kwargs: not f(*args, **kwargs) | |
... | |
>>> a = ["hello", "Hello there", "My name is"] | |
>>> def contains_space(s): | |
... return " " in s | |
... | |
>>> list(filter(contains_space, a)) | |
['Hello there', 'My name is'] | |
>>> list(filter(negate(contains_space), a)) |
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.apache.jena.riot.Lang; | |
import org.apache.jena.riot.lang.PipedTriplesStream; | |
import org.apache.jena.riot.system.StreamOps; | |
import org.apache.jena.riot.system.StreamRDF; | |
import org.apache.jena.riot.system.StreamRDFWriter; | |
import org.junit.Test; | |
import com.hp.hpl.jena.datatypes.xsd.XSDDatatype; | |
import com.hp.hpl.jena.graph.Node; | |
import com.hp.hpl.jena.graph.Triple; |
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
FROM jenkins | |
COPY plugins.txt /usr/share/jenkins/plugins.txt | |
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt |
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
FROM jenkins | |
COPY plugins.txt /usr/share/jenkins/plugins.txt | |
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt | |
USER root | |
RUN zip -d /usr/share/jenkins/jenkins.war WEB-INF/plugins/subversion.hpi | |
USER jenkins |
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
Delivered-To: stian@s11.no | |
Received: by 10.28.194.7 with SMTP id s7csp284007wmf; | |
Thu, 26 Mar 2015 01:57:09 -0700 (PDT) | |
X-Received: by 10.70.92.132 with SMTP id cm4mr24666356pdb.18.1427360228839; | |
Thu, 26 Mar 2015 01:57:08 -0700 (PDT) | |
Return-Path: <> | |
Received: from mail.apache.org (hermes.apache.org. [140.211.11.3]) | |
by mx.google.com with SMTP id j12si7469396pdm.58.2015.03.26.01.57.08 | |
for <stian@s11.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
Delivered-To: stian@s11.no | |
Received: by 10.28.194.7 with SMTP id s7csp319380wmf; | |
Thu, 26 Mar 2015 04:18:41 -0700 (PDT) | |
X-Received: by 10.70.131.107 with SMTP id ol11mr25832359pdb.63.1427368720951; | |
Thu, 26 Mar 2015 04:18:40 -0700 (PDT) | |
Return-Path: <> | |
Received: from mail.apache.org (hermes.apache.org. [140.211.11.3]) | |
by mx.google.com with SMTP id cu5si7897968pbc.126.2015.03.26.04.18.40 | |
for <stian@s11.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
package com.example.commonsrdf; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
import org.apache.commons.rdf.api.BlankNode; |
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
{ | |
"@context" : { | |
"rest" : { | |
"@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest", | |
"@type" : "@id" | |
}, | |
"first" : { | |
"@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#first", | |
"@type" : "@id" | |
}, |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:e4bf083ad34af402f5d9d62b77788b16d22617dfda1948f4529c7882f31eb364" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |