[ create a new paste ] login | about

ultimatelibrarian

Name: Amy
Email:
Site/Blog: http://about.me/amydonahue
Location:
Default language: PHP
Favorite languages:
About:

Saved pastes by ultimatelibrarian:

PHP, pasted on Mar 13:
1
2
3
4
5
<?php
  $books = array(
    array(
     "title"        => "War of the Worlds",
     "image"        => "war_of_the_worlds.png",
...
view (139 lines, 81 lines of output)
PHP, pasted on Feb 24:
1
2
3
4
5
//I want to make teams for my mini frisbee tournament.  6 people have signed up, 
//so it will be 3 vs. 3.  They've provided their frisbee skill level and their 
//general athletic abilities, both on a scale of 1-5.
//Make me my two teams, and make them as equal as you can! (if you want an easier 
//assignment, just make the teams based on frisbee skill and ignore athletic
...
view (17 lines, 39 lines of output)
PHP, pasted on Feb 24:
1
2
3
4
5
<?php

  $menu = array(

    array(
...
view (70 lines, 77 lines of output)
PHP, pasted on Feb 23:
1
2
3
4
5
<?php

  $animals = array( 'dog', 'cat', 'fox', 'zebra', 'lemur', 'ox', 
                    'giraffe', 'koala', 'aardvark', 'hedgehog' );
  $count = count($animals);
...
view (40 lines, 63 lines of output)
PHP, pasted on Feb 23:
1
2
3
4
5
<?php

  $array = array();
  for($x=5; $x<10; $x++) {
    $array[$x] = $x * rand(1, 5);
...
view (10 lines, 8 lines of output)
PHP, pasted on Feb 20:
1
2
3
4
5
<!doctype html>

<?php
//hero!
  $hero = 20;
...
view (87 lines, 23 lines of output)
PHP, pasted on Feb 16:
1
2
3
4
5
<?php

  for($x=2; $x<9; $x++) {
    echo $x.' ';
  }
...
view (24 lines, 4 lines of output)
PHP, pasted on Feb 16:
1
2
3
4
5
<!doctype html>

<?php
  $hero = 20 + rand(0,5);
  $monster = 10 + rand(0,10);
...
view (32 lines, 16 lines of output)
PHP, pasted on Feb 15:
1
2
3
4
5
<?php

  //Part 1

  $x = 9;
...
view (110 lines, 47 lines of output)
PHP, pasted on Feb 15:
1
2
3
4
5
<?php

  $a = 4;
  $b = 4.0;
  $c = "4";
...
view (62 lines, 36 lines of output)