This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE rdf:RDF [ | |
| <!ENTITY books.owl "http://127.0.0.1:3001/ontology/books.owl"> | |
| <!ENTITY owl "http://www.w3.org/2002/07/owl#"> | |
| <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
| <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#"> | |
| <!ENTITY simplified_sumo.owl "http://127.0.0.1:3001/ontology/simplified_sumo.owl"> | |
| <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#"> | |
| ]> | |
| <rdf:RDF xml:base="&books.owl;" |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.github.tarrsalah.prototype</groupId> | |
| <artifactId>neovis</artifactId> | |
| <version>0.1</version> | |
| <packaging>jar</packaging> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <maven.compiler.source>1.8</maven.compiler.source> |
This file contains hidden or 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
| public static HttpServer startHttpServer() { | |
| HttpServer server = GrizzlyHttpServerFactory.createHttpServer(getApiURL(), new Application()); | |
| final StaticHttpHandler staticHandler = new StaticHttpHandler("src/main/webapp/dist"); | |
| staticHandler.setFileCacheEnabled(false); // change to true in the deploy time | |
| server.getServerConfiguration().addHttpHandler(staticHandler, "/"); | |
| CompressionConfig compressionConfig | |
| = server.getListener("grizzly").getCompressionConfig(); | |
| compressionConfig.setCompressionMode(CompressionConfig.CompressionMode.ON); // the mode | |
| compressionConfig.setCompressionMinSize(1); // the min amount of bytes to compress |
This file contains hidden or 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 main | |
| import ( | |
| "encoding/csv" | |
| "io/ioutil" | |
| "os" | |
| "path" | |
| "strings" | |
| ) |
This file contains hidden or 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 slices | |
| import ( | |
| "testing" | |
| ) | |
| var length = 10000 | |
| func BenchmarkAppend(b *testing.B) { | |
| for i := 0; i < b.N; i++ { |
This file contains hidden or 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
| all: clean compile pdf | |
| compile: | |
| latexmk main.tex | |
| makeglossaries main | |
| latexmk -bibtex -view=pdf -pdf -pdflatex="pdflatex --shell-escape %O %S" main.tex | |
| clean: | |
| latexmk -C |
This file contains hidden or 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
| var gulp = require('gulp'); | |
| var concat = require('gulp-concat'); | |
| var declare = require('gulp-declare'); | |
| var wrap = require('gulp-wrap'); | |
| var handlebars = require('gulp-handlebars'); | |
| var watch = require('gulp-watch'); | |
| var paths = { | |
| css : ['styles/*.css'], | |
| scripts:['scripts/*.js', 'scripts/**/*.js'], |
This file contains hidden or 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
| #!/bin/sh | |
| /usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@" |
This file contains hidden or 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 org.tarrsalah.http_clients; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.io.PrintWriter; | |
| import java.net.MalformedURLException; | |
| import java.net.Socket; | |
| import java.net.URL; | |
| import java.util.concurrent.CountDownLatch; |
This file contains hidden or 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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| # Colors | |
| Black="$(tput setaf 0)" | |
| BlackBG="$(tput setab 0)" | |
| DarkGrey="$(tput bold ; tput setaf 0)" | |
| LightGrey="$(tput setaf 7)" |