Skip to content

Instantly share code, notes, and snippets.

koo5

Block or report user

Report or block koo5

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 gist:9040939
kook@kook:~/eulergui-code/eulergui$
kook@kook:~/eulergui-code/eulergui$
kook@kook:~/eulergui-code/eulergui$ java -jar /home/kook/.m2/repository/eulergui/eulergui/2.1-SNAPSHOT/eulergui-2.1-SNAPSHOT-jar-with-dependencies.jar deductions.runtime.swing.explorer.SWExplorer dbpedia:The_Beatles
>>>>>>>>> ApplicationKB.startInitializationInBackground()
Feb 16, 2014 10:26:04 PM eulergui.project.ProjectChangeSupport addProjectListener
INFO: ProjectChangeSupport.addProjectListener(): added listener eulergui.project.ProjectState@abc8ee
ApplicationKB.ApplicationKB(): starting.
==== ApplicationKB.ApplicationKB() initialization Thread started.
Thread: main
Feb 16, 2014 10:26:04 PM eulergui.project.ProjectChangeSupport addProjectListener
View gist:9655444
kook@kook:~/test$ clang++ -std=c++11 ode.cpp
ode.cpp:22:29: error: declaration of 'functor_type' shadows template parameter
template <typename functor_type> class Container1,
^
ode.cpp:20:19: note: template parameter is declared here
template<typename functor_type,
^
ode.cpp:23:29: error: declaration of 'coord_type' shadows template parameter
template <typename coord_type> class Container2,
^
View x
if(message_yes_no(win_gallery, "Close projekt", "Do you want to real close project without save"))
message_error(NULL, "CREATE DIR ERROR!!!", "I can not create directory for configuration for this program.");
message_error(NULL, "CREATE DIR ERROR!!!", "I can not create directory for colections for this program.");
message_error(NULL, "COPY DEFAULT THEMES ERROR!!!", "I can not copy the default themes to config dir");
gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG (dialog), "Gallery can show in <a href=\"%s\">index.html</a>.", name_index);
dialog = gtk_file_chooser_dialog_new ("Select export directory for your gallery",
message_error(win_gallery, "ERROR export gallery!", "Sorry, no free memory or your disk is full.");
message_error(win_gallery, "No import file!!!", "Sorry, but I do not know this format");
View notes
building unipycation, 12th june 2014:
doesnt build on x86, see attached log
builds on amd64, runs, but examples dont work, next step probably would be trying to run tests.
built with 4gb of ram using zram (apt-get install zram-config, then edit /etc/init/zram-config.conf, service zram-config restart) (googling building pypy with low ram finds some other possible solutions)
#these might be useful:
apt-get install pypy-dev pypy python-pip mercurial git
View gist:3c34781d5a5d4c4c271c
cwm ~/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
#Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp
# using base file:///home/kook/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
# Notation3 generation by
# notation3.py,v 1.200 2007/12/11 21:18:08 syosi Exp
# Base was: file:///home/kook/Downloads/sw/eulergui-code/eulergui/examples/DateTime-rules.n3
@prefix : <#> .
@prefix Dat: <http://protege.org/ontologies/DateTimeExample.owl#> .
View gist:74f8abf6e3407a0dd6e7
#!/usr/bin/python
"""
$Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp $
Closed World Machine
(also, in Wales, a valley - topologiclly a partially closed world perhaps?)
This is an application which knows a certian amount of stuff and can manipulate
it. It uses llyn, a (forward chaining) query engine, not an (backward chaining)
View gist:9b9aa29505a98670b2be
kook@databox ~/o/n/t/classes>
kook@databox ~/o/n/t/classes> java -jar ~/jython2.7b4/jython.jar test.py
SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6, 1.7]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
[[u'=|>'], [u'=/>']]
[[u'$', <class '__main__.Word'>], [u'#', <__main__.optional object at 0x2>], [u'?', <__main__.optional object at 0x3>]]
[[u'$', <class '__main__.Word'>], [u'#'], [u'?', <__main__.optional object at 0x3>], [u'#', <class '__main__.Word'>]]
[[u'$', <class '__main__.Word'>], [u'#'], [u'?'], [u'#', <class '__main__.Word'>], [u'?', <class '__main__.Word'>]]
[[u'$', sym{u'type': <class '__main__.Number'>, u'name': 'priority'}, <__main__.optional object at 0x4>, u'$']]
[[u'$', sym{u'type': <class '__main__.Number'>, u'name': 'priority'}, u'$'], [u'$', sym{u'type': <class '__main__.Number'>, u'name': 'priority'}, u';', sym{u'type': <class '__main__.Number'>, u'name': 'durability'}, u'$']]
View gist:9b216ddf5a58a91c83a3
// package com.github.jsonldjava.utils;
// import java.net.URI;
// import java.net.URISyntaxException;
// import java.util.ArrayList;
// import java.util.Arrays;
// import java.util.List;
// import java.util.regex.Matcher;
// import java.util.regex.Pattern;
View x
kook@idea ~/C/tauchain> cat n3test2.nq
:x a :y .
:x a :z .
fin.
:x a :y .
:x a :z .
fin.
kook@idea ~/C/tauchain> env LD_PRELOAD=libmarpa/dist/.libs/libmarpa.so ./tau --level 1 --shorten < n3test2.nq
kb input done.
query loaded.
You can’t perform that action at this time.