See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
const OtpModal = ({ modal, toggle, phoneNumber = '', successCb }) => { | |
const [otp, setOtp] = useState(''); | |
const [timer, setTimer] = useState(10); | |
const [hasResendOtp, setHasResendOtp] = useState(false); | |
const [errorMessage, setErrorMessage] = useState(''); | |
useEffect(() => { | |
const interval = setInterval(() => { | |
setTimer((timer) => { | |
if (timer === 1 || timer === 0) { |
I want to copy this layout
https://dev-to-uploads.s3.amazonaws.com/i/71w6824uld2tn1ujyc5i.png
/* ---------------------------------------------------------------------------------------------------- | |
Super Form Reset | |
A couple of things to watch out for: | |
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered. | |
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders. | |
- You NEED to set the font-size and family on all form elements | |
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs |
GNU nano 4.8 /var/www/html/dist/.htaccess | |
# Turn mod_rewrite on | |
RewriteEngine On | |
RewriteBase / | |
# To externally redirect /dir/foo.php to /dir/foo | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC] | |
RewriteRule ^ %1 [R,L,NC] |
telefoneValidateOld(value) => | |
value.length < 11 ? 'Insíra um número válido' : null; | |
telefoneValidate(String value) { | |
if (value.isNotEmpty) { | |
return value.length < 11 ? 'Insíra um número válido' : null; | |
} | |
return null; | |
} |
from odoo import http | |
from odoo.addons.http_routing.models.ir_http import unslug | |
from odoo.http import request | |
from odoo.addons.web import Home | |
class EcommercePage(Home): | |
@http.route(['/'], type='http', auth="public", website=True) | |
def halaman_page(self, **post): | |
barang_ids = request.env['barang.dagang'].sudo().search([]) |
# Type this on your Terminal CLI | |
# Refer to this link to understand below rules: https://wiki.centos.org/HowTos/Network/IPTables | |
# Set default input policy to ACCEPT | |
iptables -P INPUT ACCEPT | |
# Flush all current rules! | |
iptables -F |
^(---(?:\r?\n(?!--|\s*$).*)*)\s*((?:\r?\n(?!---).*)*\r?\n---) |