Skip to content

Instantly share code, notes, and snippets.

View jucemar-dimon's full-sized avatar
🚀

Jucemar Dimon jucemar-dimon

🚀
  • Florianópolis-SC
View GitHub Profile
<!-- SEO -->
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content=""/>
<link rel="alternate" href="" hreflang="pt-br" />
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:url" content="URL" />
module.exports = {
env: {
es2020: true,
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
@jucemar-dimon
jucemar-dimon / fisher-yates-shuffle-algorithm.js
Created November 16, 2020 15:15
An algorithm for generating a random permutation of a finite sequence.
/*
* https://bost.ocks.org/mike/shuffle
*/
function shuffle(array) {
var m = array.length, t, i;
// While there remain elements to shuffle…
while (m) {
@jucemar-dimon
jucemar-dimon / bairros-biguaçu.geojson
Last active November 11, 2020 11:19
Coordenadas dos bairros do município de Biguaçu-SC demarcados com base na Lei Ordinária nº 3051/2011 de 01 de junho de 2011.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
react-intl-universal: Internacionalização.
@jucemar-dimon
jucemar-dimon / search.js
Created September 7, 2020 18:55
Function to Filter array comparing strings ignoring special caracters
const handleSearch = () => {
const formatedQuery = query
.toLowerCase()
.trim()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
const resultsTemp = clientes.filter(cliente => {
const formatedString = cliente.nome
.toLowerCase()
.trim()
const Schema = Yup.object().shape({
password: Yup.string()
.required('Campo senha vazio.')
.matches(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/,
'Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and One Special Case Character',
),
changepassword: Yup.string().when('password', {
is: val => (val && val.length > 0 ? true : false),
then: Yup.string().oneOf(
npx --ignore-existing react-native init MyApp.
In MacOs Mojave with RN 0.61 and Xcode 10.1, when pod install glog (0.3.5) error...
to resolve this, just type on terminal:
sudo xcode-select --switch /Applications/Xcode.app
add in android/app/src/main/res/value
if there is no 'styles.xml' file then create your own 'styles.xml' and put the code below :
<resources>
<style name="SpinnerStyle" parent="@android:style/Widget.Spinner">
<item name="android:background">@null</item>
</style>
<style name="SpinnerItem" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:gravity">right</item>