Skip to content

Instantly share code, notes, and snippets.

View pinceladasdaweb's full-sized avatar
👊
The only thing I really care about is user experience.

Pedro Rogério pinceladasdaweb

👊
The only thing I really care about is user experience.
View GitHub Profile
@pinceladasdaweb
pinceladasdaweb / gist:5612973
Created May 20, 2013 15:31
Restricting File Type Before Uploading with JavaScript
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Restricting File Type Before Uploading with JavaScript</title>
</head>
<body>
<input type="file" name="upload" id="upload">
@pinceladasdaweb
pinceladasdaweb / robot.js
Created December 4, 2012 17:17 — forked from fabiopimentel/robot.js
CSS no Lanche
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
robot.ahead(100);
@pinceladasdaweb
pinceladasdaweb / robot.js
Created December 4, 2012 17:14
Pinceladas da Web
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();