Skip to content

Instantly share code, notes, and snippets.

View from80s's full-sized avatar

Black from80s

View GitHub Profile
@from80s
from80s / index.html
Created January 25, 2023 11:40 — forked from claudiosanches/index.html
HTML5 - Validar número de celular em São Paulo
<div class="form-group">
<label for="phone">Telefone <span class="required">*</span></label>
<input type="text" class="form-control" id="phone" name="phone" placeholder="(99) 9999-9999" pattern="(\([0-9]{2}\))\s([9]{1})?([0-9]{4})-([0-9]{4})" title="Número de telefone precisa ser no formato (99) 9999-9999" required="required" />
</div>

Git config

Sublime Text e Sublime Merge

git config --global core.editor "subl -n -w"
git config --global merge.tool "smerge"
git config --global mergetool.smerge.cmd 'smerge mergetool "$BASE" "$LOCAL" "$REMOTE" -o "$MERGED"'
git config --global diff.tool smerge
git config --global difftool.smerge.cmd 'smerge "$BASE" "$LOCAL" "$REMOTE"  -o "$MERGED"'
@from80s
from80s / makePropertyWritable.js
Created March 15, 2022 17:16
Cria/torna uma propriedade editável
/**
* Created by: moehlone
* https://gist.github.com/moehlone/bed7dd6cb38fc55bd640
*/
/**
* Creates a read/writable property which returns a function set for write/set (assignment)
* and read/get access on a variable
*
* @param {Any} value initial value of the property
@from80s
from80s / webSafeColors.js
Last active March 8, 2022 14:50
Lista com todos os nome de cores da HTML (web safe colors). Dados extraídos do site https://www.w3schools.com/colors/color_tryit.asp
/*------------------------------------------------------------
** WEB SAFE COLORS
Array JavaScript com todos os nomes das cores seguras
para web, da HTML.
** extraído por Thiago Teles
** twitter: @Black_codenauta
** https://www.w3schools.com/colors/color_tryit.asp (source)
-------------------------------------------------------------*/
const gulp = require('gulp'),
babel = require('gulp-babel'),
clean = require('gulp-clean'),
cssnano = require('gulp-cssnano'),
autoprefixer = require('gulp-autoprefixer'),
htmlmin = require('gulp-htmlmin'),
svgo = require('gulp-svgo'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename');
@from80s
from80s / README.md
Created November 25, 2021 19:18 — forked from Robert-96/README.md
Ember.Js: Installing Tailwind CSS

Ember.Js: Installing Tailwind CSS

TL;DR

$ ember install ember-cli-postcss                   # Install ember-cli-postcss
$ npm install --save-dev tailwindcss                # Install tailwindcss

$ npx tailwind init app/styles/tailwind.config.js   # Optional: Generate a Tailwind config file for your project  
$ npm install -save-dev postcss-import # Optional: If you want to use the @import statement