Skip to content

Instantly share code, notes, and snippets.

View tiagonevestia's full-sized avatar
💻
"Um bom arqueiro acerta o alvo antes de ter disparado." - Zhao Buzhi

Tiago Neves tiagonevestia

💻
"Um bom arqueiro acerta o alvo antes de ter disparado." - Zhao Buzhi
View GitHub Profile
@tiagonevestia
tiagonevestia / app.js
Created December 12, 2019 02:47
Home
import React from 'react';
import {
View,
ScrollView,
Text,
Dimensions,
TouchableOpacity,
KeyboardAvoidingView,
TextInput,
} from 'react-native';
// function useState(initialValue) {
// var _val = initialValue;
// function state() {
// return _val;
// }
// function setState(newVal) {
// _val = newVal;
// }
@tiagonevestia
tiagonevestia / machine.js
Created October 10, 2019 14:31
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'post-screen',
initial: 'ready',
context: {
text: '',
},
states: {
ready: {
type: 'paralell',
on: {
const videoMachine = Machine({
id: 'videoMachine',
initial: 'loading',
states: {
loading:{
on: {
LOADED: 'ready',
FAIL: 'failure'
}
},
const machineState = Machine({
id: 'datamachine',
initial: 'loading',
context: {
data: [],
},
states: {
loading: {
on: {
@tiagonevestia
tiagonevestia / machine.js
Last active October 2, 2019 12:50
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
initial: 'fechado',
states: {
fechado: {
on: {
ABRINDO: 'abrindo',
},
},
abrindo: {
yarn add eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-config-prettier eslint-plugin-prettier prettier @typescript-eslint/eslint-plugin @typescript-eslint/parser -D
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [
'react-app',
@tiagonevestia
tiagonevestia / gist:9998b08458d6d0637e1f5f58d10ef4ad
Created August 23, 2019 16:34 — forked from devinodaniel/gist:8f9b8a4f31573f428f29ec0e884e6673
Generate SSH RSA Private/Public Key pair with Golang
// This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"golang.org/x/crypto/ssh"
{
// Define o tema do VSCODE
// Theme Setup.
"workbench.colorTheme": "Shades of Purple",
"editor.fontFamily": "Fira Code",
"terminal.integrated.fontFamily": "Fira Code",
"editor.fontSize": 17,
"editor.lineHeight": 24.65,
"editor.letterSpacing": 0.5,
"editor.fontWeight": "400",
{
// Define o tema do VSCODE
"workbench.colorTheme": "Dracula",
// Configura tamanho e família da fonte
"editor.fontSize": 14,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"[typescript]": {