Skip to content

Commit 3cfeacf

Browse files
author
jsdnhk
committed
built v20.03
1 parent f3c03ff commit 3cfeacf

File tree

313 files changed

+2731
-4365
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+2731
-4365
lines changed

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
"> .5% or last 3 versions, not IE <= 11"
9+
]
10+
}
11+
}
12+
]
13+
]
14+
}

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
assets/videos/ filter=lfs diff=lfs merge=lfs -text
12
# assets/images/**/*.jpg filter=lfs diff=lfs merge=lfs -text
23
# assets/images/**/*.png filter=lfs diff=lfs merge=lfs -text
34
# assets/images/**/*.gif filter=lfs diff=lfs merge=lfs -text
4-
assets/videos/ filter=lfs diff=lfs merge=lfs -text

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.3
1+
ruby-2.5.3

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ title: "Changelog"
33
---
44
## Latest Update
55

6+
### v20.03 (2020/03/03)
7+
8+
- Updated background video player's videos, buttons
9+
- Created toolset & fonts pages
10+
- Integrated GitHub workflow in the build process
11+
- Integrated automation task scripts
12+
- Displayed latest update date of pages
13+
- Enhanced sidebar features and animation
14+
615
### v20.02 (2020/02/02)
716

817
- Updated project structure

_config.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ disqus_shortname: jsdnhk
2626

2727
# build settings
2828
collections_dir: collections
29-
exclude: ["etc", "scripts", "vendor", "Gemfile*", "package.json*", "Rakefile", "node_modules", ".idea", ".github"]
29+
exclude:
30+
- "etc"
31+
- "scripts"
32+
- "vendor"
33+
- "Gemfile*"
34+
- "package.json*"
35+
- "Rakefile"
36+
- "node_modules"
37+
- ".idea"
38+
- ".github"
39+
- "**/*/node_modules"
40+
- "**/*/package.json*"
3041
profile: true
3142
strict_front_matter: true
3243

_data/pages_latest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: blog
3-
mtime: '20200225'
3+
mtime: '20200303'
44
- name: debug
55
mtime: '20200226'
66
- name: fonts
@@ -12,4 +12,4 @@
1212
- name: resume
1313
mtime: '20200202'
1414
- name: toolset
15-
mtime: '20200228'
15+
mtime: '20200301'

_includes/bg_video.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
<!--<video id="video-bg" class="video-bg" poster="" loop>-->
2-
<video id="video-bg" class="video-bg" poster="">
3-
4-
</video>
1+
<video id="video-bg" class="video-bg" poster=""/>
52

63
<script>
74
var selectBG;
@@ -84,7 +81,7 @@
8481
videoBG.load();
8582
}
8683

