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
class UsersForm(FlaskForm): | |
name = StringField('Name', validators=[DataRequired()]) | |
email = StringField('Email', validators=[DataRequired()]) | |
password = PasswordField('Password', validators=[DataRequired()]) | |
role = SelectField(u'Role', coerce=str) | |
submit = SubmitField('Submit') | |
def edit_user(id): | |
add_user = False |
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
os ?= $(shell lsb_release -cs) | |
install-docker:;: '$(os)' | |
@apt-get update | |
@apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
@curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
@apt-key fingerprint 0EBFCD88 |
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
{ | |
"recordings": [ | |
{ | |
"recording_name": "dir1", | |
"files": [ | |
{ | |
"filename": "filename1", | |
"bytestring": "bytestring1" | |
} | |
] |
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
version: 2 | |
jobs: | |
build: | |
working_directory: /app | |
docker: | |
- image: docker:17.05.0-ce-git | |
auth: | |
#Put the contents of keyfile.json into an environment variable for the build called GCR_CREDS, which is then passed in. | |
username: _json_key | |
password: $GOOGLE_AUTH |
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
#include <iostream> | |
using namespace std; | |
struct Pc{ | |
int ram; | |
int storage; | |
double battery; | |
string brand; |
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
ls -laR /home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new | |
/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new: | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.gitignore': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/requirements': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.pre-commit-config.yaml': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.venv': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/.circleci': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/setup.py': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/workspace/pupil-cloud-new/..': Permission denied | |
ls: cannot access '/home/bilal/Documents/offices/pupilcloud/wor |
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 | |
import time | |
import sys | |
import logging | |
def get_frames_parts(total_frames=0): | |
max_workers = 4 | |
part = total_frames / max_workers | |
results = [(i * part, (i + 1) * part) for i in range(max_workers)] |
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 time | |
import multiprocessing | |
import concurrent.futures | |
import cv2 | |
import logging | |
def elapsed_time(end, start): | |
return round(end - start, 1) |
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 time | |
import multiprocessing | |
import concurrent.futures | |
import cv2 | |
import logging | |
def elapsed_time(end, start): | |
return round(end - start, 1) |
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 click | |
import time | |
import multiprocessing | |
import concurrent.futures | |
import cv2 | |
import logging | |
import sys | |
import av | |
import numpy as np |
OlderNewer