Skip to content

Instantly share code, notes, and snippets.

View danilosilvadev's full-sized avatar
🎯
Focusing

Danilo Silva danilosilvadev

🎯
Focusing
View GitHub Profile
@danilosilvadev
danilosilvadev / index.html
Last active January 17, 2018 16:24
Responsive
<header class="header">
<button class="open_menu">Open</button>
<div class="logo">Logo</div>
<nav class="nav">
<ul class="main_menu">
<a href="#">
<li>Option1</li>
</a>
<a href="#">
<li>Option2</li>
@danilosilvadev
danilosilvadev / email-validation.js
Last active August 16, 2018 17:46
# Settle of things to use in an utils folder + a form validated
const emailValidation = email => /\S+@\S+\.\S+/.test(email) ? true : false;
export default emailValidation
{
"name": "@bluefoot/mirch",
"version": "0.1.0",
"private": true,
"dependencies": {
"@babel/preset-env": "^7.0.0",
"@bluefoot/ymir": "^0.3.8",
"axios": "^0.18.0",
"html-react-parser": "^0.6.1",
"husky": "^1.3.1",

Rules:

  1. Ser DESCRITIVO, nada de links apenas, tem que ter resumo das tasks e serem numeradas. Links são info adicionais não o escopo da task.

  2. Export do requestly anexado se tiver que usá-lo.

  3. Link de onde testar SEMPRE, e se em mais de um lugar. Link completo de tds eles.

  4. Info adicional em casos diferentes que necessitem de algo a mais.

  5. Quaisquer mudanças ou alterações discutidas em comentários DEVEM SER ACRESCENTADAS na descrição do PR, não é bom gastarmos tempo lendo tds os comentários em tds os sites q a pessoa discutiu o PR.

const cnpj = (value) => {
console.log(value, 'o valor q entrou')
var cnpj = value.replace(/[^\d]+/g,'');
// cnpjs inválidos conhecidos
const numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
for(i of numbers) {
if (i.repeat(14) === cnpj) { return false}
}

Advanced Interview questions

Axios interceptor, fetchAPI

Lazyload, suspense, placeholder component

Errorbondarie

Webworker

LocalStorage, sessionStorage, indexDb

Auth token?, refreshToken, access token

Devtools profileID, audits, reduxtools, profiler

PWA Service worker

@danilosilvadev
danilosilvadev / LambdaExpressionsInLessThanTwoMinute.md
Last active April 27, 2021 21:07
Lambda Expressions in less than 2 minutes

Sample:

Fact 1 - Consider the methods has 2 parts: HEAD(public void nameOfMethod(Input input)) and BODY({Everything inside the keys}).

//without lambda you still use the HEAD as always.
    public void printName() {
        System.out.println(“Print without lambda”);
 }
@danilosilvadev
danilosilvadev / ES2015In20Minutes.js
Last active June 7, 2021 15:25
A quick guide to reference the ES06
//This gist is a fast reference to ES06 to whose already knows es05.
//I'm trying to use a different approach: first the example and after the explanation.
//Lesson 1: Template literals
console.log(`hello ${firstname},
how are you?`);
//Template literals are string literals with support for interpolation(using ${variable}) and multiple lines.
@danilosilvadev
danilosilvadev / VSCODE.md
Last active April 16, 2022 07:28
deuMerda é um gist para caso eu precise reinstalar o ubuntu e suas dependências.

Plugins

  • eslint
  • tslint
  • prettier
  • spotify
  • zen tabs
  • string manipulation
  • jupyter notebook
  • python
1. Look who helped the enemy jg to know his position and where he will gank
2. To know if he is early or midgame to know when he will gank
3. smiterino to train smite
4. A video for minimap awareness https://www.youtube.com/watch?v=lYmgW4UkyZU
5. Gank only the winners teammates/lanes
6. At beginning be carefull with the minion wave
7. Mute all at start
8. If the enemy JG is dead still his camps, priorize his camps
9. If you see him in the oposite site of the map, still the most you can advantage(gank, camps or objectives)
10. The mirror rule