See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
<?php | |
function cache_file() { | |
// something to (hopefully) uniquely identify the resource | |
$cache_key = md5($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . $_SERVER['QUERY_STRING']); | |
$cache_dir = '/tmp/phpcache'; | |
return $cache_dir . '/' . $cache_key; | |
} |
$( document ).ready(function() { | |
setTimeout(function(){ | |
$('.js-carousel-plp-bra2').slick({ | |
infinite: false, | |
dots: false, | |
autoplay: false, | |
arrows: false, | |
slidesToShow: 5, | |
slidesToScroll: 1, | |
responsive: [ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Command Voice</title> | |
</head> | |
<body> | |
<p id="output"></p> | |
<button id="start">Click and say something!</button> | |
<script> | |
(() => { |
<style> | |
ul { | |
padding: 0; | |
margin: 0; | |
clear: both; | |
} | |
li{ | |
list-style-type: none; |
{ | |
"paragraphs": [ | |
{ | |
"position": 0, | |
"content": "<div class=\"importantinfo__card\">\n <div class=\"importantinfo__card-title\">My Title</div>\n <div class=\"importantinfo__card-subtitle\">My subtitle long text My subtitle long text My subtitle long text <a href=\"#\" class=\"importantinfo__card-subtitlelink\">with link</a></div>\n</div>" | |
}, | |
{ | |
"position": 1, | |
"content": "<div class=\"importantinfo__card\">\n <div class=\"importantinfo__card-title\">My Title</div>\n <div class=\"importantinfo__card-subtitle\">My subtitle long text My subtitle long text My subtitle long text <a href=\"#\" class=\"importantinfo__card-subtitlelink\">with link</a></div>\n</div>" | |
}, |
# List of strings | |
texts = [ | |
"Big Size", | |
"Easy to fab", | |
"Can be storage outside", | |
"No fillers and cracks", | |
"Nice bookmatch", | |
"Requires minimum maintenance", | |
"Affordable price" | |
] |