Giter Site home page Giter Site logo

mattikus / collegiate-bowl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mwunsch/collegiate-bowl

0.0 3.0 0.0 10.17 MB

Meet the flamboyant players of the East/West Collegiate Bowl.

Home Page: http://collegebowl.avatarpro.biz/

Ruby 100.00%

collegiate-bowl's Introduction

A Flamboyant Mock User Generator

Sometimes, when designing and/or building an application interface, it helps to have mock user data. This application provides an API over HTTP to request mock or placeholder user data including:

  • User Names
  • User IDs (as MD5 Digests)
  • User Avatars
  • User Meta-Data

All of the user data, including the imagery, comes from the Key & Peele East/West College Bowl sketch from Comedy Central.

<iframe width="560" height="315" src="//www.youtube.com/embed/gODZzSOelss" frameborder="0" allowfullscreen></iframe>

The endpoints

Users are represented as "players", and are of the JSON form:

{
  "name"  : "X-Wing @Aliciousness",
  "id"    : "faa5956c57cb81618f68b59a1862e888",
  "image" : full_path_to_user_avatar
}

All images are 512x512 PNG.

Getting all the players

The players are divided evenly into two squads: East and West, and can be requested by squad. There are a total of 32 players.

GET /players

This will return an array in json of all the "players".

GET /east

This will return an array of only those players in the East.

GET /west

This will return an array of only those players in the West.

Getting a subset of players

Each of these endpoints will by default, return one an array of one random player. Each endpoint takes an optional query parameter n which takes a number of players to return. The players will always be shuffled. No matter what value you give to n, you will only get the max number of players in each squad.

GET /player

Return n or 1 random player.

GET /east/player

Return n or 1 random player from the East.

GET /west/player

Return n or 1 random player from the West.

Getting a single player

GET /:id

Where :id is the id of a particular player.

Getting only avatars

In addition to the image paths provided for each player, you can request a random player avatar.

GET /avatar.png

GET /east/avatar.png

GET /west/avatar.png

Why?

I find the Key & Peele sketch very funny.

What?

The API is written with Sinatra and hosted on Heroku.

The player formerly known as Mousecop's symbol is U+2A17.

Check out AvatarPro.biz for more potential user profile imagery.

Who?

I am Mark Wunsch. I wrote this application.

Key & Peele are Keegan-Michael Key and Jordan Peele and they made these characters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.