This file contains hidden or 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
console.log('%c', 'padding: 100px 250px; background:url("http://media.giphy.com/media/IboGSjkXaOre0/giphy.gif") no-repeat 0 0; line-height:250px;') |
This file contains hidden or 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
window.onload = function() { | |
var startPos; | |
var startPosLat; | |
var startPosLong; | |
var distance; | |
if (navigator.geolocation) { | |
startPosLat = 44.95716993150707; | |
startPosLong = -93.28439280496818; |
This file contains hidden or 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
import gifAnimation.*; | |
GifMaker gifExport; | |
static int FRAME_RATE = 30; | |
//Select a folder to process:, It must contain images with filename '1.jpg, 2.jpg,3.jpg,etc. | |
String PATH = "/Users/bmoren/Desktop/GifFrames/"; //make sure there is a "/" at the end of the filepath | |
//how many files to process? | |
int IMAGE_NB = 1; // first in sequence (or where to start?) | |
int TOTAL = 1644 ; //how many in forlder (or to go up to?) |
This file contains hidden or 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
//Vary the red based on the hour | |
var h; | |
function setup() { | |
createCanvas(600, 600); | |
} | |
function draw() { | |
h = hour(); |
This file contains hidden or 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
//how to store a previous value | |
var randStorage = 0; | |
var previousRandom = 0; | |
function setup() { | |
} | |
function draw() { |
This file contains hidden or 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
var randStorage = 0; //Store a random number here | |
var previous = 0; //Store the previous random number | |
var choice; //store our choice of higher or lower based on keystroke | |
var score = 0; // store the players high score | |
function setup() { | |
createCanvas(windowWidth, windowHeight); //create a canvas | |
} | |
function draw() { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'> | |
<style> | |
#first{ |
This file contains hidden or 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
//init jQuery to do things once the DOM (page) is ready. | |
$(function(){ // fucntion aka. do something NOW //dont comment me out! | |
// alert("hi han solo") //a good way to check that everything is working properly at the start. | |
/* | |
//this is the first basic example, cool! | |
$("#juju").hide(); //hide juju at the beginning |
This file contains hidden or 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
var posx,posy, size | |
var times = 0 | |
function setup() { | |
createCanvas(windowWidth,windowHeight); | |
posx = width/2 | |
posy = height/2 | |
size = 100; | |
meSize = 100; | |
This file contains hidden or 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
//if the mouse is not moving for x time then do something. | |
mouseIsMoving = false; | |
function setup(){ | |
createCanvas(windowWidth,windowHeight); | |
} | |
function draw() { | |