UNPKG

3.69 kBMarkdownView Raw
1<!-- toc -->
2
3- [Build](#build)
4 * [v:publish](#vpublish)
5 * [script:js](#scriptjs)
6- [Groups2](#groups2)
7 * [console:js](#consolejs)
8 * [input:js-](#inputjs-)
9 * [log:much:js](#logmuchjs)
10
11<!-- tocstop -->
12
13# Build
14
15Build group description
16
17## v:publish
18
19Update v and push
20
21```bash
22sh publish.sh
23```
24
25## script:js
26
27```js
28const chalk = require("chalk");
29console.log(`${chalk.underline.bold("RUNS JS\n\nt")}`);
30```
31
32# Groups2
33
34That darn second group!!!!!
35
36## console:js
37
38Only one script here with bash
39
40```bash
41node src/sampleScripts/exampleLogTimeout.js
42```
43
44## input:js-
45
46Get some input from user
47
48```bash
49node src/sampleScripts/exampleInput.js
50```
51
52## log:much:js
53
54Basically logs till yo momma says stop!
55
56```js
57const chalk = require("chalk");
58const sample = arr => arr[Math.floor(Math.random() * arr.length)];
59const quotes = [
60 "The trickster's functiowhat they reslly s function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they res function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they rewant, some sort of freedom. - Tom Robbins",
61 '"Disbelief in magic can really s function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they res function is to break taboos, create mischief, stir things up. In the end, the trickster gives people what they rewant, some sort of freedom. - Tom Robbins",\n' +
62 ' "Disbelief in magic can force a poor soul into believing in government and business. - Tom Robbins',
63 'The trouble with the fasforce a poor soul into believing in government and business. - Tom Robbins",\n' +
64 ' "The trouble with the fasforce a poor soul into believing in government and business. - Tom Robbins",\n' +
65 ' "The trouble with the fast lane is that all the movement is horizontal. And I like to go vertical sometimes. - Tom Robbins',
66 "Our world isn't made of earth, air and water or even molecules and atoms; our world is made of language. - Tom Robbimade of earth, air and water or even molecules and atoms; our world is made of language. - Tom Robbins",
67 "I'm not infatuated with frivoith frivoith frivoith frivoith frivoith frivoith frivoith frivolousness. We're just good friends. - Tom Robbins",
68 "In fiction, when you paint yourself into a corner, you can write a pair of suction cups onto the bottoms of your shoes and walk up the wall and out the skylight and see the sun breaking through the clouds. In nonfiction, you don't have that luxury. - Tom Robbins"
69];
70let sxy;
71const getOption = st => {
72 // if (Math.random() > 0.5) {
73 // st = st + sample(quotes) + sample(quotes) + sample(quotes);
74 // }
75 let options = [
76 chalk.blue(st),
77 chalk.underline.green(st),
78 chalk.green.bgRed.bold(st),
79 chalk.blue(st, st, st, st),
80 chalk.red(st, chalk.underline.bgBlue(st) + st)
81 ];
82 return sample(options);
83};
84let isMil = 0;
85const theRun = async () => {
86 return new Promise(resolve => {
87 sxy = setInterval(() => {
88 const qt = sample(quotes);
89 console.log(new Date() + " ------- ----- ---- \n");
90 console.log(getOption(qt));
91 console.log(new Date() + " ------- ----- ---- \n");
92 console.log("----- ---- \n");
93 console.log("----- ---- \n");
94 console.log("----- ---- \n");
95 if (isMil === 30) {
96 clearInterval(sxy);
97 console.log("DONE DONE DONE");
98 resolve();
99 } else {
100 isMil += 10;
101 }
102 }, 1000);
103 });
104};
105
106theRun();
107```
\No newline at end of file