Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Glauber Ramos glauberramos

🏠
Working from home
Block or report user

Report or block glauberramos

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 animate-intro.css
-webkit-animation-name: intro-right;
-webkit-animation-duration: 0.5s;
-webkit-animation-iteration-count: once;
-webkit-animation-timing-function: ease-out;
-webkit-animation-delay: 0s;
-webkit-animation-fill-mode: both;
-webkit-animation-name: intro-left;
-webkit-animation-duration: 0.5s;
-webkit-animation-iteration-count: once;
View registrationExample.html
<span>
<p>
<label>
Address
</label>
<input type="text" id="address1" name="address1" value="" size="73">
</p>
<p>
<label>
@glauberramos
glauberramos / oo.js
Created May 28, 2013
Testing different ways of creating objects in javascript
View oo.js
//When using "new" keywork we are bounding the "this" context object to the variable that are being returned implicit in the function.
//When we overrite the return function we don't need to use the "new" keyword
//revealing module mode, functions outside the return code
function test1() {
function x(val) {
return 'test' + val;
}
return {
@glauberramos
glauberramos / color
Last active Dec 15, 2015
Gist to change background color based on mouse position
View color
$('body').mousemove(function(event) {
var width = $('body').width(),
height = $('body').height(),
axisX = event.pageX,
axisY = event.pageY;
var hue = Math.floor(axisX / width * 360),
saturation = Math.floor(axisY / height * 100),
lightness = Math.floor(axisY / height * 100);
@glauberramos
glauberramos / shadow.css
Created Dec 7, 2012
Mother Fucker Shadow
View shadow.css
text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
@glauberramos
glauberramos / robot.js
Created Dec 6, 2012 — forked from marano/robot.js
Shrimp Hunter
View robot.js
var aVera = true;
var Robot = function(robot) {};
var RobotState = function (rotateStep) {
data = {};
data.id = 0;
data.isLookingAtTarget = false;
data.timesShooting = 0;
data.rotateStep = rotateStep;
View robot.js
var Robot = function(robot) {
this.turnToRight = true;
this.invertedDirection = false;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if(this.turnToRight == true) {
robot.turn(5);
View robot.js
var Robot = function(robot) {};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
//robot.ahead(100);
//robot.fire();
robot.turn(20);
//robot.back(0);
};
@glauberramos
glauberramos / gist:3641107
Created Sep 5, 2012
Javascript Closure Example
View gist:3641107
var a = function() {
var b = 0;
return function() {
b = b + 1;
return b;
};
};
var d = a();
View FrontCalendar 2012.md

FrontCalendar 2012

Na falta de um site decente e realmente atualizado com os eventos de front-end que vão rolar, dê um pulo aqui ;)

Vai rolar!

Tableless Conference

  • Quando: 24/08
  • Onde: São Paulo, SP
  • Preço: R$ 250,00
You can’t perform that action at this time.