Skip to content

Instantly share code, notes, and snippets.

View shuantsu-zz's full-sized avatar

Filipe Teixeira shuantsu-zz

View GitHub Profile
@shuantsu-zz
shuantsu-zz / alura.js
Last active April 26, 2021 23:57
Alura quanto tempo a aula vai levar
const a = [];
document.querySelectorAll('.task-menu-nav-item-videoDuration').forEach((x)=>{a.push(parseInt(x.innerHTML.replace('min', '')))});
const speeds = [1, 1.2, 1.5, 2, 2.5, 3];
const total = a.reduce((x, y) => x + y);
let s = "";
for (let speed of speeds) {
const tempo = total / speed;
import random, sys, os, pprint, time
from colorama import init, Fore, Back, Style
os.system('chcp 932')
print('iniciando...')
init()
readings = [
const does = (container) => ({
"contain": (what) => {
return container.indexOf(what) > -1;
},
});
const name = "Filipe Teixeira";
if ( does(name).contain("Teixeira") ) {
console.log("Você é Teixeira");
@shuantsu-zz
shuantsu-zz / index.js
Last active April 26, 2021 17:11
react todo
import ReactDOM from 'react-dom';
import { React, useEffect, useState } from "react";
import './style.css';
function App() {
const [ value, setValue ] = useState("");
const [ tasks, setTasks ] = useState([]);
const [ ask, setAsk ] = useState(false);
@shuantsu-zz
shuantsu-zz / index.css
Last active April 27, 2021 17:50
React Counters
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: roboto, sans-serif;
padding: 20px;
javascript:(function()%7Bconst%20altTags%20%3D%20document.querySelectorAll('%5Balt%5D')%3Bif%20(altTags.length%20%3D%3D%3D%200)%20%7Balert(%22Sem%20imagens%20com%20atributo%20%5C%22alt%5C%22%20para%20exibir.%22)%7D%20else%20%7Bconst%20newWindow%20%3D%20window.open(null%2C%20%22_blank%22%2C%20%22width%3D900%2Cscrollbars%3D1%22)%3BnewWindow.document.write('%3Cmain%3E')%3BaltTags.forEach((el)%3D%3E%7BnewWindow.document.write(%60%3Cdiv%3E%3Cimg%20src%3D%22%24%7Bel.src%7D%22%2F%3E%3Cp%3E%24%7Bel.alt%7D%3C%2Fp%3E%3C%2Fdiv%3E%60)%3B%7D)%3BnewWindow.document.write('%3C%2Fmain%3E')%3BnewWindow.document.write(%60%3Cstyle%3E*%20%7Bbox-sizing%3A%20border-box%3Bmargin%3A%200%3Bpadding%3A%200%3Bfont-size%3A%2014pt%3Bfont-family%3A%20sans-serif%3B%7Dhtml%2C%20body%20%7Bwidth%3A%20100%25%3B%7Dimg%20%7Bmax-width%3A%20100%25%3B%7Ddiv%20%7Bpadding%3A%2020px%3Bdisplay%3A%20block%3Bborder-bottom%3A%201px%20dashed%20%23333%3B%7Ddiv%3Alast-child%20%7Bborder-bottom%3A%20none%3B%7Dp%20%7Bmargin-top%3A%2020px%3B%7D%3C%2Fstyle%3E%60)%3
@shuantsu-zz
shuantsu-zz / aula-1.md
Last active June 21, 2021 19:58
rocketseat-2021