See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"syscall" | |
) | |
const ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detect operating system in Makefile. | |
# Author: He Tao | |
# Date: 2015-05-30 | |
OSFLAG := | |
ifeq ($(OS),Windows_NT) | |
OSFLAG += -D WIN32 | |
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
OSFLAG += -D AMD64 | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LRUCache { | |
class DLinkedNode { | |
int key; | |
int value; | |
DLinkedNode prev; | |
DLinkedNode next; | |
} | |
private DLinkedNode head, tail; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a[maxn]; | |
int lowbit(int x) | |
{ | |
return x&(-x); | |
} | |
void add(int x,int y) | |
{ | |
while(x<=n) | |
{ | |
a[x]+=y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int find(int x) | |
{ | |
if(x!=fa[x]) | |
fa[x]=find(fa[x]); | |
return fa[x]; | |
} | |
void union(int x,int y) | |
{ | |
int a=find(x),b=find(y); | |
if(a!=b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
# cam = cv2.VideoCapture(0) # local camera | |
# cam = cv2.VideoCapture("/path/to/video") # open video | |
cam = cv2.VideoCapture("rtsp://admin:password123@192.168.1.64:554") | |
# 设置摄像头尺寸 | |
cam.set(cv2.CAP_PROP_FRAME_WIDTH, 64) | |
cam.set(cv2.CAP_PROP_FRAME_HEIGHT, 48) | |
# 获取摄像头尺寸 | |
while True: | |
ret, frame = cam.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo { | |
// immutability | |
private final int a; | |
private final int b; | |
private final int c; | |
private final int d; | |
private final int e; | |
public static class Builder { | |
private final int a; |
NewerOlder