Skip to content

Instantly share code, notes, and snippets.

Trần Văn Luận luandevpro

  • Viet Nam
Block or report user

Report or block luandevpro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .eslintrc.json
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"rules": {
"no-shadow": "off",
"global-require": "off",
"no-console": "off",
View Terminal1
yarn add babel-cli \
babel-eslint \
eslint \
eslint-config-airbnb \
eslint-config-prettier \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-jsx-a11y \
eslint-plugin-prettier \
eslint-plugin-react \
View Terminal
yarn add apollo-cache-inmemory \
apollo-client \
apollo-link-context \
apollo-link-http \
apollo-link-ws \
firebase \
graphql \
graphql-tag \
jwt-decode \
lodash \
View Terminal
firebase deploy --only functions
View index.js
const metadataRef = admin.database().ref(`metadata/${user.uid}`);
return metadataRef.set({ refreshTime: new Date().getTime() });
View index.js
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
// On sign up.
exports.processSignUp = functions.auth.user().onCreate(user => {
return admin
.auth()
.setCustomUserClaims(user.uid, {
View Terminal
npm install -g firebase-tools
firebase login
firebase init functions
View settings.json
{
"editor.fontSize": 16.5,
"files.autoSave": "afterDelay",
"emmet.triggerExpansionOnTab": true,
"git.enableSmartCommit": true,
"emmet.showSuggestionsAsSnippets": true,
"editor.fontLigatures": true,
"editor.tabSize": 3,
"window.zoomLevel": 1,
"editor.insertSpaces": true,
View Terminal
sudo apt-get update
sudo apt-get -y upgrade
wget https://dl.google.com/go/go1.12.2.linux-amd64.tar.gz
sudo tar -xvf go1.12.2.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME/Documents/Go/
View CustomCheckBox.js
import React from 'react';
import { View, Text } from 'react-native';
import { CheckBox } from 'react-native-elements';
import { ErrorMessage } from 'formik';
const _languages = ['vi', 'vn', 'en'];
export default function CustomCheckBox(props) {
const handleOnPress = (_language, checked) => {
if (!checked) {
You can’t perform that action at this time.