Skip to content

Instantly share code, notes, and snippets.

@agrif
agrif / overviewer.js
Created July 22, 2011 12:05
a possible fix for overviewer.js
var overviewer = {
/**
* This holds the map, probably the most important var in this file
*/
'map': null,
/**
* These are collections of data used in various places
*/
'collections': {
/**
@agrif
agrif / hello.c
Created July 24, 2011 05:37
a iphone build environment sanity check
#include <stdio.h>
int main(int argc, char* argv[])
{
printf("Hello, iPhone!\n");
return 0;
}
#!/bin/bash
# for emcee, called with the following arguments:
# gen-testrender.sh repourl branch linkname
# --
# usually, this means
# gen-testrender.sh git://github.com/brownan/Minecraft-Overviewer.git master brownan.master
# ----------------------
# ---- BEGIN CONFIG ----
+-local/
|
+-textures/
|
+-out/
| |
| +-cave/
| |
| +-night/
| |
+- normal nothing special, just render the blocks
| +- lighting draw shadows from the lighting data
| +- night like "lighting", except at night
| +- cave render only caves
+- overlay
+- spawn draws a red overlay where monsters can spawn at night
+- mineral draws a colored overlay showing where ores are located
/tmp/libvaht-0.3 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... no
Updating 409c44f..42cb4b7
Fast-forward
CONTRIBUTORS.rst | 4 +-
README.rst | 11 +
overviewer.py | 19 ++-
overviewer_core/chunk.py | 26 ++-
.../{compass.png => compass_lower-left.png} | Bin 7403 -> 7403 bytes
.../data/web_assets/compass_lower-right.png | Bin 0 -> 7067 bytes
.../data/web_assets/compass_upper-left.png | Bin 0 -> 7086 bytes
.../data/web_assets/compass_upper-right.png | Bin 0 -> 7075 bytes
@agrif
agrif / gist:1154832
Created August 18, 2011 18:53
change summary for Minecraft-Overviewer (with deletes/renames)
agrif@nara ~/devel/mc-overviewer $ git log --shortstat --format=format:"%an" | sed -n '1h;1!H;g;/files changed/{s/.*\n\(.*\)\n \([0-9]\+\) files changed, \([0-9]\+\) insertions(+), \([0-9]\+\) deletions(-)/\1|\2|\3|\4/g;p;s/.*//;h}' | awk 'BEGIN{FS="|"};{FILES[$1]+=$2; INSERTIONS[$1]+=$3; DELETIONS[$1]+=$4};END{for(name in FILES){print INSERTIONS[name]-DELETIONS[name],FILES[name],INSERTIONS[name],DELETIONS[name],name}}' | sort -nr
# inserted - deleted, files, inserted, deleted, name
3388 219 4606 1218 Andrew Chin
2979 587 19630 16651 Aaron Griffith
2152 151 4416 2264 Andrew Brown
1950 142 3388 1438 Alejandro Aguilera
710 6 810 100 Andrew
525 70 2260 1735 Xon
416 71 918 502 Ryan Rector
@agrif
agrif / gist:1154842
Created August 18, 2011 18:57
change summary for Minecraft-Overviewer (no deletes/renames)
agrif@nara ~/devel/mc-overviewer $ git log -C --shortstat --format=format:"%an" | sed -n '1h;1!H;g;/files changed/{s/.*\n\(.*\)\n \([0-9]\+\) files changed, \([0-9]\+\) insertions(+), \([0-9]\+\) deletions(-)/\1|\2|\3|\4/g;p;s/.*//;h}' | awk 'BEGIN{FS="|"};{FILES[$1]+=$2; INSERTIONS[$1]+=$3; DELETIONS[$1]+=$4};END{for(name in FILES){print INSERTIONS[name]-DELETIONS[name],FILES[name],INSERTIONS[name],DELETIONS[name],name}}' | sort -nr
# with git log -C
# inserted - deleted, files, inserted, deleted, name
3388 219 4606 1218 Andrew Chin
2683 528 7058 4375 Aaron Griffith
1950 142 3388 1438 Alejandro Aguilera
1469 150 3855 2386 Andrew Brown
710 6 810 100 Andrew
525 70 2260 1735 Xon
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
============
Contributors
============
This file contains a list of every person who has contributed code to
Overviewer. It was created from the git commit log, and should include
everyone, but we may have missed a few and it is manually updated