Skip to content

Instantly share code, notes, and snippets.

View AphonicChaos's full-sized avatar

AphonicChaos AphonicChaos

View GitHub Profile
@AphonicChaos
AphonicChaos / github-upload.rb
Created May 12, 2012 21:00 — forked from wereHamster/README.md
Script to upload files to github: ./github-upload.rb <file> [<repo>]
#!/usr/bin/env ruby
require 'json'
require 'net/https'
require 'pathname'
# Extensions
# ----------
@AphonicChaos
AphonicChaos / doc_refactor.patch
Created May 17, 2012 11:48
Patch to reorganize doc directory and simplify documnetation generation (ultimate-smash-friends)
diff --git a/doc/design_documents/README.txt b/doc/design_documents/README.txt
deleted file mode 100644
index f628b48..0000000
--- a/doc/design_documents/README.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Sat, 10 Jul 2010 15:10:41 +0200
-Gabriel Pettier
-
-In this directory design decisions about the general game, about characters and
@AphonicChaos
AphonicChaos / kivy_intel_failed_tests
Created June 11, 2012 17:18
Output from running nose tests in kivy
[edwin@enigma showcase]$ python main.py
[INFO ] Kivy v1.3.0-dev
[INFO ] [Logger ] Record log in /home/edwin/.kivy/logs/kivy_12-06-11_0.txt
[INFO ] [Factory ] 109 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=60s
[INFO ] [Text ] using <pygame> as text provider
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
@AphonicChaos
AphonicChaos / make_test.log
Created June 14, 2012 10:48
full make test output
$ make test
rm -rf kivy/tests/build
nosetests2 kivy/tests
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
[INFO ] Kivy v1.3.0-dev
#1 test_length_playing (kivy.tests.test_audio.AudioGstreamerTestCase) ... ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
[INFO ] [Logger ] Record log in /home/edwin/.kivy/logs/kivy_12-06-14_0.txt
[DEBUG ] [Audio ] register SoundGstreamer
[DEBUG ] [Audio ] register SoundPygame
ok
@AphonicChaos
AphonicChaos / vice-demo.sh
Created July 6, 2012 18:45
preliminary vice session
[edwin@enigma test]$ ls
[edwin@enigma test]$ python -m vice.main
vice> generate
vice> quit
[edwin@enigma test]$ ls
foo.py
[edwin@enigma test]$ cat foo.py
import os
import sys
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
from kivy import properties
load_dialog = """\
<LoadDialog>:
chooser: filechooser
BoxLayout:
size: root.size
not_nested = """
<LoadDialog>:
file_wid: filechooser
FileChooserListView:
id: filechooser
"""
nested = """
<LoadDialog>:
diff --git a/kivy/core/window/window_pygame.py b/kivy/core/window/window_pygame.py
index 338d8b1..d6eaae6 100644
--- a/kivy/core/window/window_pygame.py
+++ b/kivy/core/window/window_pygame.py
@@ -154,6 +154,7 @@ class WindowPygame(WindowBase):
pygame.display.set_caption(self.title)
def set_icon(self, filename):
+ Logger.info('icon: {}'.format(filename))
try:
@AphonicChaos
AphonicChaos / make_html_doc_updates.log
Created July 24, 2012 06:19
Output results from doc_updates branch
mkdir -p build/html build/doctrees
python2 autobuild.py
[INFO ] Kivy v1.4.0-dev
[INFO ] [Logger ] Record log in /home/edwin/.kivy/logs/kivy_12-07-24_51.txt
[INFO ] [Factory ] 119 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=60s