Skip to content

Instantly share code, notes, and snippets.

import json
import sys
F = sys.argv[1]
print(F)
#F = "just60.json"
#F = "c-asus_nvidia.json"
#F = TimelineRawData-20160412T120624.json"
@antont
antont / Kymmenen kertaa pienempi.ipynb
Last active August 29, 2015 14:26
Kymmenen kertaa pienempi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antont
antont / getpositions.py
Created October 7, 2013 06:36
read 3d ob positions from txml in python and output them as json for easier use in e.g. web clients
from xml.etree.ElementTree import ElementTree
import xml.etree.ElementTree as ET
import sys
if len(sys.argv) != 2:
print "Giev filename!"
sys.exit(1)
@antont
antont / ec.xml
Created September 24, 2011 23:47
drafting an xml spec for txml
<scene>
<entity id="1">
<!--name>
<name>Bird</name>
<description>A flying bird</description>
</name-->
<name name="Bird" description="A flying bird" />
<!-- mesh>
<meshref>bird.mesh</meshref>
<materialref index=0>feathers.material</materialref>