Code Monkey home page Code Monkey logo

moarcats's Introduction

example

cat gifs on demand for any occasion or project. Make any request for any resource for moar cats. No 5xx or 4xx's here: just cat gifs.

Use it anywhere you need a cat gif! For example

<img src='http://edgecats.net/first' alt='a random cat gif!'/>

or something like this to click for new cat gifs

  <div id="catcontainer" onclick="moarcats();">
    <img src="http://edgecats.net" alt="random cat"/>
  </div>

  <script type="text/javascript">
    function moarcats() {
      var catcontainer = document.getElementById("catcontainer");
      catcontainer.innerHTML = '<img src="http://edgecats.net" alt="random cat"/>';
      return false;
    }
  </script>

Also allows cross origin requests.

automagicly get moar cats!

wait, first here's a cat!

example

try /auto!

  • every 60s is a new cat
  • click the image to immediately get moar cats
  • the X-cat-link header has a direct link to the current random cat

omg /netcat!!

try /netcat out!

  • drag him around!
  • type moar cats for an adorable cat!

Awesome right? Fuck yeah here's another cat

example

need a random link generator or a specific cat?

you can haz! try /random

edgecats.net/cats/ is a static cacheable cat, like this motherfucker right here

example

want to see a shitton of cats OMG YES PLEASE!!!??!?

well here's one right now!

example

  • /all for a list of all cat gifs
  • /all/count for a count of all cat gifs
  • /all/show to show all cat gifs. May be slow!

oh god it needs a CDN

After getting hit by social networks bandwidth became prohibitive, so enter a CDN from the nice folks at EdgeCast. During high traffic periods, you may find your self redirected to /meow,which serves a cacheable image from /cats.

license

This is released under the Kitty License. If you like this code you should scratch your nearest cat.

example example example example

moarcats's People

Contributors

blovett avatar tianheyang avatar matt- avatar

Watchers

James Cloos avatar 徐精华 avatar

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.