87-
function playLoop(event) {
84+
function changePlaySeq(event) {
8885
setLoopPlay(!isLoopPlay);
8986
}
9087

_includes/comment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<script type="text/javascript">
44
/* * * CONFIGURATION VARIABLES * * */
55
var disqus_shortname = "{{site.disqus_shortname}}";
6-
var disqus_identifier = "{{page.id}}";
6+
var disqus_identifier = "{{page.url}}";
77
var disqus_url = "{{site.url}}{{page.url}}";
88

99
(function() {

_includes/sidebar.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="sidebar">
22
<div class="container sidebar-sticky">
33
<div class="sidebar-about">
4+
<!--<script src="/assets/js/cowsay/cowsay.bundle.js"></script>-->
45
<script src="/assets/js/sidebar/logo.js"></script>
56
<script src="/assets/js/sidebar/banner.js"></script>
67
<h1>
@@ -25,7 +26,7 @@ <h1>
2526
</div>
2627
<div class="grid-video-bg">
2728
<div class="grid-item-video-bg"><a href="javascript:reloadVideoBG();" class=""><i class="fa fa-refresh hvr-icon" aria-hidden="true"/></a></div>
28-
<div class="grid-item-video-bg"><a href="javascript:playLoop();" class=""><i class="fa fa-list-ul hvr-icon" aria-hidden="true"/></a></div>
29+
<div class="grid-item-video-bg"><a href="javascript:changePlaySeq();" class=""><i class="fa fa-list-ul hvr-icon" aria-hidden="true"/></a></div>
2930
<div class="grid-item-video-bg"><a href="javascript:toogleSoundVideoBG();" class=""><i class="fa fa-volume-up hvr-icon" aria-hidden="true"/></a></div>
3031
<div class="grid-item-video-bg"><a href="javascript:toogleOpacity();" class=""><i class="fa fa-adjust hvr-icon" aria-hidden="true"/></a></div>
3132
<div class="grid-item-video-bg"><a href="javascript:shiftVideo(-1);" class=""><i class="fa fa-backward hvr-icon" aria-hidden="true"/></a></div>

assets/js/cowsay/.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"extends": "eslint:recommended",
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parserOptions": {
14+
"ecmaVersion": 2018
15+
},
16+
"rules": {
17+
"indent": ["error", 2],
18+
"linebreak-style": ["error", "unix"],
19+
"quotes": ["error", "single", { "avoidEscape": true }],
20+
"semi": ["error", "always"],
21+
"no-useless-escape": "off",
22+
"no-irregular-whitespace": "off",
23+
"no-unused-vars": ["error", {"argsIgnorePattern": "thoughts|tongue|eyes|eye"}]
24+
}
25+
}

assets/js/cowsay/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
node_modules/
2-
package-lock.json
1+
node_modules
2+
package-lock.json

assets/js/cowsay/.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- 10
4+
- 12
5+
- 13
6+

assets/js/cowsay/LICENSE

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
cowsay is licensed under the following MIT license:
1+
MIT License
22

3-
====
4-
Copyright (c) 2012 Fabio Crisci <fabio.crisci@gmail.com>
3+
Copyright (c) 2020 John P. Simons
54

6-
Permission is hereby granted, free of charge, to any person obtaining a copy of
7-
this software and associated documentation files (the "Software"), to deal in
8-
the Software without restriction, including without limitation the rights to
9-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10-
of the Software, and to permit persons to whom the Software is furnished to do
11-
so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
1211

1312
The above copyright notice and this permission notice shall be included in all
1413
copies or substantial portions of the Software.
@@ -20,7 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2019
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2120
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2221
SOFTWARE.
23-
24-
====
25-
26-
The original idea of cowsay come from [Tony Monroe](http://www.nog.net/~tony/) - [cowsay](https://github.com/schacon/cowsay)

assets/js/cowsay/README.md

Lines changed: 85 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,109 @@
11
# cowsay
22

3-
````
4-
__________________
5-
< srsly dude, why? >
6-
------------------
7-
\ ^__^
8-
\ (oo)\_______
9-
(__)\ )\/\
10-
||----w |
11-
|| ||
12-
````
3+
[![Build Status](https://travis-ci.com/johnnysprinkles/cowsay.svg?branch=master)](https://travis-ci.com/johnnysprinkles/cowsay)
4+
[![npm version](https://badge.fury.io/js/cowsay2.svg)](https://badge.fury.io/js/cowsay2)
5+
6+
Modernized version of cowsay
7+
8+
This borrows from https://github.com/piuccio/cowsay.
9+
The cow files are the same content but instead of Perl heredoc text files
10+
they're ES6 template literals.
1311

14-
cowsay is a configurable talking cow, originally written in Perl by [Tony Monroe](https://github.com/tnalpgge/rank-amateur-cowsay)
12+
* No reading files at runtime. Cows are declared as static compile-time dependencies.
13+
* Works the same whether client-side or server-side, and whether running from
14+
raw source for from a transpiled bundle.
15+
* Leveraging modern language features like destructuring and arrow functions.
16+
* Update to more modern Javascript style with two-space indents, single quoted
17+
strings, and `const` and `let` instead of `var`, as you might see on the Google
18+
or airbnb JS style guides.
1519

16-
This project is a translation in JavaScript of the original program and an attempt to bring the same silliness to node.js.
20+
### Usage
1721

18-
## Install
22+
See test/example.js for examples, but the basic usage is:
1923

20-
npm install -g cowsay
24+
cowsay.say('What you want to say');
2125

22-
## Usage
26+
Or pass some options:
2327

24-
cowsay JavaScript FTW!
28+
cowsay.say('Did you hear someting?', { mode: 'paranoid' });
29+
cowsay.say('A quick brown fox jumped over the lazy dog', { W: 15 });
30+
cowsay.think('I\'m looking sideways', { e: 'cc' });
2531

26-
or
32+
Get a demo of all available cows with `node test/cows.js`, and get a demo of all
33+
available modes with `node test/modes.js`. Get a general test demonstrating line wrapping
34+
and whitespace handling at `node test/example.js`.
2735

28-
cowthink node.js is cool
36+
### Importing cows
2937

30-
It acts in the same way as the original cowsay, so consult `cowsay(1)` or run `cowsay -h`
38+
The above examples use the default cow file. You can import other cows and pass them in
39+
on the `cow` option. Do that one of two ways.
3140

32-
````
33-
________
34-
< indeed >
35-
--------
36-
\
37-
\
38-
.::!!!!!!!:.
39-
.!!!!!:. .:!!!!!!!!!!!!
40-
~~~~!!!!!!. .:!!!!!!!!!UWWW$$$
41-
:$$NWX!!: .:!!!!!!XUWW$$$$$$$$$P
42-
$$$$$##WX!: .<!!!!UW$$$$" $$$$$$$$#
43-
$$$$$ $$$UX :!!UW$$$$$$$$$ 4$$$$$*
44-
^$$$B $$$$\ $$$$$$$$$$$$ d$$R"
45-
"*$bd$$$$ '*$$$$$$$$$$$o+#"
46-
"""" """""""
47-
````
41+
Import all cows, like:
4842

49-
## Usage as a module
43+
let cows = require('cowsay2/cows');
44+
cowsay('Gobble gobble', { cow: cows.turkey });
5045

51-
cowsay can be used as any other npm dependency
46+
Or just import the cow you need (better for client-side bundles):
5247

53-
var cowsay = require("cowsay");
48+
let cow = require('cowsay2/turkey');
49+
cowsay('Gobble gobble', { cow });
5450

55-
console.log(cowsay.say({
56-
text : "I'm a moooodule",
57-
e : "oO",
58-
T : "U "
59-
}));
51+
### Text options
6052

61-
// or cowsay.think()
53+
* `n` or `nowrap`: Don't do any line wrapping beyond whatever newlines occur in the provided text
54+
* `W`: Number of columns to wrap at (defaults to 40)
6255

63-
````
64-
_________________
65-
( I'm a moooodule )
66-
-----------------
67-
o ^__^
68-
o (oO)\_______
69-
(__)\ )\/\
70-
U ||----w |
71-
|| ||
72-
````
56+
### Examples
7357

74-
## Pipe from standard input
58+
See some live example on RunKit at
59+
https://runkit.com/johnnysprinkles/5e28a5470e860e001a25123f
7560

76-
echo please repeat | cowsay
61+
console.log(cowsay('hi'));
62+
____
63+
< hi >
64+
----
65+
\ ^__^
66+
\ (oo)\_______
67+
(__)\ )\/\
68+
||----w |
69+
|| ||
7770

78-
## Usage in the browser
7971

80-
cowsay works in your browser too with rollup / webpack / browserify / you name it.
72+
console.log(cowsay.say("The static String.raw() method is a tag function of template literals. This is similar to the r prefix in Python, or the @ prefix in C# for string literals. (But it is not identical; see explanations in this issue.) It's used to get the raw string form of template strings, that is, substitutions (e.g. \${foo}) are processed, but escapes (e.g. \n) are not."));
73+
__________________________________________
74+
/ The static String.raw() method is a tag \
75+
| function of template literals. This is |
76+
| similar to the r prefix in Python, or |
77+
| the @ prefix in C# for string literals. |
78+
| (But it is not identical; see |
79+
| explanations in this issue.) It's used |
80+
| to get the raw string form of template |
81+
| strings, that is, substitutions (e.g. |
82+
| ${foo}) are processed, but escapes (e.g. |
83+
\ ) are not. /
84+
------------------------------------------
85+
\ ^__^
86+
\ (oo)\_______
87+
(__)\ )\/\
88+
||----w |
89+
|| ||
8190

82-
```js
83-
import { say } from 'cowsay';
8491

85-
console.log(say({ text: 'grazing in the browser' }));
86-
```
87-
88-
You can customize the cow by importing the relevant one
89-
90-
```js
91-
import { think, SQUIRREL } from 'cowsay';
92-
93-
console.log(think({
94-
text: 'grazing in the browser',
95-
cow: SQUIRREL,
96-
eyes: 'pp',
97-
tongue: ';;',
98-
}));
99-
```
100-
101-
All cows are included in the bundle, but you can use rollup / webpack tree-shake feature to reduce the final bundle size.
102-
103-
### Browser options
104-
105-
```js
106-
say({
107-
text: 'hello',
108-
cow: '', // Template for a cow, get inspiration from `./cows`
109-
eyes: 'oo', // Select the appearance of the cow's eyes, equivalent to cowsay -e
110-
tongue: 'L|', // The tongue is configurable similarly to the eyes through -T and tongue_string, equivalent to cowsay -T
111-
wrap: false, // If it is specified, the given message will not be word-wrapped. equivalent to cowsay -n
112-
wrapLength: 40, // Specifies roughly where the message should be wrapped. equivalent to cowsay -W
113-
mode: 'b', // One of "b", "d", "g", "p", "s", "t", "w", "y"
114-
});
115-
```
92+
const whale = require('./cows/whale');
93+
console.log(cowsay.say('Moo', { cow: whale }));
94+
_____
95+
< Moo >
96+
-----
97+
\
98+
\
99+
\
100+
'-.
101+
.---._ \ .--'
102+
/ `-..__) ,-'
103+
| 0 /
104+
--.__, .__.,`
105+
`-.___'._\_.'
106+
107+
### Related packages
108+
109+
https://github.com/piuccio/cowsay

0 commit comments

Comments
 (0)