#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
| import React, { useState } from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| ScrollView, | |
| TouchableOpacity, | |
| Image, | |
| ActivityIndicator, | |
| Dimensions, |
| require 'capistrano-db-tasks' | |
| # config valid only for current version of Capistrano | |
| lock '3.7.1' | |
| # Change these | |
| server 'myproject.com', port: 54321, roles: [:web, :app, :db], primary: true | |
| set :repo_url, '[email protected]:steven_chanin/myproject.git' | |
| set :application, 'myproject' |
| //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
| Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
| React Tools | |
| https://github.com/goldenyz/react-perfect-scrollbar | |
| https://github.com/frontend-collective/react-sortable-tree | |
| https://www.npmjs.com/package/react-hotkeys-hook | |
| https://usehooks.com/useEventListener/ |
| INSERT INTO marcas(id, nome, created_at) VALUES (1, 'ITATIAIA', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (10, 'COLORMAQ', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (12, 'CONSUL', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (15, 'ARNO', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (16, 'BLACK E', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (17, 'BRITANIA', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (27, 'FAET SA', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (33, 'IMOP', '2017-11-21 16:44:36'); | |
| INSERT INTO marcas(id, nome, created_at) VALUES (43, 'ACP', '2017-11-21 16:44:36'); |
| SALVA USUARIO E SENHA POR 8 HORAS: | |
| $ git config --global credential.helper 'cache --timeout=28800' | |
| SALVA USUARIO E SENHA PERMANENTE: | |
| $ git config --global credential.helper cache |
| Para instalar o Java 8 vamos utilizar o PPA do WebUpd8, abra o terminal e cole os seguintes comandos: | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer | |
| Depois da instalação para verificar se o Java foi instalado corretamente digite: | |
| java -version |
| https://bar8.com.br/o-que-%C3%A9-um-objeto-mesmo-7650ce5c59d2#.buogb357t |
| git checkout -b m master |