Skip to content

Instantly share code, notes, and snippets.

Andrew Berezovskyi berezovskyi

Block or report user

Report or block berezovskyi

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 test.kt
import org.apache.jena.rdf.listeners.ChangedListener
import org.apache.jena.rdf.model.InfModel
import org.apache.jena.rdf.model.Model
import org.apache.jena.rdf.model.ModelFactory
import org.apache.jena.reasoner.rulesys.RDFSRuleReasonerFactory
import org.apache.jena.riot.RDFDataMgr
import org.apache.jena.riot.RDFFormat
import org.apache.jena.util.FileUtils
import org.apache.jena.vocabulary.RDF
import org.apache.jena.vocabulary.ReasonerVocabulary
@berezovskyi
berezovskyi / import.scpt
Created Feb 18, 2018 — forked from shapiro125/import.scpt
Applescript: Import Apple Notes to Evernote
View import.scpt
tell application "Notes"
set theMessages to every note
repeat with thisMessage in theMessages
# added identification of folder to create notebooks based on existing folder hierarchy
set myFolder to the container of thisMessage
@berezovskyi
berezovskyi / import.scpt
Created Feb 18, 2018 — forked from bzerangue/import.scpt
Applescript: Import Apple Notes to Evernote
View import.scpt
tell application "Notes"
set theMessages to every note
repeat with thisMessage in theMessages
set myTitle to the name of thisMessage
set myText to the body of thisMessage
View vomit.java
public class MyClass {
@Autowired
private ConvertAToB convertAToB;
@Autowired
private ConvertBToC convertBToC;
@Autowired
private ConvertCToD convertCToD;
View exceptions.txt
AWTException
AclNotFoundException
ActivationException
AlreadyBoundException
ApplicationException
ArithmeticException
ArrayIndexOutOfBoundsException
AssertionException
BackingStoreException
BadAttributeValueExpException
View gist:5f4aeea441fc5947908ff548f49bb5a2
### Keybase proof
I hereby claim:
* I am berezovskyi on github.
* I am berezovskyi (https://keybase.io/berezovskyi) on keybase.
* I have a public key ASDGrzZ6CyPWdLKe11sN1fE8-bAkM6YlsY-z40n-_b7IyAo
To claim this, I am signing this object:
View main.py
import rdflib
from rdflib import URIRef
from rdflib.namespace import RDF
g=rdflib.Graph()
g.load('https://example.com/pror/services/catalog/singleton')
def compact_predicate(p):
table = {
"http://www.w3.org/1999/02/22-rdf-syntax-ns#": "rdf:",
"http://open-services.net/ns/core#": "oslc_core:",
@berezovskyi
berezovskyi / problem.cpp
Created Apr 1, 2017 — forked from depp/problem.cpp
A Faster Solution
View problem.cpp
// Faster solution for:
// http://www.boyter.org/2017/03/golang-solution-faster-equivalent-java-solution/
// With threading.
// g++ -std=c++11 -Wall -Wextra -O3 -pthread
// On my computer (i5-6600K 3.50 GHz 4 cores), takes about ~160 ms after the CPU
// has warmed up, or ~80 ms if the CPU is cold (due to Turbo Boost).
// How it works: Start by generating a list of losing states -- states where the
// game can end in one turn. Generate a new list of states by running the game
@berezovskyi
berezovskyi / mvn.log
Created Oct 14, 2016
ldspider build failure
View mvn.log
~/code/ldspider (f-oldpom ✘)✭ ᐅ mvn clean package -U
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ontologycentral:ldspider:jar:1.3
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 204, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 217, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
View api_list.json
{
"results": [
{
"LAYERNAME": "e57466f1-85ac-4a1a-89eb-f82df609c59a",
"RESTITLE": "3D-byggnadsblock",
"SCOPE": "Tjänst",
"PUBLISHER": "Stockholms stad",
"HASGEOEXTENT": "Nej",
"METAIMPORTDATE": "2016-06-16",
"MDCLASS": "6",
You can’t perform that action at this time.