Skip to content

Instantly share code, notes, and snippets.

View gabizinha12's full-sized avatar
🖥️
creating bugs

Gabrielle Lima gabizinha12

🖥️
creating bugs
  • São Paulo
  • 07:42 (UTC -03:00)
View GitHub Profile
@amysimmons
amysimmons / js-tricky-bits.md
Last active November 16, 2022 02:42
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@takanuva
takanuva / agt.h
Last active July 25, 2022 19:57
Simple generic print() and scan() macros
/*******************************************************************************
* Copyright 2022 Paulo Torrens *
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy *
* of this software and associated documentation files (the "Software"), to *
* deal in the Software without restriction, including without limitation the *
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or *
* sell copies of the Software, and to permit persons to whom the Software is *
* furnished to do so, subject to the following conditions: *
* *
@alexilyaev
alexilyaev / . README.md
Last active May 18, 2022 15:16
Setup ESLint with Prettier

ESLint with Prettier Setup

Basically, when using Prettier, all ESLint styling rules should be disabled.
This can be done with eslint-config-prettier.

See .eslintrc.js example below.
In prettier.config.js you can use anything you want (see example below).

Now the tricky part is how to run them...
Usually ESLint should run first, then Prettier.

@franciscojsc
franciscojsc / tabuada.py
Created October 24, 2017 14:29
TABUADA EM PYTHON
valor = int(input('Entre com um número para saber a tabuada: '))
aux = 0
print('*' * 18)
print('Tabuada de {}'.format(valor))
print('*' * 18)
while(aux <= 10):
print('{0} X {1} = {2}'.format(aux, valor, (aux * valor)))
aux = aux + 1
@rafabarbosa
rafabarbosa / UsandoHooks.js
Created October 29, 2019 04:00
Aprendendo a consumir API usando hooks no ReactJS
import React, { useState } from 'react';
import axios from 'axios';
export default function Lista () {
const [cep, setCep] = useState({ cep: '' });
const [informacoes, setInformacoes] = useState({
cep: '',
logradouro: '',
complemento: '',
@danielbonifacio
danielbonifacio / settings.json
Created March 13, 2019 12:33
Configuração do ESLint no Visual Studio Code
{
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "vue",
"autoFix": true
},
{
"language": "html",
"autoFix": true
@tanaikech
tanaikech / submit.md
Last active May 27, 2021 10:14
Send mails from Gmail using Nodemailer

Send mails from Gmail using Nodemailer

This is a sample script for sending e-mails from gmail using Nodemailer. In order to use this, please retrieve the folloing parameters before run this script.

  1. gmail address
  2. client ID
  3. client Secret
  4. Refresh token
    • Please include https://mail.google.com/ in the scope.
  5. Enable gmail API at API console.
  6. Install Nodemailer
@luisvonmuller
luisvonmuller / auto-invite-2021.js
Last active April 22, 2021 03:32
Simple auto invite code for LinkedIn.
var linkedinhoAutoInviter = class {
constructor(maxInvites, actionDelay, pageDelay, ScrollDelay) {
this.pageButtons = [];
this.alreadyInvited = 0;
this.maxInvites = maxInvites;
this.actionDelay = actionDelay;
this.pageDelay = pageDelay;
@domeniqque-pereira-deel
domeniqque-pereira-deel / cloudSettings
Last active October 26, 2020 21:36
Configuração básica do eslint em projetos react, by @Rocketseat
{"lastUpload":"2020-03-06T12:31:17.554Z","extensionVersion":"v3.4.3"}