This is the sample codes for students in a php course.
- clone the repository.
php -S 0.0.0.0:10080(PHP >=5.4).- access to http://localhost/00_file.php and the other sample.
| <? phpinfo(); ?> |
| Hello, world! |
| <? echo 'Hello, world!' ?> |
| #!/usr/bin/nodejs | |
| var src | |
| = "hoge\n" | |
| + "hoge\n" | |
| + "<codeblock>\n" | |
| + "int main()\n" | |
| + "{\n" | |
| + " cout << \"hello\";\n" | |
| + "}\n" |
| #include <boost/array.hpp> | |
| #include <boost/assert.hpp> | |
| #include <boost/bind.hpp> | |
| #include <boost/cast.hpp> | |
| #include <boost/checked_delete.hpp> | |
| #include <boost/crc.hpp> | |
| #include <boost/current_function.hpp> | |
| #include <boost/date_time.hpp> | |
| #include <boost/date_time/gregorian/gregorian_types.hpp> | |
| #include <boost/date_time/posix_time/posix_time.hpp> |
This is the sample codes for students in a php course.
php -S 0.0.0.0:10080 (PHP >=5.4).| #!/bin/sh | |
| TMP=~/open-talk.wav | |
| touch $TMP | |
| cd /usr/share/hts-voice/nitech-jp-atr503-m001 | |
| #cd /usr/share/hts-voice/mei_happy | |
| echo "$1" | open_jtalk \ | |
| -td tree-dur.inf \ | |
| -tf tree-lf0.inf \ | |
| -tm tree-mgc.inf \ | |
| -md dur.pdf \ |
| #include <iostream> | |
| int main() | |
| { | |
| std::cout << "Hello, JavaScript World from C++\n"; | |
| } |
| #include <boost/network/protocol/http/server.hpp> | |
| namespace http = boost::network::http; | |
| struct handler; | |
| typedef http::server<handler> http_server; | |
| struct handler { | |
| void operator() | |
| ( http_server::request const & request |
| #include <thread> | |
| #include <iostream> | |
| #include <boost/asio.hpp> | |
| int main() try | |
| { | |
| std::cout << "app start\n"; | |
| auto run_continues = true; | |
| auto main_task = [&] |