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 / mind3rd-demo_en
Created April 14, 2011 15:44
An example for the code to be used in english, into theWebMind 3rd version
teacher may have many students.
each student has many teachers.
both student and teacher have name:string and age:integer.
student has nickname:varchar(80, unique) and sex:char(1, required, "F", {F=Female|M=Male}).
all the students have father.
father has id:int(key) and greencard:int(key, "=1900");
@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);
@felipenmoura
felipenmoura / powerpolygon-viewport-method
Created December 15, 2012 14:25
Could anyone help me with this algorithm?
/*
Goal:
The idea here is to apply a zoom effect to the current slide, centering the mouse position when the user uses the scroll.
Problem:
The first zoom works fine, but after the first zoom, the visual reference of the pointer is different from the real mouse position, what makes the user apply the zoom effect in different coordinates!
How it is done:
PowerPolygon offers a method called PPW.viewport() which receives an object to apply zoom centering the given x and y coordinates, described here: https://github.com/braziljs/power-polygon/wiki/API%20-%20Power%20Polygon
Error in user YAML: (<unknown>): did not find expected comment or line break while scanning a block scalar at line 1 column 1
---

> **Atenção**: esse guia está em fase de construção, esperamos sua contribuição :)

---

Então você quer organizar um FrontIn*?

Um guia elaborado pela BrazilJS Foundation com o auxílio de diversos organizadores para direcionar aqueles que procuram organizar um evento de front-end no Brasil.

@felipenmoura
felipenmoura / dabblet.css
Created June 1, 2013 19:43
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
.shadow-and-outline{
position: absolute;
left: 50px;
top: 50px;
background: red;
width: 100px;
height: 100px;
outline: solid 6px green;
box-shadow: 0px 0px 100px 10px blue;
}

Site do evento:

Veja a biografia resumida de cada palestrante em: [Coloque aqui o site do evento]

Cronograma:

Dia 1:

08:00 CREDENCIAIS/CHECK-IN

09:00

@felipenmoura
felipenmoura / GithubApi.js
Last active April 6, 2016 22:40 — forked from rafaell-lycan/GithubApi.js
Github API ES6
export default class GithubApi{
constructor(){
this.host = 'https://api.github.com';
}
get(...params) {
let args = [].slice.call(params);
let callback = args.pop();
let path = args.join('/');
request('GET', path, callback);
}
@felipenmoura
felipenmoura / raffle-attendees.js
Last active December 8, 2015 11:23
Função utilizada para sortear entre os participantes na lista da eventick (em checkin.eventick.com.br)
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,
Verifying that +felipenmoura is my blockchain ID. https://onename.com/felipenmoura