Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Coding...

Jackson F. de A. Mafra jacksonfdam

💻
Coding...
View GitHub Profile
@jacksonfdam
jacksonfdam / index.html
Created May 16, 2022
Web RTC - Sound and Microphone Check
View index.html
<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
/*
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.
@jacksonfdam
jacksonfdam / .htaccess
Created May 28, 2020 — forked from morcegon/.htaccess
.htaccess optimized for laravel
View .htaccess
# 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
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
@jacksonfdam
jacksonfdam / docker-setup.sh
Created Aug 16, 2018 — forked from alikon/docker-setup.sh
Docker & Docker Compose Ubuntu 17.10
View docker-setup.sh
#!/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
/**
* 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 = { ->
@jacksonfdam
jacksonfdam / RunRunFullBoard.html
Created Jul 20, 2018
Bookmarklet - Para exibir a Board do RunRunIt em fullscreen sem as barras desnecessárias.
View RunRunFullBoard.html
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
@jacksonfdam
jacksonfdam / modos.js
Last active Mar 20, 2018
Baseado em uma resposta a uma questão que fiz no Yahoo! Respostas.
View modos.js
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];
@jacksonfdam
jacksonfdam / modos.js
Created Mar 20, 2018
Baseado em uma resposta a uma questão que fiz no Yahoo! Respostas.
View modos.js
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];
@jacksonfdam
jacksonfdam / comoSerChatoNowhatsapp.js
Created Oct 19, 2017 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguém te responder no whatsapp
View comoSerChatoNowhatsapp.js
/*
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;