This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Montei um computador Madmax Frankstainson da Silva, adicionei um HD que tinha aqui já com Windows 7 32 bits. Tentei instalar o Chocolatey mas tive vários erros que esqueci de copiar, pois não estava em mente resgistar (tentarei lembrar). | |
No meu caso o PowerShell estava desatualizado (Versão 2.0), então vamos atualizar! | |
Basta seguir esse guia, provavelmente terá mais coisas desatualizadas, então é só ir instalando as ferramentas atualizadas. | |
https://docs.microsoft.com/pt-br/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7.1 | |
Após tudo atualizado, instale o Chocolatey: | |
https://docs.chocolatey.org/en-us/choco/setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let account = { | |
10000: { | |
name: 'CENTRALBANK', | |
sold: 1000.000 | |
}, | |
10100: { | |
name: 'RUAN ARAGÃO', | |
sold: 0.000 | |
}, | |
10101: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readline = require("readline"); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
function digitResover(val) { | |
// LM = 11k + r | |
const k = 11; // Quociente | |
const r = val%k; // Resto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getHoursNow() { | |
var date = new Date(); | |
var hours = date.getHours(); | |
return hours; | |
} | |
const colorToggleButtom = document.querySelector(".profile-color-modes-toggle"); | |
let hours = getHoursNow() | |
if (hours >= 18 && !colorToggleButtom.ariaChecked) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const copyToClipboard = (str: string) => { | |
const el = document.createElement('textarea'); | |
el.value = str; | |
el.setAttribute('readonly', ''); | |
el.style.position = 'absolute'; | |
el.style.left = '-9999px'; | |
document.body.appendChild(el); | |
el.select(); | |
document.execCommand('copy'); | |
document.body.removeChild(el); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Converte ROW to COLUMN CSV TABLE</title> | |
</head> | |
<body> | |
<input id="txt"> | |
<button id="btn">run</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Só pra jogar uma ideia rapidinho, no meu projeto inicial (e nunca continuado) eu utilizo 3 sensores ultrassônicos na frente, posicionados à 45°, 90° e 135°. Com isso consegue-se obter maior precisão, agilidade e dispensar o incomodo servo-motor. Para auxiliar, um sensor pir central apontado para cima (supondo que o robô seja de baixa estatura). Resumindo o trabalho dos sensores: Os sensores ultrassônicos cuidam de monitorar o caminho calculando com maior precisão aonde a barreira está, pois calcula com base nos valores dos três sensores, e o pir monitora a aproximação de algum corpo vindo de qualquer sentido, se for o caso, imediatamente o robô gira até ficar de frente ao corpo para que uma câmera possa visualizar e/ou que ele possa sair do caminho... | |
Licença: CC BY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Auto Next | |
// @namespace http://ruanaragao.github.io/ | |
// @version 0.1 | |
// @description Auto next queue | |
// @author Ruan Aragão | |
// @include https://jsbin.com* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Gallery</title> | |
</head> | |
<body> | |
<h1>Gallery</h1> | |
<div id="gallery"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#form-wrapper, | |
#field-samples { | |
border: 1px solid #e3e3e3; | |
display: block; | |
width: 320px; | |
min-height: 200px; | |
float: left; | |
margin: 10px; | |
padding: 10px; | |
} |