Skip to content

Instantly share code, notes, and snippets.

🚀
Launching a rocket

Diego Fernandes diego3g

🚀
Launching a rocket
Block or report user

Report or block diego3g

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 .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
View server.json
{
"feed": [
{
"id": 1,
"image": "https://rocketseat-cdn.s3-sa-east-1.amazonaws.com/instagram-clone/1.jpeg",
"small": "https://rocketseat-cdn.s3-sa-east-1.amazonaws.com/instagram-clone/small/1.jpeg",
"aspectRatio": 0.834,
"description": "Working hard at Rocketseat!",
"authorId": 1
},
View api.js
export function loadLists() {
return [
{
title: 'Tarefas',
creatable: true,
cards: [
{
id: 1,
content: 'Estudar módulo 01 de NodeJS',
labels: ['#7159c1'],
View settings.json
{
// Define o tema do VSCode
"workbench.colorTheme": "Dracula",
// Configura tamanho e família da fonte
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
View ReactSelect.js
import React, { useRef, useEffect } from "react";
import Select from "react-select";
import { useField } from "../../../lib";
interface Option {
id: string;
title: string;
}
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
View .eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [
'react-app',
'airbnb',
'plugin:@typescript-eslint/recommended',
View podcasts.js
const podcasts = [
{
"id": 1,
"title": "RocketCast",
"cover": "https://s3-sa-east-1.amazonaws.com/gonative/cover1.png",
"tracks": [
{
"id": "0",
"title": "Papercut",
"artist": "Linkin Park",
View options.js
interface Options {
/**
* The dialect of the database you are connecting to. One of mysql, postgres, sqlite, mariadb and mssql.
*
* Defaults to 'mysql'
*/
dialect?: string;
/**
View babel.config.js
module.exports = {
presets: ["module:metro-react-native-babel-preset"],
plugins: [
[
"babel-plugin-root-import",
{
"rootPathSuffix": "src"
}
]
],
You can’t perform that action at this time.