Skip to content

Instantly share code, notes, and snippets.

@keot
keot / mc_blender_render.py
Last active December 12, 2015 02:28
Minecraft Blender parameters for automated rendering of chunks from jMc2Obj.
import bpy, math
object_file = "%%OBJ%%" # complete path
output_file = "%%PNG%%" # use "//filename.ext" for local path
# Clean canvas
for object in bpy.data.objects:
object.select = True
bpy.ops.object.delete()
@keot
keot / save_experiment.php
Last active December 11, 2015 20:29
Save Experiment Script Saves any HTTP post data sent to the script to a local CSV file. Do NOT use this in production. It's hideously insecure. The directory where the results file is saved requires 'other writeable' (o+w) permissions.
<?php
/* save_experiment.php
* Created by James Mardell <james.mardell@imperial.ac.uk>
* Saves any HTTP post data sent to the script to a local CSV file.
* Do NOT use this in production. It's hideously insecure.
* The directory where the results file is saved requires 'other writeable' (o+w) permissions.
*/
// Configuration
$results_file = 'data.csv';