LOL Chuck

版本 1.0.0.0 (27.6 KB) 作者: Mark Tomaszewski
Display Chuck Norris jokes at the command window.
23.0 次下载
更新时间 2017/3/26

Display Chuck Norris jokes at the command window in MATLAB.
lolChuck Prints a Chuck Norris joke to the command window

Display jokes fetched from the Internet Chuck Norris Database (ICNDb).
See the links below for more information about the ICNDb and software
dependencies (JSONlab).

Inputs:

opts (optional):
Struct with fields specifying options to API parameters
opts.firstName - First name in joke (replaces 'Chuck')
opts.lastName - Last name in joke (replaces 'Norris')

Usage:

lolChuck() - Prints a Chuck Norris joke to the command window

val = lolChuck() - Additionally returns the joke data to the workspace

Examples:

>> lolChuck

Chuck Norris is the only person to ever win a staring contest against Ray Charles and Stevie Wonder.

>> val = lolChuck

Wo hu cang long. The translation from Mandarin Chinese reads: "Crouching Chuck, Hidden Norris"


val =

id: 170
joke: [1x104 char]
categories: {0x1 cell}

>> lolChuck(struct('firstName','Mark','lastName','Tomaszewski'))

Mark Tomaszewski doesn't use a computer because a computer does everything slower than Mark Tomaszewski.

See also:

ICNDb: http://www.icndb.com/api/
JSONlab: https://www.mathworks.com/matlabcentral/fileexchange/33381-jsonlab--a-toolbox-to-encode-decode-json-files

引用格式

Mark Tomaszewski (2024). LOL Chuck (https://github.com/mark-toma/LolChuck), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Holidays / Seasons 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.0.0

Formats description

Updated title.

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库