Skip to content

Instantly share code, notes, and snippets.

@Mitmischer
Mitmischer / gist:9952538
Created April 3, 2014 11:12
kivy backtrace
Traceback (most recent call last):
File "[...]/main.py", line 120, in <module>
main()
File "[...]/main.py", line 117, in main
MainApp().run()
File "/usr/local/lib/python3.3/dist-packages/kivy/app.py", line 792, in run
runTouchApp()
File "/usr/local/lib/python3.3/dist-packages/kivy/base.py", line 481, in runTouchApp
EventLoop.window.mainloop()
File "/usr/local/lib/python3.3/dist-packages/kivy/core/window/window_pygame.py", line 381, in mainloop
import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass
import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass
import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass
import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass
@Mitmischer
Mitmischer / gist:4245787
Created December 9, 2012 16:01
Ant-Client
class Client{
public:
bool sendMessage(std::string msg);
vector<Ant*> getAnts();
vector<Ant*> updateAnts(); // = setAnts()
private:
vector<Ant*> ants;
}
#include <iostream>
#include <string>
#include <locale>
using namespace std;
int main()
{
locale loc;
string t;
@Mitmischer
Mitmischer / gist:5852217
Last active December 18, 2015 22:09
Go zersetzt mein Gehirn!
package main
import "fmt"
// works
func main(){
c := make(chan int)
go func(c chan int){
fmt.Println(<-c)
}(c)
go func(){
cd qpy/ && ( test -e Makefile || /opt/qt5.1.1/5.2.0/gcc_64/bin/qmake /opt/PyQt/PyQt-gpl-5.2/qpy/qpy.pro -o Makefile ) && make -f Makefile install
make[1]: Betrete Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy'
cd QtCore/ && ( test -e Makefile || /opt/qt5.1.1/5.2.0/gcc_64/bin/qmake /opt/PyQt/PyQt-gpl-5.2/qpy/QtCore/QtCore.pro -o Makefile ) && make -f Makefile install
make[2]: Betrete Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtCore'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtCore'
cd QtGui/ && ( test -e Makefile || /opt/qt5.1.1/5.2.0/gcc_64/bin/qmake /opt/PyQt/PyQt-gpl-5.2/qpy/QtGui/QtGui.pro -o Makefile ) && make -f Makefile install
make[2]: Betrete Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtGui'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtGui'
python3.3 configure.py
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 5.2 (licensed under the GNU General Public
License) for Python 3.3.2+ on linux.
Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.