Skip to content

Instantly share code, notes, and snippets.

View Tatarotus's full-sized avatar

Samuel Dantas Tatarotus

View GitHub Profile
@Tatarotus
Tatarotus / css-only-accessible-floating-labels.markdown
Created May 29, 2018 00:21
CSS-Only Accessible Floating Labels
@Tatarotus
Tatarotus / daily-ui-006-user-profile.markdown
Created June 1, 2018 17:38
Daily UI #006 User Profile
function validateEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
}
@Tatarotus
Tatarotus / index.html
Created July 15, 2020 21:47
Just a sample html boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Sample html</title>
</head>
<body>
<h1>Sample html</h1>
@Tatarotus
Tatarotus / styles.css
Created July 18, 2020 18:56
Basic css file for custom styles
/* variables */
/* reset */
/* base styles */
/* fonts */
/* mobile styles */
{
"builds": [{ "src": "src/index.js", "use": "@vercel/node" }],
"routes": [{ "src": "/.*", "dest": "src/index.js" }]
}
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: true,
arrowParens: 'always',
};
@Tatarotus
Tatarotus / docker-compose.yaml
Last active October 30, 2020 17:45
$ docker-compose up -d # To Tear Down $ docker-compose down --volumes https://docs.docker.com/compose/install/
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['plugin:react/recommended', 'airbnb'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},