Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| public class HelloYaml { | |
| @SuppressWarnings("unchecked") | |
| public static void main(String[] args) throws FileNotFoundException { | |
| Yaml yaml = new Yaml(); | |
| System.out.println(yaml.dump(yaml.load(new FileInputStream(new File( | |
| "hello_world.yaml"))))); | |
| Map<String, Map<String, String>> values = (Map<String, Map<String, String>>) yaml | |
| .load(new FileInputStream(new File("hello_world.yaml"))); |
| public class HelloYaml { | |
| @SuppressWarnings("unchecked") | |
| public static void main(String[] args) throws FileNotFoundException { | |
| Yaml yaml = new Yaml(); | |
| System.out.println(yaml.dump(yaml.load(new FileInputStream(new File( | |
| "hello_world.yaml"))))); | |
| Map<String, Map<String, String>> values = (Map<String, Map<String, String>>) yaml | |
| .load(new FileInputStream(new File("hello_world.yaml"))); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000