Skip to content

Instantly share code, notes, and snippets.

View diaraujo13's full-sized avatar
🎯
Focusing

Izaías Araújo diaraujo13

🎯
Focusing
  • UNIVASF
  • Petrolina, Pernambuco
  • 23:24 (UTC -03:00)
  • LinkedIn in/diaraujo13
View GitHub Profile
@codediodeio
codediodeio / database.rules.json
Last active January 28, 2024 19:07
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@diaraujo13
diaraujo13 / config.md
Created January 15, 2017 04:03
react-native-facebook-login instalação para Android

Android Setup: react-native-facebook-login

** Passo 0 - Configure seu aplicativo do Facebook **

  • Vá até Facebook App Setup (Key Hash, App Id, etc) e entre com os dados que eles exigem!

PACOTE: veja o pacote do seu aplicativo (basta ver no AndroidManifest) CLASSE PRINCIPAL: MainActivity (só o nome da classe principal)

Na hora de gerar os hashes, eles aceitam mais de um, ou seja, o debug e o release.

@esamattis
esamattis / WebViewAutoHeight.js
Last active February 11, 2022 16:01
React native: Is it possible to have the height of a html content in a webview? http://stackoverflow.com/q/32952270
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016 Esa-Matti Suuronen <esa-matti@suuronen.org>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@diegoconcha
diegoconcha / redux_egghead_notes.md
Last active January 18, 2022 13:23
Redux Egghead.io Notes

###Redux Egghead Video Notes###

####Introduction:#### Managing state in an application is critical, and is often done haphazardly. Redux provides a state container for JavaScript applications that will help your applications behave consistently.

Redux is an evolution of the ideas presented by Facebook's Flux, avoiding the complexity found in Flux by looking to how applications are built with the Elm language.

####1st principle of Redux:#### Everything that changes in your application including the data and ui options is contained in a single object called the state tree

@maikotrindade
maikotrindade / storageAndroid
Last active August 30, 2018 22:27
Observações sobre /storage/emulated/0/ no Android
Isso tem a ver com o recurso Multi-User habilitado com JellyBean 4.2. A fim de lidar com contas separadas, partes da estrutura do diretório teve que ser mudado. '/sdcard/legacy' por exemplo sempre aponta para o diretório do cartão SD do usuário conectado no momento.
Com o Android 4.2, o Google introduziu um novo recurso Multi-User. A fim de acomodar vários usuários, o Google está disponibilizando a cada usuário sua própria pasta para armazenamento.
/storage/emulated/0/
Isso se refere à "MMC" ("parte proprietário"). Normalmente, este é o interno. O "0" representa o usuário aqui, "0" é o primeiro dispositivo de proprietário do usuários. Se você criar usuários adicionais, este número aumentará para cada.
/storage/emulated/legacy/
Como antes, mas apontando para a parte do usuário atualmente trabalhando (para o proprietário, este seria um link simbólico para(/storage/emulated/0/).
@mickaelandrieu
mickaelandrieu / install.sh
Last active May 3, 2023 21:40
Install phantomjs/casperjs on GNU/Linux
#!/bin/bash
# `` sudo sh install.sh ``
# Developement environnement
# Important: use 'i686' instead of 'x86_64'
#
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724
echo Installation de Phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2