This file contains 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
{{ | |
googlemap( | |
identifier="no-controls-map", | |
lat=37.4419, | |
lng=-122.1419, | |
zoom_control=False, | |
maptype_control=False, | |
scale_control=False, | |
streetview_control=False, | |
rotate_control=False, |
This file contains 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; | |
} |
This file contains 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 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 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 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 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 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 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 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: { |