This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.
⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| %% Usage: | |
| %% upload_request(<<"site.com/api/upload">>, <<"path/to/file.png">>, <<"upload">>, <<"image/png">>, [], <<"some-token">>) | |
| %% | |
| %% Usage with RequestData: | |
| %% Payload = [{upload_type, <<"user_picture">>}], | |
| %% PayloadContent = jsx:encode(Payload), | |
| %% RequestData = [ | |
| %% {<<"payload">>, PayloadContent} | |
| %% ] | |
| %% upload_request(<<"site.com/api/upload">>, <<"path/to/file.png">>, <<"upload">>, <<"image/png">>, RequestData, <<"some-token">>) |
| /** | |
| * Get the total disk space available on this Android Device | |
| * | |
| * @return total size (in bytes) that is the total disk space avaialble on the device. | |
| */ | |
| public static long getTotalDiskSpace() { | |
| StatFs statFs = new StatFs(Environment.getRootDirectory().getAbsolutePath()); | |
| long totalDiskSpace = statFs.getBlockCount() * statFs.getBlockSize(); | |
| return totalDiskSpace; | |
| } |
| %%%------------------------------------------------------------------- | |
| %%% @author [email protected] | |
| %%% @doc 一个简单的分层时间轮实现:类似于3维数组实现时钟 | |
| %%% 根据 http://www.embeddedlinux.org.cn/RTConforEmbSys/5107final/LiB0071.html 实现 | |
| %%% 1.时钟原理说明: | |
| %%% 1.1. 初始化一个三层时间轮:秒刻盘:0~59个SecList, 分刻盘:0~59个MinList, 时刻盘:0~12个HourList; | |
| %%% 1.2. SecTick由外界推动,每跳一轮(60格),SecTick复位至0,同时MinTick跳1格; | |
| %%% 1.3. 同理MinTick每跳一轮(60格),MinTick复位至0,同时HourTick跳1格; | |
| %%% 1.4. 最高层:HourTick跳一轮(12格),HourTick复位至0,一个时间轮完整周期完成. | |
| %%% 2.事件原理说明: |
| #include <sys/types.h> | |
| #include <sys/time.h> | |
| #include <sys/queue.h> | |
| #include <stdlib.h> | |
| #include <err.h> | |
| #include <event.h> | |
| #include <evhttp.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <string.h> |