This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//for the nose | |
fill (#F1D5E5); | |
if ((keyPressed) && (key == CODED)){ | |
if (keyCode == UP) { // add a bracket here | |
fill (#F1D5E5); | |
ellipse (250,265, 9,8); //makes the nose bigger | |
} if (keyCode == LEFT){ //indent this, it's still inside of the if ((keyPressed bit | |
fill (#45173A); //makes the nose disappear | |
ellipse (250,265, 9,8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//for the nose | |
fill (#F1D5E5); | |
if ((keyPressed) && (key == CODED)){ | |
if (keyCode == UP) { | |
fill (#F1D5E5); | |
ellipse (250,265, 9,8); //makes the nose bigger | |
} | |
} else { | |
ellipse (250,265, 5,4); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------------------------------------------------------------------------- | |
Interactive robot. | |
Command ref: | |
* click to get an "explosion" under your key and make his eyes flash red | |
* Down arrow makes his whole head red | |
* Left arrow makes him raise his right arm | |
* Press 'b' or "B" to make the background white instead of black | |
* Press '8' to make him look up | |
* Press 'j' to make him jump up | |
--------------------------------------------------------------------------- */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup (){ | |
size (500, 500); | |
background (255); | |
} | |
void draw () { | |
stroke (#45173A); | |
fill (#45173A); | |
background (255); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//for the ball of yarn | |
if (keyPressed){ | |
if (key == 'g') { //changes color to green | |
fill (#3CB2B4); | |
} | |
if (key == 'p') { //changes color to purple | |
fill (#4436A1);} | |
} else { | |
fill (#307691);} //teal color | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You wrote this | |
if (keyPressed){ | |
if (key == UP) | |
fill (#F1D5E5); | |
ellipse (250,265, 9,8); } | |
else { | |
ellipse (250,265, 5,4); } | |
// Should be this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For the "coded" keys, effectively anything other than a alphanumeric | |
if ((keyPressed) && (key == CODED) && (keyCode == DOWN)) { | |
fill(#ff0724); // RED | |
} | |
// For alphanumeric | |
if ((keyPressed) && (key == '8')) { | |
translate(0, -5); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% content_for :body do %> | |
<% if controller.controller_name == 'teams' && controller.action_name == 'index' %> | |
<body data-no-turbolink="true"> | |
<% end %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
{ | |
"id" : "1", | |
"name": "Lorem Ipsum", | |
"url" : "http://balloonchallenge.org/teams/1", | |
"location": { | |
"latitude": "30.2807033", | |
"longitude": "97.755326" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// April Zero Style | |
$(document).ready(function() { | |
var year = 31536000730; | |
function age(){ | |
var now = Date.now(); | |
var myAge = now - (new Date(1997, 11, 19)); | |
var years = myAge/year; | |
return years.toString().substring(0, 15); | |
} |