Last active
September 15, 2016 22:08
-
-
Save YPetremann/f653de4cb42f8835ace35f11d5469014 to your computer and use it in GitHub Desktop.
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
{ | |
"version": 1, | |
"width": 80, | |
"height": 25, | |
"duration": 8.656886, | |
"command": "/home/user/anim", | |
"title": "", | |
"env": { | |
"TERM": "screen-256color", | |
"SHELL": "/bin/bash" | |
}, | |
"stdout": [ | |
[0.0, "\u001b[?25l\u001b[0;0H"], | |
[0.04, "\u001b[30m\u001b[45m moveForward(); \n"], | |
[0.04, "\u001b[30m\u001b[42m while (notDone()) { \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m if (isPathLeft()) { \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \u001b[45m turnLeft(); \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \u001b[45m moveForward(); \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m } else { \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m if (isPathForward()) { \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \u001b[45m moveForward(); \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m } else { \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \u001b[45m turnRight(); \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m } \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m \n"], | |
[0.04, "\u001b[30m\u001b[42m \u001b[44m } \n"], | |
[0.04, "\u001b[30m\u001b[42m \n"], | |
[0.04, "\u001b[30m\u001b[42m } \n"] | |
] | |
} |
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
version: 1 | |
width: 80 | |
height: 25 | |
duration: 8.656886 | |
command: "/home/user/anim" | |
title: "" | |
env: | |
TERM: "screen-256color" | |
SHELL: "/bin/bash" | |
stdout: | |
## Terminal settings | |
- [0.00,"\e[?25l\e[0;0H"] | |
## frame | |
- [0.04,"\e[30m\e[45m moveForward(); \n"] | |
- [0.04,"\e[30m\e[42m while (notDone()) { \n"] | |
- [0.04,"\e[30m\e[42m \e[44m if (isPathLeft()) { \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \e[45m turnLeft(); \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \e[45m moveForward(); \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \n"] | |
- [0.04,"\e[30m\e[42m \e[44m } else { \n"] | |
- [0.04,"\e[30m\e[42m \e[44m if (isPathForward()) { \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \e[45m moveForward(); \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \n"] | |
- [0.04,"\e[30m\e[42m \e[44m } else { \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \e[45m turnRight(); \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \n"] | |
- [0.04,"\e[30m\e[42m \e[44m } \n"] | |
- [0.04,"\e[30m\e[42m \e[44m \n"] | |
- [0.04,"\e[30m\e[42m \e[44m } \n"] | |
- [0.04,"\e[30m\e[42m \n"] | |
- [0.04,"\e[30m\e[42m } \n"] |
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/python | |
import yaml, json | |
json.dump(yaml.load(file("anim.yml").read()),file("anim.json","w")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment