See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
from celery import Task | |
from celery.task import task | |
from my_app.models import FailedTask | |
from django.db import models | |
@task(base=LogErrorsTask) | |
def some task(): | |
return result | |
class LogErrorsTask(Task): |
class MainWidget(QtGui.QMainWindow): | |
def __init__(self, parent=None): | |
super(MainWidget, self).__init__(parent) | |
self.setWindowTitle("FiFiFactory App") | |
self.resize(720,480) | |
self.setAcceptDrops(True) | |
def dragEnterEvent(self, event): | |
if event.mimeData().hasUrls(): | |
event.accept() |
import requests | |
import time | |
import json | |
import sys | |
import threading | |
import queue | |
from datetime import timedelta | |
API_KEY = "YOUR_TMDB_APIKEY" | |
append_to_response = "images,alternative_titles,videos,credits,keywords,release_dates,similar_movies,recommendations" //Change this if you do not want all the data. |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | |
import tkinter as tk | |
import platform | |
# ************************ | |
# Scrollable Frame Class | |
# ************************ |
Emoji | Name | Text example |
---|---|---|
🚀 | Rocket | You're up |
📦 | Package | Installing additional dependencies... |
⚓ | Hook | Running completion hooks... |
📄 | Document | Generating README.md... |
🎉 | Party | Successfully created project hello-vue. |
👉 | Next | Get started with the following commands: |
✔ | Tick | Task completed |
✨ | Magic | Assembling project... |
# These are fragments of the configuration that will need to be updated | |
# --- | |
## GitLab URL | |
##! URL on which GitLab will be reachable. | |
##! For more details on configuring external_url see: | |
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab | |
external_url 'https://gitlab.your-fqdn.com' | |
#external_url 'http://gitlab.internal.lan' |
ffmpeg -i video-input.mp4 -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -c:v libx265 -crf 22 -preset medium -tune fastdecode video-output.mp4 |
import os | |
import subprocess | |
from pathlib import Path | |
import click | |
from pymediainfo import MediaInfo | |
BASE_FFMPEG_ARGS = [ | |
"-nostats", |