Skip to content

Instantly share code, notes, and snippets.

View HugoLnx's full-sized avatar

HugoLnx HugoLnx

View GitHub Profile
@HugoLnx
HugoLnx / CONVENCOES
Created May 9, 2011 23:12
Convencoes do PIGUI
=> Estrutura do zip:
nome_do_layout.zip
index.html <= TEM CONVENÇÕES
style.css
style-estilo1.css
style-estilo2.css
images/
estilo1/
screenshot.png (imagem de demonstração do layout)
(imagens do estilo 1)
@HugoLnx
HugoLnx / robot.js
Created December 3, 2012 00:16
[CAELUM TEAM] CrazyGiroscope
var CrazyGiroscope = function() {
var becameDistant = true;
var Robot = function(robot) {
robot.rotateCannon(-20);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@HugoLnx
HugoLnx / robot.js
Created December 5, 2012 15:18
SEXMACHINE (JESSE)
var SexMachine = function() {
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
//robot.rotateCannon(90);
};
var state = 0;
var lastFound = 0;
@HugoLnx
HugoLnx / robot.js
Created December 8, 2012 02:09
DoublePersonality(CrazyGiroscope+Megatron)
var CrazyGiroscope = function() {
var becameDistant = true;
var Robot = function(robot) {
robot.rotateCannon(-20);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@HugoLnx
HugoLnx / robot.js
Created December 8, 2012 02:17
DoublePersonality
var Robot = function(){}
@HugoLnx
HugoLnx / gist:4238223
Created December 8, 2012 02:18
DoublePersonality
We couldn’t find that file to show.
@HugoLnx
HugoLnx / robot.js
Created December 8, 2012 02:24 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
var Megatron = function() {
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
robot.ahead(100);
robot.rotateCannon(360);
@HugoLnx
HugoLnx / gradiente.html
Created January 10, 2013 12:19
Algoritmo que recebe 2 cores hexadecimais e que desenha o gradiente entre as duas usando canvas do HTML5.
<html>
<body>
<fieldset>
<input id="cor1" type="color" />
<input id="cor2" type="color" />
<button id="btn">Gradiente!</button>
</fieldset>
<canvas id="canvas"></canvas>
<script>
var in1 = document.getElementById("cor1");
@HugoLnx
HugoLnx / dabblet.css
Created January 30, 2013 11:52
Não é para mexer no CSS acima
body {width: 200px;margin: 0 auto;}
#red {background:red;width:100px;height:100px;}
#green{background:green;width: 110px;height: 110px;}
#blue{background: blue;width: 120px;height:120px;}
#yellow{background:yellow;width:20px;height:20px;}
/* Não é para mexer no CSS acima */
/* Escrevam o CSS do Quadro AQUI! */
@HugoLnx
HugoLnx / dabblet.css
Created January 31, 2013 15:17 — forked from anonymous/dabblet.css
Untitled
body{
width: 940px;
font-family: Century Gothic;
margin: 0 auto;
}
header{
border-bottom: 2px solid;
}