See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Basic interactive video with HTML5 and vanilla JavaScript</title> | |
| </head> | |
| <body> | |
| <!-- Read my blog post on interactive videos: https://mostlydevstuff.com/2018/basic-interactive-video-with-html5-and-javascript/ --> | |
| <style> |
Install the dependencies for the archiso package:
(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git
I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below.
So, grab the most recent version from git and install it:
(user): git clone git://projects.archlinux.org/archiso.git && cd archiso
| from pyramid.security import NO_PERMISSION_REQUIRED | |
| def includeme(config): | |
| config.add_directive( | |
| 'add_cors_preflight_handler', add_cors_preflight_handler) | |
| config.add_route_predicate('cors_preflight', CorsPreflightPredicate) | |
| config.add_subscriber(add_cors_to_response, 'pyramid.events.NewResponse') | |
| class CorsPreflightPredicate(object): |
| # [<tag>] (If applied, this commit will...) <subject> (Max 72 char) | |
| # |<---- Preferably using up to 50 chars --->|<------------------->| | |
| # Example: | |
| # [feat] Implement automated commit messages | |
| # (Optional) Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # (Optional) Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |
| from django.contrib import admin | |
| from .models import Blog | |
| from .fields import UserSelectWidget | |
| class BlogForm(forms.ModelForm): | |
| class Meta: | |
| model = Blog | |
| exclude = [] |
| package com.facebook; | |
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| public class AccessTokenCreator { | |
| public static AccessToken createToken(Collection<String> grantedPermissions) { | |
| return new AccessToken("token", "appId", "userId", grantedPermissions, | |
| new ArrayList<String>(), AccessTokenSource.WEB_VIEW, null, null); |
| function remove_emoji($text) { | |
| $clean_text = ""; | |
| // Match Emoticons | |
| $regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u'; | |
| $clean_text = preg_replace($regexEmoticons, '', $text); | |
| // Match Miscellaneous Symbols and Pictographs | |
| $regexSymbols = '/[\x{1F300}-\x{1F5FF}]/u'; |