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> | |
<meta charset="utf-8"> | |
<title>Paste Image Example</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.6/bluebird.min.js"></script> | |
</head> | |
<body> |
const copyCode = () => ({ | |
codeElements: [], | |
init() { | |
this.codeElements = this.$el.querySelectorAll('code'); | |
this.addCopyButtons(); | |
this.mutate(); | |
}, |
<?php | |
//DOM Templating classes v7 © copyright (cc-by) Kroc Camen 2012 | |
//you may do whatever you want with this code as long as you give credit | |
//documentation at http://camendesign.com/dom_templating | |
class DOMTemplate extends DOMTemplateNode { | |
private $DOMDocument; | |
private $keep_prolog = false; | |
<?php | |
class QueryBuilder { | |
const QUERY_SELECT = 1; | |
const QUERY_INSERT = 2; | |
const QUERY_UPDATE = 3; | |
const QUERY_DELETE = 4; | |
const QUERY_REPLACE = 5; | |
const PARAMETER_STRING = 1; |
<?php | |
// Client script | |
$socket = stream_socket_client("tcp://localhost:8000", $errorNumber, $errorMessage); | |
if (!$socket) { | |
echo "{$errorMessage} ({$errorNumber})<br />\n"; | |
} else { | |
stream_set_blocking($socket, false); | |
$username = readline("Enter your username: "); |
<?php | |
declare(strict_types=1); | |
// For code organisation, goes on the user model. | |
namespace App\Concerns; | |
use App\Models\Follow; | |
use Illuminate\Database\Eloquent\Model; |
Images | |
<template> | |
<teleport to="body"> | |
<Transition | |
enter-active-class="transition duration-300 ease-in-out" | |
enter-from-class="translate-y-12 scale-75 opacity-0 ease-in-out" | |
enter-to-class="scale-100 opacity-100 ease-in-out" | |
leave-active-class="transition duration-300 ease-in-out" | |
leave-from-class="translate-y-0 scale-100 opacity-100 ease-in-out" | |
leave-to-class="translate-y-12 scale-75 opacity-0 ease-in-out" | |
> |