Skip to content

@luisangeluis
luisangeluis / cat.js
Created March 2, 2021 23:17 — forked from vampaynani/cat.js
Fórmula CAT / Calculadora CAT
/*************
*
* @amount => Cantidad prestada neta(No se restan cargos ni se suman intereses)
* @charge => Cargos por apertura
* @byPeriod => Pago periódico
* @totalPayments => Total de pagos(Años, Meses, Quincenas, Días)
* @periodsByYear => Periodos por año de acuerdo a Banxico(Días: 360, Semanas: 52, Quincenas: 24, Meses: 12, Trimestres: 4)
*
*************/
@MrG9090
MrG9090 / cat.js
Created December 12, 2024 20:03 — forked from luisangeluis/cat.js
Fórmula CAT / Calculadora CAT
/*************
*
* @amount => Cantidad prestada neta(No se restan cargos ni se suman intereses)
* @charge => Cargos por apertura
* @byPeriod => Pago periódico
* @totalPayments => Total de pagos(Años, Meses, Quincenas, Días)
* @periodsByYear => Periodos por año de acuerdo a Banxico(Días: 360, Semanas: 52, Quincenas: 24, Meses: 12, Trimestres: 4)
*
*************/
/**
* CAT
*/
*, *::before, *::after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.meow {
margin: 0.5em auto 0;

PS5 MDDN 342 2016

For PS5 I decided to alter my submission for PS1. I've pretty much always loved cats, so I thought it would be interesting to make a very minimal browser "game" where you interact in some way with a bunch of stray cats. The bar over each cat's head is its "boredom" meter. It represents that cat's likelihood to get bored and leave. Petting it will make its boredom drop, and its boredom will rise over time, but slower the closer it is to other cats.

The central concept was that you can make cats arrive on-screen by filling up the food bowl in the center, and then after a while they'll get bored and leave - unless you pet them enough, in which case they might stay around for a while longer. I wanted to make the user feel as though they have some level of agency over which cats stay and which cats leave, but ultimately it's up to the whim of the individual cat (or, more accurately, the random() function).

CONTROLS:

package IgorDolgov.cats;
public class Main {
public static void main(String[] args) {
Cat masha = new Cat("Маша");
Cat misha = new Cat("Миша");
Cat gala = new Cat("Галя");
Cat kate = new Cat("Kate");
@kirqe
kirqe / nyancat.gif
Created April 24, 2021 16:43
Nyan Cat
nyancat.gif
#!/bin/sh
while read -r line; do
printf '%s\n' "$line"
done
#!/usr/bin/env bash
# Note line above. Many systems have bash in a location other than /bin
while read -r line; do
echo "$line"
done
@bosoxfan3
bosoxfan3 / Cat Carousel
Last active June 19, 2017 00:23 — forked from anonymous/index.html
Cat Carousel
import Ember from 'ember';
export default Ember.Controller.extend({
websocket: Ember.inject.service(),
listener: Ember.inject.service('websocket-listener'),
appName:'Cat Trader',
users: Ember.computed.alias('model'),