Skip to content

pablojimenezmateo/Computer-jokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Computer jokes

Have you always wanted a hilarious random joke? This is it.

If you implement this for any other language let me know, please.

Usage:

Java

//At the beginning of your code after importing the class
New Joke joke = new Joke(); 

//And in the println
joke.getJoke();

PHP

//At the beginning
<?php
    $jokes = file("/path/to/jokes.txt"); //Minimum permissions 644
    $joke = $jokes[rand(0, 168)];
?>

//In the echo

echo $joke;

This program is licensed under Creative commons Attribution 3.0 Unported, more info : http://creativecommons.org/licenses/by/3.0/deed.en_US

About

Cuz it is hilarious, that's why

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published