View index.html
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
<main class="has-background-dark"> | |
<div class="is-family-sans-serif has-text-white has-text-centered"> | |
<h1 class="is-size-1 has-text-centered is-uppercase has-text-weight-bold">Sound check!</h1> | |
<p class="">See if your microphone and headphones are setup properly</p> | |
<p> For the Microphone test, a prompt will appear asking for permission to access your select output device </p> | |
<p>If you are not using headphones, it'll have a loop feedback</p> | |
<p></p> | |
<button class="button is-primary is-fullwidth is-large" id="micTest" type="button">Test Microphone</button> | |
<button class="button is-link is-light is-fullwidth is-medium" id="soundTest" type="button">Test Headphone/Speakers</button> |
View whatsappweb.js
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
/* | |
How to use it? | |
Open chrome, then visit web.whatsapp.com | |
Press F12, click at console | |
Copy the code bellow and paste into console. | |
Don't worry, you can trust me, I am a loveeeely person. |
View .htaccess
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
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache | |
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Techniques in here adapted from all over, including: | |
# Kroc Camen: camendesign.com/.htaccess | |
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
# Sample .htaccess file of CMS MODx: modxcms.com |
View gist:219f05912f8f51c4842a53e0ad83ac9c
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
Android developers resources | |
Getting started in Android development | |
Android developers | |
- official website https://developer.android.com/ | |
- Codelabs https://codelabs.developers.google.com/ | |
- Youtube https://www.youtube.com/user/androiddevelopers | |
Kotlin |
View docker-setup.sh
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
#!/bin/bash | |
# docker | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable" |
View buscaNome.kt
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
/** | |
* We declare a package-level function main which returns Unit and takes | |
* an Array of strings as a parameter. Note that semicolons are optional. | |
*/ | |
fun main(args: Array<String>) { | |
val funcaoDeSucesso = { nome:String -> | |
println(nome) | |
} | |
val funcaoDeFalha = { -> |
View RunRunFullBoard.html
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
Acessar: | |
https://mrcoles.com/bookmarklet/ | |
<a class="bookmarklet" href="javascript:(function()%7B(function%20()%20%7Bdocument.querySelector('.is-collapsed%3Anot(.off-canvas)%20.basic-page').style.paddingTop%20%3D%20'0px'%3Bdocument.querySelector('.is-collapsed%3Anot(.off-canvas)%20.basic-page').style.paddingLeft%20%3D%20'0px'%3Bdocument.querySelector('div.tabLayout-bodyWrapper').style.paddingTop%20%3D%20'0px'%3Bdocument.querySelector('div%5Bdata-region%3D%22header%22%5D').style.display%3D'none'%3Bdocument.querySelector('%23application-header').style.display%3D'none'%3Bdocument.querySelector('div.tabLayout-header').style.display%3D'none'%3Bdocument.querySelector('.sidemenu-container').style.display%3D'none'%3Bdocument.querySelector('div.tabLayout%20.tabLayout-bodyWrapper%20.cardsLayout').style.height%3D'100%25'%3Bvar%20elem%20%3D%20document.body%3Bvar%20requestMethod%20%3D%20elem.requestFullScreen%20%7C%7C%20elem.webkitRequestFullScreen%20%7C%7C%20elem.mozRequestFullScreen%20%7C%7C%20elem.msRequestFullScreen%3 |
View modos.js
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
var moedas = [0.01, 0.05, 0.10, 0.25, 0.50, 1.00, 2.00, 5.00, 10.00, 20.00, 50.00, 100.00]; | |
var valor = 4.10 ; | |
function modos(troco,maior_moeda){ | |
if(maior_moeda < 0){ | |
return 1; | |
} | |
var contador = 0; | |
while(troco >= 0 ){ | |
contador = contador + modos(troco, maior_moeda -1); | |
troco = troco - moedas[maior_moeda]; |
View modos.js
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
var moedas = [0.01, 0.05, 0.10, 0.25, 0.50, 1.00, 2.00, 5.00, 10.00, 20.00, 50.00, 100.00]; | |
var valor = 4.10 ; | |
function modos(troco,maior_moeda){ | |
if(maior_moeda < 0){ | |
return 1; | |
} | |
var contador = 0; | |
while(troco >= 0 ){ | |
contador = contador + modos(troco, maior_moeda -1); | |
troco = troco - moedas[maior_moeda]; |
View comoSerChatoNowhatsapp.js
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
/* | |
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
Que tal enviar mensagens pra ela até obter uma resposta?! | |
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
Para utilizar: | |
- Abra o web.whatsapp.com; | |
- Selecione a conversa que você quer; | |
- Abra o console e cole o código que está no gist; |
NewerOlder