Skip to content

Instantly share code, notes, and snippets.

View KMax's full-sized avatar

Maksim Kolchin KMax

View GitHub Profile
@KMax
KMax / example.py
Created February 15, 2014 11:22
Problem in saving an unicode literal in a sparql store
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import rdflib
import urllib
import traceback
from rdflib.namespace import FOAF, RDF
from rdflib.plugins.stores.sparqlstore import SPARQLUpdateStore
def save(graph, name):
@KMax
KMax / sparql
Created February 19, 2014 15:41
List names of all cities, the name of its country and population. SPARQL Endpoint (http://dbpedia.org/sparql)
SELECT ?city_name ?country_name ?pop WHERE {
?city a dbpedia-owl:City;
dbpedia-owl:populationTotal ?pop;
rdfs:label ?city_name;
dbpedia-owl:country ?country .
?country rdfs:label ?country_name .
FILTER langMatches( lang(?city_name), "RU" )
FILTER langMatches( lang(?country_name), "RU" )
}
LIMIT 10
@KMax
KMax / ResetTest.java
Created June 30, 2014 14:49
CQELS: Stop and close everything
package org.deri.cqels;
import com.hp.hpl.jena.tdb.StoreConnection;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
$(function () {
$('#container').highcharts({
chart: {
type: 'area'
},
tooltip: {
formatter: function () {
var msg = "";
$.each(this.points, function() {
var index = this.series.xData.indexOf(this.x);
@KMax
KMax / environmental_sensor.ttl
Created May 19, 2015 07:34
Ontologies for Web of Things : a pragmatic review. An environmental sensor example.
@prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#> .
@prefix : <http://example.com/ontologies/wot#> .
:env-sensor-0 a ssn:System .
@KMax
KMax / sharelatex.log
Last active October 9, 2015 08:08
pdfTex output for Russian Phd LaTeX Dissertation Template in ShareLaTeX
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2015.3.24) 9 OCT 2015 08:01
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**dissertation.tex
(./dissertation.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/extsizes/extreport.cls
Document Class: extreport 1996/10/08 v1.0 Non Standard LaTeX document class
@KMax
KMax / output.blg
Created October 9, 2015 08:59
BibTex output
This is BibTeX, Version 0.99d (TeX Live 2014)
Capacity: max_strings=35307, hash_size=35307, hash_prime=30011
The top-level auxiliary file: output.aux
I couldn't open style file ../BibTeX-Styles/utf8gost71u.bst
---line 21 of file output.aux
: \bibstyle{../BibTeX-Styles/utf8gost71u
: }
I'm skipping whatever remains of this command
A level-1 auxiliary file: title.aux
A level-1 auxiliary file: contents.aux
@KMax
KMax / firstrun.log
Last active November 12, 2015 09:55
Runs of `make dissertation` command
[kolchinmax@localhost Russian-Phd-LaTeX-Dissertation-Template]$ make dissertation
make -C Dissertation
make[1]: Entering directory '/home/kolchinmax/RnD/AndreyAkinshin/Russian-Phd-LaTeX-Dissertation-Template/Dissertation'
latexmk -pdf -pdflatex="xelatex %O %S" dissertation
Latexmk: This is Latexmk, John Collins, 10 January 2015, version: 4.42.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': Rules & subrules not known to be previously run:
pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
'pdflatex'
@KMax
KMax / gist:4f342cae457c255dcf5e
Created January 3, 2016 12:22
tvrain.ru amediateka player
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] platform.twitter.com
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] www.amediateka.ru
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] counter.yadro.ru
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] st.top100.ru
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] scounter.rambler.ru
mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object wit
@KMax
KMax / keybase.md
Created August 15, 2016 15:37
keybase.md

Keybase proof

I hereby claim:

  • I am KMax on github.
  • I am kolchinmax (https://keybase.io/kolchinmax) on keybase.
  • I have a public key whose fingerprint is E2E9 CA55 9975 53BA 74E2 BC2E 6832 AC92 4914 7C29

To claim this, I am signing this object: