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: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: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 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 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 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 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 g
(require :update)
(assertz '(repr require ((t "
(system.update:install-allegrograph)
(repr (node)) or (docs (node))
View gist:6611262
the lemon ssh cilent is a program
the lemon ssh client alias is ssh
to display ssh:
if there are active connections:
display list of connections
to display list of connections:
create
gui window
listbox
View text_input.py
kook@kook:~/kurva_pica/pyglet-1.2alpha1/examples$ ./text_input.py
Traceback (most recent call last):
File "./text_input.py", line 145, in <module>
window = Window(resizable=True)
File "./text_input.py", line 62, in __init__
TextWidget('', 200, 100, self.width - 210, self.batch),
File "./text_input.py", line 28, in __init__
font = self.document.get_font(0)
File "/usr/lib/pymodules/python2.7/pyglet/text/document.py", line 660, in get_font
return iter[position]
You can’t perform that action at this time.