Skip to content

Instantly share code, notes, and snippets.

View felipenmoura's full-sized avatar
🏠
Keeping safe

Felipe Nascimento de Moura felipenmoura

🏠
Keeping safe
View GitHub Profile
@felipenmoura
felipenmoura / animatedScrollTo.js
Last active November 30, 2022 10:01 — forked from joshbeckman/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
/**
* Will gracefuly scroll the page
* This function will scroll the page using
* an `ease-in-out` effect.
*
* You can use it to scroll to a given element, as well.
* To do so, pass the element instead of a number as the position.
* Optionally, you can pass a `queryString` for an element selector.
*
* The default duration is half a second (500ms)
@felipenmoura
felipenmoura / sample-discord-coc.md
Last active March 7, 2022 18:40 — forked from didichanoch/sample-discord-coc.md
A sample code of conduct for discord servers.

On2 Discord Code of Conduct

Welcome!

This is the discord server used by On2 Technologies.
Within this server, people can interact with teams organized throughout groups and roles.
If you got an invite to participate, say hi and let us know, to have you fully set up to your permissions.

BrazilJS - Convença seu chefe

A BrazilJS Conf é a principal conferência de JavaScript do Brasil a maior do mundo (sério). Trata-se do maior evento do mundo, sobre JavaScript, com palco único, onde os participantes não perdem nada do conteúdo. O evento já é tradição na comunidade de desenvolvimento Web brasileira. Todos os anos, centenas (+-1000) de desenvolvedores de todos os estados do Brasil e da América Latina(bem como de alguns outros países) comparecem ao que muitos dizem ser, o Woodstock da tecnologia web.

Justificativa

JavaScript é uma linguagem de programação em extrema ascensão, ganhando cada vez mais destaque no mercado e certamente, a linguagem mais apoiada por empresas como Google, Mozilla, Microsoft, Facebook, Yahoo!, Opera, Adobe, Apple, entre outras gigantes do mercado de tecnologia.
Apesar do nome, a conferência abrange diversos temas relacionados ao desenvolvimento web em geral, como: HTML, CSS, Node.js, SVG, We

### Keybase proof
I hereby claim:
* I am felipenmoura on github.
* I am felipenmoura (https://keybase.io/felipenmoura) on keybase.
* I have a public key ASDXzF93TujvjtFJel6gwwo-XtmgQ4JAy1FIsC-GYYhUuQo
To claim this, I am signing this object:
@felipenmoura
felipenmoura / mind3rd-demo_pt
Created April 14, 2011 15:45
An example of code to be used in Portuguese for theWebMind 3rd version
Cada professor pode ter um ou vários alunos sendo que todo aluno tem muitos professores.
Também, aluno tem uma mãe, pai e animal de estimação.
Tanto aluno quanto professor tem nome:varchar(255), idade:int e sexo:char(1).
Pai e mãe tem cpf:char(11, obrigatório, chave);
/**
* Tired of those "we detected you have ads blocked, white-list us to continue reading"?
* Then, your problems are over!
*
* PS.: Help me improve it, and as soon as it gets really stable and working in most sites,
* let's ship it as a browser extension :)
*/
function closeAnnoyingModal () {
w = document.body.offsetWidth + 'px';
h = window.innerHeight + 'px';
[{"ts":71.361345,"k":"y"},{"ts":71.45304500000002,"k":"o"},{"ts":71.54554500000002,"k":"u"},{"ts":71.64923000000002,"k":" "},{"ts":71.95499500000001,"k":"g"},{"ts":72.07511,"k":"a"},{"ts":72.138495,"k":"l"},{"ts":72.26093,"k":"l"},{"ts":72.43401500000002,"k":"o"},{"ts":72.724565,"k":"p"},{"ts":72.97629500000001,"k":" "},{"ts":73.29132500000001,"k":"w"},{"ts":73.402705,"k":"i"},{"ts":73.60449,"k":"t"},{"ts":73.75579,"k":"h"},{"ts":73.83970000000001,"k":" "},{"ts":73.91917000000001,"k":"a"},{"ts":74.03141500000001,"k":" "},{"ts":74.15184,"k":"l"},{"ts":74.31074000000001,"k":"o"},{"ts":74.45218000000001,"k":"o"},{"ts":74.58966500000001,"k":"s"},{"ts":74.82704000000001,"k":"e"},{"ts":75.11508500000001,"k":" "},{"ts":75.35971500000001,"k":"r"},{"ts":75.47549500000001,"k":"e"},{"ts":75.652395,"k":"i"},{"ts":75.756755,"k":"n"},{"ts":76.73293000000001,"k":"Enter"},{"ts":78.734745,"k":"Enter"},{"ts":78.886165,"k":"Enter"},{"ts":79.03145500000001,"k":"Enter"},{"ts":86.29885,"k":"."},{"ts":116.316445,"k":"T"},{"ts":116.
@felipenmoura
felipenmoura / navigator.vibrate-visualizer.js
Created October 14, 2016 21:43
Use this to visualize the vibration result from the navigator.vibrate api.
(function (){
const originalVibrate = navigator.vibrate;
navigator.vibrate = function(){
var timer = 0;
var _b = document.body || false;
var curToggleStatus = true;
var previousBodyBorder = _b.style.border || 'none';
function toggle (force) {
/*
 * to ilustrate it better, the idea is that the user will pass
 * two regex(so, they are dynamic).
 * I want to see if there is a way in which we can find out which
 * dynamic rx fits better the requirements
 */

let rx = [