forked from scotttesler/yodasay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update with more characters. Merge in piuccio/cowsay master. (scottte…
- Loading branch information
1 parent
e235f31
commit 4ff1bbb
Showing
27 changed files
with
3,756 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
6.7.0 | ||
8.7.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- 4 | ||
- 6 | ||
sudo: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import baloon from "./lib/balloon"; | ||
import replacer from "./lib/replacer"; | ||
import faces from "./lib/faces"; | ||
|
||
import DEFAULT_COW from './cows/default.cow'; | ||
|
||
export { default as R2D2 } from './cows/R2D2.cow'; | ||
export { default as DEFAULT } from './cows/default.cow'; | ||
|
||
function converToCliOptions(browserOptions) { | ||
const cliOptions = { | ||
e: browserOptions.eyes || 'oo', | ||
T: browserOptions.tongue || ' ', | ||
n: browserOptions.wrap, | ||
W: browserOptions.wrapLength || 40, | ||
text: browserOptions.text || '', | ||
_: browserOptions.text || [], | ||
f: browserOptions.cow, | ||
}; | ||
if (browserOptions.mode) { | ||
// converts mode: 'b' to b: true | ||
cliOptions[browserOptions.mode] = true; | ||
} | ||
return cliOptions; | ||
} | ||
|
||
function doIt (options, sayAloud) { | ||
const cow = options.f || DEFAULT_COW; | ||
const face = faces(options); | ||
face.thoughts = sayAloud ? "\\" : "o"; | ||
|
||
const action = sayAloud ? "say" : "think"; | ||
return baloon[action](options.text || options._.join(" "), options.n ? null : options.W) + "\n" + replacer(cow, face); | ||
} | ||
|
||
export function say(browserOptions) { | ||
return doIt(converToCliOptions(browserOptions), true); | ||
} | ||
|
||
export function think(browserOptions) { | ||
return doIt(converToCliOptions(browserOptions), false); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## | ||
## R2D2. | ||
## | ||
$the_cow = <<EOC; | ||
$thoughts | ||
$thoughts | ||
_--~~--_ | ||
/~/_| |_\~\ | ||
|____________| | ||
|[][][][][][]|:= . | ||
__| __ |__ \ ' . | ||
| ||. | == | | \ ' . | ||
(| ||__| == | |) \ < > | ||
| |[] [] == | | \ \|/ | ||
| |____________| | \ | | ||
/__\ /__\ \ / \ | ||
~~ ~~ | ||
|
||
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## | ||
## Boba Fett. | ||
## | ||
$the_cow = <<EOC; | ||
$thoughts | ||
$thoughts | ||
|~ | ||
|.---. | ||
.'_____`. /\ | ||
|~xxxxx~| || | ||
|_ # _| || | ||
.------`-#-'-----. | ||
(___|\_________/|_.`. | ||
/ | _________ | | | | ||
/ |/ _|_ \| | | | ||
/ /X| __|__ |/ `.| | ||
( --< \\/ _\//|_ |`. | ||
`. ~----.-~=====,:======= | ||
~-._____/___:__(``/| | | ||
| | XX|~ | | | ||
\__/======| /| `.| | ||
|_\|\ /|/_| ) | ||
|_ \__/ _| .-' | ||
| \ .'||`. / |(_| | ||
| ||.'`.|| | ) | ||
| `'| |`' | / | ||
| | | |\/ | ||
|
||
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## | ||
## Chewbacca. | ||
## | ||
$the_cow = <<EOC; | ||
$thoughts | ||
$thoughts | ||
,.------;:~~:-. | ||
/:.\`;;|||;:/;;:\ | ||
:')\`:\||::/.-_':/) | ||
`:`\\\ ;'||'.''/,.:\ | ||
==`;.:`|;::/'/./';;= | ||
:-/-%%% | |%%%;;_- _: | ||
=// %wm)..(mw%`_ :`:\ | ||
;;--', /88\ -,- :-~~| | ||
-;~~::'`~^~:`::`/`-=:) | ||
(;':)%%%' `%%%.`:``:)\ | ||
(\ %%%/dV##Vb`%%%%:`-. | ||
|);/( ;~~~~ :)\`;;.``\ | ||
//\'/,/|;;|:(: |.|\;|\ | ||
/) |(/ | / \|\\`( )- ` | ||
;):):)/.):|/) (`:`\\`-` | ||
;%/ //;/(\`.':| ::`\\;` | ||
;/~( \|./;)|.|):;\. \\- | ||
/',:\//) ||`.|| (:\)):% | ||
,|/;/(%;.||| (|(\:- ; : | ||
_%__%:__;_:`_;_:_.\%_`_ | ||
|
||
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## | ||
## Yoda. | ||
## | ||
$the_cow = <<EOC; | ||
$thoughts | ||
$thoughts | ||
.--. | ||
\`--._,'.::.`._.--'/ | ||
. ` __::__ ' . | ||
-:.`'..`'.:- | ||
\ `--' / | ||
---- | ||
|
||
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## | ||
## Han Solo. | ||
## | ||
$the_cow = <<EOC; | ||
$thoughts | ||
$thoughts | ||
.x%%%%%%x. | ||
,%%%%%%%%%%% | ||
,%%%' )' \% | ||
,%x%) __ _ Y | ||
:%%% ~=-. <=~| | ||
:%%::. .:,\ | | ||
`;%:`\. `-' .' | ||
``x`. -===-; | ||
/ `:`.__.; | ||
.d8b. :: ..`. | ||
d88888b. ' /8 | ||
d888888888b. ( 8b / | ||
~ ~`888888b `8b /: | ||
' ' `888888 `8. _ /:/ | ||
' )88888b 8b |):X | ||
~ - |888888 `8b/:/:\ | ||
|888888 88\/~~; | ||
(888888b 88| / | ||
\ \888888 8-: / | ||
_\_______\88888_.'___\__/ | ||
|
||
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## | ||
## Joshua Bell. | ||
## | ||
$the_cow = <<EOC; | ||
$thoughts | ||
$thoughts | ||
/___/ | ||
| _______ | ||
| ,-' `-, | ||
| / \ | ||
|`| __/| |\__ | | ||
|]|_______________| | ||
| ||___ ___|| | ||
| | `-. .-' | | ||
\`-, | | ,-' | ||
| \ | | / | | ||
| \ | | / | | ||
| | | | | | | ||
|,_ | | | | _,| | ||
`-|_|-|_|-' | ||
|
||
EOC |
Oops, something went wrong.