Skip to content

Instantly share code, notes, and snippets.

Felipe Nascimento de Moura felipenmoura

Block or report user

Report or block felipenmoura

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View close-annoying-modal.js
/**
* 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';
@felipenmoura
felipenmoura / animatedScrollTo.js
Last active Jun 24, 2019 — forked from andjosh/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
View animatedScrollTo.js
/**
* Will gracefuly scroll the page
* This function will scroll the page using
* an `ease-in-ou` 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)
View typing-ai-results.json
[{"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 Oct 14, 2016
Use this to visualize the vibration result from the navigator.vibrate api.
View navigator.vibrate-visualizer.js
(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) {
View best-matched-rx.md
/*
 * 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 = [
View last week tonight on rescue.md

How can I suggest a subject for an episode?!

Please, HELP US!!! Brazil is loosing the war agains corruption! The President of the nation has been mentioned in the corruption investigation...the biggest manifestation in the history of the country happened last sunday agains Lula(the former president) and today, Dilma(the current president) just promoted him as a minister of the "civil house"...that means the investigations on him are going to be way more controllable and full of privilegies!!! The country is in an economic crisis and when Lula went(almost forcefully) to give his statement on his fraud investigation, stocks and currency rose up a lot! Now, with this, the economy goes down again! There is plenty of subject here! Dilma was not elected by the majority of people...the majority of people nulled their votes, or voted blank...ignoring all those votes, she was the most voted! People in Brazil can no longer handle it, but we cannot do anything either! Nothing works! THEY ARE TAKING OVER!! Please he

View BrazilJS-Convença-seu-chefe.md

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

View blockchainid
Verifying that +felipenmoura is my blockchain ID. https://onename.com/felipenmoura
@felipenmoura
felipenmoura / raffle-attendees.js
Last active Dec 8, 2015
Função utilizada para sortear entre os participantes na lista da eventick (em checkin.eventick.com.br)
View raffle-attendees.js
function selectOne(){
var x= [].slice.call(document.querySelectorAll('.tml-attendees-checked td:nth-child(2) strong')).map(function (cur){return cur.innerText;});
var picked = x[ Math.ceil(Math.random() * x.length) ];
console.log("%c" + picked, "font-weight: bold; color: red; font-size: 40px;");
return picked;
}
function selectAsMany(howMany){
var picked = [],
lastSelected,
You can’t perform that action at this time.