1. Example """ Code that goes along with the Airflow tutorial located at: https://github.com/airbnb/airflow/blob/master/airflow/example_dags/tutorial.py """ from airflow import DAG from airflow.operators.bash_operator import
动态链接库DLL_Sample.dll DLL_Sample.h:#ifdef TEST_API# define TEST_API _declspec(dllexport)#else# define TEST_API _declspec(dllimport)#endif TEST_API int fuc(int a);TEST_API int fuc(int a, int b);TEST_API int fuc(int a, int b, int c);DLL_Sample.cpp:#defin
通过inotify扩展监控文件或目录的变化,如果发生变化,就执行命令. 可以应用于 swoole 中,如果文件发生变化,就执行 kill -USR1 进程PID 来实现热更新. <?php class Monitor { public $dir = ''; public $cmd = ''; public $timeout = 1; public function __construct() { if (!extension_loaded('inotify')) { echo '请安装inoti