This repository contains my own notes of code for various purposes.
I also use it to synchronize code among different devices.
c/c++: Check the source code to find installation and
compilation methods. CMakeLists.txt is for compiling
02_sndinfo.cpp.
c/c++ code examples |
description |
01_helloworld_utf8.cpp |
print 你好,世界! & test argc + argv |
02_sndinfo.cpp |
print some basic infomation of an audio file |
03_gnuplot_test.cpp |
plot y=x^3 and output to a png file |
04_network_connection.c |
check network connection |
05_progress_bar.c |
show a sample progress bar |
06_weekday.c |
a program that shows the weekday of a certain date |
07_str_to_long_int.c |
convert an input argument to long integer |
08_uuid_ossp.c |
a sample code to generate uuid1 with ossp-uuid |
09_endianness.c |
check the endianness of linux operating systems |
10_hello_pthread.c |
demonstrate thread creation and termination |
11_pthread_arg.c |
demonstrate passing arguments to threads |
12_pthread_cancel |
demonstrate using pthread_cancel |
13_callback.c |
demonstrate usage of callback function |
14_sink_callback.cc |
demonstrate sink in place of callback in C++ |
15_print_time.c |
calculate Chinese standard time |
20_qt4_example.cpp |
a simple GUI example using qt4 |
21_x11_window.c |
a GUI window sample using Xlib |
22_x11_text.c |
a GUI window displaying text |
23_x11_chinese.c |
a GUI window displaying Chinese text |
24_x11_full_screen.c |
a full-screen GUI window |
25_map&unique_ptr.cpp |
a test for unordered_map and unique_ptr |
python
python scripts |
description |
01_network_connection.py |
check network connection |
02_progress_bar.py |
show a sample progress bar |
03_http_post.py |
an example of http post |
matlab
matlab examples |
description |
audio_plot.m |
plot waveform of audio files (channels splitted) |
shell
shell scripts |
description |
01_argument.sh |
script with optional&necessary arguments |
02_awk.sh |
demonstrate usage of awk, if and while ... |
03_search_keyword.sh |
find keyword in the files in some path |
swig
This folder contains an example to generate the python wrapper from c++ objective files.