A minimal Flask application looks something like this:
最小限の Flask アプリケーションはこのように見える:
from flask import Flask
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(setq inhibit-startup-message t) | |
(setq initial-scratch-message nil) | |
#include <iostream> | |
#include <iterator> | |
#include <ostream> | |
#include <string> | |
#include <sw/redis++/redis++.h> | |
#include <vector> | |
int main() { | |
// redis への接続 | |
auto redis = sw::redis::Redis("tcp://127.0.0.1:6379"); |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/socket.h> | |
#include <netpacket/packet.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <net/if.h> | |
#include <netinet/in_systm.h> |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
https://code.woboq.org/userspace/glibc/resolv/inet_ntop.c.html#15tmp | |
*/ | |
void ip_ntop(uint32_t src, char *dest){ |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/socket.h> | |
#include <netpacket/packet.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <net/if.h> | |
#include <netinet/ip.h> |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/socket.h> | |
#include <netpacket/packet.h> | |
#include <net/ethernet.h> | |
#include <sys/ioctl.h> | |
#include <net/if.h> | |
#include <netinet/ip.h> |