Skip to content

Instantly share code, notes, and snippets.

View MoisesDuarte's full-sized avatar
🏠
Working from home

MoisesDuarte

🏠
Working from home
View GitHub Profile
@MoisesDuarte
MoisesDuarte / css-spacing-helpers.css
Last active February 11, 2021 17:59
Base CSS Spacing Helpers
/* ### Base Spacing Unit ### */
:root {
--base-space-unit: 0.5em;
}
/* ### Padding & Margin Helpers ### */
/* Padding */
.pa-0 {
padding: 0;
}
const $ = function(Selector) {
return document.querySelector(Selector);
}
$.Json = function(Object){
return JSON.parse(Object)
}
$.Ajax = function(type = "GET", link) {
var xhttp = new XMLHttpRequest();
@bradtraversy
bradtraversy / docker-help.md
Last active July 30, 2024 20:02
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@felipefinhane
felipefinhane / Home.vue
Created April 2, 2018 12:01 — forked from VitorLuizC/Home.vue
Exemplo de Autenticação com JWT em Vue.js
<template>
<h1>Página secreta!</h1>
</template>
@arthurattwell
arthurattwell / pandoc-docx-md.bat
Last active September 5, 2023 02:35
Script to convert docx to markdown with Pandoc
:: pandoc-docx-md.bat
::
:: Don't show these commands to the user
@ECHO off
:: Set the title of the window
TITLE Convert docx to markdown with Pandoc
:: Select file marker
:selectfile
:: Clear any preexisting filename variables
SET filename=
@prasofty
prasofty / margin_padding_helper.css
Last active April 10, 2023 17:29
Margin Padding Helper CSS
.p-0 {
padding: 0px;
}
.p-3 {
padding: 3px;
}
.p-5 {
padding: 5px;
@boliveirasilva
boliveirasilva / phoneValidate_BR.php
Created October 14, 2015 16:11
Regex para validação de telefones (celular ou fixo) no Brasil. A expressão leva em conta o formato internacional/nacional, com ou sem o DDD, de telefones fixos e celulares.
<?php
// A função abaixo demonstra o uso de uma expressão regular que identifica, de forma simples, telefones válidos no Brasil.
// Nenhum DDD iniciado por 0 é aceito, e nenhum número de telefone pode iniciar com 0 ou 1.
// Exemplos válidos: +55 (11) 98888-8888 / 9999-9999 / 21 98888-8888 / 5511988888888
function phoneValidate($phone)
{
$regex = '/^(?:(?:\+|00)?(55)\s?)?(?:\(?([1-9][0-9])\)?\s?)?(?:((?:9\d|[2-9])\d{3})\-?(\d{4}))$/';
if (preg_match($regex, $phone) == false) {
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@JamieMason
JamieMason / html-languages.txt
Created September 19, 2012 08:50
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@growdigital
growdigital / kellum-image-replacement.css
Last active December 18, 2020 08:10
The Kellum Method!
/* Kudos to Scott Kellum & Jeffrey Zeldman
* http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
position: absolute;
}