Steps to create a postgres database and deply a Python app to Heroku
pipenv install gunicorn
or
pip install gunicorn
#include <opencv2/opencv.hpp> | |
#include <iostream> | |
int main(int, char**) { | |
// open the first webcam plugged in the computer | |
cv::VideoCapture camera(0); // in linux check $ ls /dev/video0 | |
if (!camera.isOpened()) { | |
std::cerr << "ERROR: Could not open camera" << std::endl; | |
return 1; | |
} |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
library(processx) | |
library(RPostgres) | |
library(httr) | |
library(dbplyr) | |
library(tidyverse) | |
# this example assumes you've created a heroku postgresql | |
# instance and have the app name (in this example, "rpgtestcon"). | |
# use the heroku command-line app |
from flask import Flask, render_template | |
from flask_paginate import Pagination, get_page_args | |
app = Flask(__name__) | |
app.template_folder = '' | |
users = list(range(100)) | |
def get_users(offset=0, per_page=10): |
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |