This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sqlite3.h> | |
void read_teachers(sqlite3* handler) { | |
sqlite3_stmt* stmt; | |
int ret = sqlite3_prepare(handler, "SELECT * FROM teachers", -1, &stmt, NULL); | |
if(ret != SQLITE_OK) { | |
printf("ERROR,SQLITE SELECT %d\n", ret); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import cStringIO | |
import numpy | |
import shutil | |
import sys | |
from pymclevel import nbt, regionfile | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git@vs2387:~$ locale | |
LANG=en_US.UTF-8 | |
LANGUAGE= | |
LC_CTYPE="en_US.UTF-8" | |
LC_NUMERIC="en_US.UTF-8" | |
LC_TIME="en_US.UTF-8" | |
LC_COLLATE="en_US.UTF-8" | |
LC_MONETARY="en_US.UTF-8" | |
LC_MESSAGES="en_US.UTF-8" | |
LC_PAPER="en_US.UTF-8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From Minecraft Overviewer (https://github.com/overviewer/Minecraft-Overviewer) | |
# png-it.py script -- modified version which works with mapcrafter maps | |
""" | |
Outputs a huge PNG file using the tiles from a overviewer map. | |
""" | |
from optparse import OptionParser | |
from PIL import Image | |
from os.path import join, split, exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Eclipse Workspace Patch 1.0 | |
#P mapcrafter | |
diff --git src/config/mapcrafter_config.cpp src/config/mapcrafter_config.cpp | |
index 2dadf19..2855cd3 100644 | |
--- src/config/mapcrafter_config.cpp | |
+++ src/config/mapcrafter_config.cpp | |
@@ -532,9 +532,11 @@ | |
bool MapcrafterConfigHelper::isCompleteRenderSkip(const std::string& map) const { | |
const std::set<int>& rotations = config.getMap(map).getRotations(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in ~/dist/deb/packages/*.deb; do | |
if ! dpkg-sig --verify $file | grep "GOODSIG" > /dev/null; then | |
dpkg-sig --sign builder $file | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/mapcrafter-v.1.1# make | |
Scanning dependencies of target version.cpp | |
[ 3%] Built target version.cpp | |
Scanning dependencies of target mapcraftercore | |
[ 6%] Building CXX object src/CMakeFiles/mapcraftercore.dir/version.cpp.o | |
[ 9%] Building CXX object src/CMakeFiles/mapcraftercore.dir/util/filesystem.cpp.o | |
In file included from /root/mapcrafter-v.1.1/src/util/filesystem.cpp:22:0: | |
/root/mapcrafter-v.1.1/src/util/../util.h:41:1: error: expected ';' after class definition | |
/root/mapcrafter-v.1.1/src/util/../util.h:31:7: error: an anonymous struct cannot have function members | |
/root/mapcrafter-v.1.1/src/util/../util.h:41:1: error: abstract declarator 'const<anonymous class>' used as declaration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 11:39PM ] [ m0r13@mapcrafter:~/azeroth ] | |
$ mc-overviewer/overviewer.py -c azeroth_overviewer.conf -p16 | |
2013-12-27 23:39:35 Welcome to Minecraft Overviewer! | |
2013-12-28 00:20:25 Rendering 733081 total tiles. | |
4% [========= ^[^@ ] 35429 10.25t/s eta 18h | |
54m 32s | |
6% [============ ] 47397 9.35t/s eta 20h | |
21m 54s | |
16% [================================ ] 118560 8.88t/s eta 19h | |
12m 48s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 5:53PM ] [ moritz@vs2387:~/abizeitung_django/src(master✗) ] | |
$ ./manage.py migrate | |
Running migrations for abizeitung: | |
- Migrating forwards to 0016_auto__del_field_student_test. | |
> abizeitung:0001_initial | |
> abizeitung:0002_auto__add_field_student_test | |
> abizeitung:0003_auto__add_field_student_tutor | |
> abizeitung:0004_auto__add_field_teachersurvey_question__add_field_studentsurvey_questi | |
> abizeitung:0005_auto__add_studentsurveyentry | |
> abizeitung:0006_auto__del_studentsurveyentry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/renderer/tilerenderworker.cpp b/src/renderer/tilerenderworker.cpp | |
index 286a3bf..8740068 100644 | |
--- a/src/renderer/tilerenderworker.cpp | |
+++ b/src/renderer/tilerenderworker.cpp | |
@@ -83,17 +83,16 @@ | |
render_context.tileset->getTileOffset(), image); | |
render_work_result.tiles_rendered++; | |
- /* | |
// draws a border on the tile |
OlderNewer