View css-compress.php
<?php | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. | |
* |
View colorScroller.js
//for an example of this working, see the hamburger menu on mobile at brentonstrine.com | |
//define colors to scroll through | |
var colorWheel = [ | |
"chocolate", | |
"coral", | |
"cornflowerblue", | |
"darkslateblue", | |
"crimson", | |
"darkcyan", |
View rockpaperscissors.js
// Student project: Rock Paper Scissors | |
// | |
// define score variables for however many players there are | |
var p1s = 0; | |
var p2s = 0; | |
// define variables that keep track of whatever the players choose, whether rock, paper, or scissors. | |
var p = { |
View api.php
<?php | |
/* MOST SIMPLE API */ | |
/* | |
* Add functions to class Methods | |
* currently, the script supports the call api.php/test | |
* */ | |
// respond as JSON |