| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Foundation;
|
|
|
4 |
|
|
|
5 |
use Illuminate\Support\Collection;
|
|
|
6 |
|
|
|
7 |
/*
|
|
|
8 |
.~))>>
|
|
|
9 |
.~)>>
|
|
|
10 |
.~))))>>>
|
|
|
11 |
.~))>> ___
|
|
|
12 |
.~))>>)))>> .-~))>>
|
|
|
13 |
.~)))))>> .-~))>>)>
|
|
|
14 |
.~)))>>))))>> .-~)>>)>
|
|
|
15 |
) .~))>>))))>> .-~)))))>>)>
|
|
|
16 |
( )@@*) //)>)))))) .-~))))>>)>
|
|
|
17 |
).@(@@ //))>>))) .-~))>>)))))>>)>
|
|
|
18 |
(( @.@). //))))) .-~)>>)))))>>)>
|
|
|
19 |
)) )@@*.@@ ) //)>))) //))))))>>))))>>)>
|
|
|
20 |
(( ((@@@.@@ |/))))) //)))))>>)))>>)>
|
|
|
21 |
)) @@*. )@@ ) (\_(\-\b |))>)) //)))>>)))))))>>)>
|
|
|
22 |
(( @@@(.@(@ . _/`-` ~|b |>))) //)>>)))))))>>)>
|
|
|
23 |
)* @@@ )@* (@) (@) /\b|))) //))))))>>))))>>
|
|
|
24 |
(( @. )@( @ . _/ / / \b)) //))>>)))))>>>_._
|
|
|
25 |
)@@ (@@*)@@. (6///6)- / ^ \b)//))))))>>)))>> ~~-.
|
|
|
26 |
( @jgs@@. @@@.*@_ VvvvvV// ^ \b/)>>))))>> _. `bb
|
|
|
27 |
((@@ @@@*.(@@ . - | o |' \ ( ^ \b)))>> .' b`,
|
|
|
28 |
((@@).*@@ )@ ) \^^^/ (( ^ ~)_ \ / b `,
|
|
|
29 |
(@@. (@@ ). `-' ((( ^ `\ \ \ \ \| b `.
|
|
|
30 |
(*.@* / (((( \| | | \ . b `.
|
|
|
31 |
/ / ((((( \ \ / _.-~\ Y, b ;
|
|
|
32 |
/ / / (((((( \ \.-~ _.`" _.-~`, b ;
|
|
|
33 |
/ / `(((((() ) (((((~ `, b ;
|
|
|
34 |
_/ _/ `"""/ /' ; b ;
|
|
|
35 |
_.-~_.-~ / /' _.'~bb _.'
|
|
|
36 |
((((~~ / /' _.'~bb.--~
|
|
|
37 |
(((( __.-~bb.-~
|
|
|
38 |
.' b .~~
|
|
|
39 |
:bb ,'
|
|
|
40 |
~~~~
|
|
|
41 |
*/
|
|
|
42 |
|
|
|
43 |
class Inspiring
|
|
|
44 |
{
|
|
|
45 |
/**
|
|
|
46 |
* Get an inspiring quote.
|
|
|
47 |
*
|
|
|
48 |
* Taylor & Dayle made this commit from Jungfraujoch. (11,333 ft.)
|
|
|
49 |
*
|
|
|
50 |
* May McGinnis always control the board. #LaraconUS2015
|
|
|
51 |
*
|
|
|
52 |
* RIP Charlie - Feb 6, 2018
|
|
|
53 |
*
|
|
|
54 |
* @return string
|
|
|
55 |
*/
|
|
|
56 |
public static function quote()
|
|
|
57 |
{
|
|
|
58 |
return static::quotes()
|
|
|
59 |
->map(fn ($quote) => static::formatForConsole($quote))
|
|
|
60 |
->random();
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Get the collection of inspiring quotes.
|
|
|
65 |
*
|
|
|
66 |
* @return \Illuminate\Support\Collection
|
|
|
67 |
*/
|
|
|
68 |
public static function quotes()
|
|
|
69 |
{
|
|
|
70 |
return Collection::make([
|
|
|
71 |
'Act only according to that maxim whereby you can, at the same time, will that it should become a universal law. - Immanuel Kant',
|
|
|
72 |
'An unexamined life is not worth living. - Socrates',
|
|
|
73 |
'Be present above all else. - Naval Ravikant',
|
|
|
74 |
'Do what you can, with what you have, where you are. - Theodore Roosevelt',
|
|
|
75 |
'Happiness is not something readymade. It comes from your own actions. - Dalai Lama',
|
|
|
76 |
'He who is contented is rich. - Laozi',
|
|
|
77 |
'I begin to speak only when I am certain what I will say is not better left unsaid. - Cato the Younger',
|
|
|
78 |
'I have not failed. I\'ve just found 10,000 ways that won\'t work. - Thomas Edison',
|
|
|
79 |
'If you do not have a consistent goal in life, you can not live it in a consistent way. - Marcus Aurelius',
|
|
|
80 |
'It is never too late to be what you might have been. - George Eliot',
|
|
|
81 |
'It is not the man who has too little, but the man who craves more, that is poor. - Seneca',
|
|
|
82 |
'It is quality rather than quantity that matters. - Lucius Annaeus Seneca',
|
|
|
83 |
'Knowing is not enough; we must apply. Being willing is not enough; we must do. - Leonardo da Vinci',
|
|
|
84 |
'Let all your things have their places; let each part of your business have its time. - Benjamin Franklin',
|
|
|
85 |
'Live as if you were to die tomorrow. Learn as if you were to live forever. - Mahatma Gandhi',
|
|
|
86 |
'No surplus words or unnecessary actions. - Marcus Aurelius',
|
|
|
87 |
'Nothing worth having comes easy. - Theodore Roosevelt',
|
|
|
88 |
'Order your soul. Reduce your wants. - Augustine',
|
|
|
89 |
'People find pleasure in different ways. I find it in keeping my mind clear. - Marcus Aurelius',
|
|
|
90 |
'Simplicity is an acquired taste. - Katharine Gerould',
|
|
|
91 |
'Simplicity is the consequence of refined emotions. - Jean D\'Alembert',
|
|
|
92 |
'Simplicity is the essence of happiness. - Cedric Bledsoe',
|
|
|
93 |
'Simplicity is the ultimate sophistication. - Leonardo da Vinci',
|
|
|
94 |
'Smile, breathe, and go slowly. - Thich Nhat Hanh',
|
|
|
95 |
'The only way to do great work is to love what you do. - Steve Jobs',
|
|
|
96 |
'The whole future lies in uncertainty: live immediately. - Seneca',
|
|
|
97 |
'Very little is needed to make a happy life. - Marcus Aurelius',
|
|
|
98 |
'Waste no more time arguing what a good man should be, be one. - Marcus Aurelius',
|
|
|
99 |
'Well begun is half done. - Aristotle',
|
|
|
100 |
'When there is no desire, all things are at peace. - Laozi',
|
|
|
101 |
'Walk as if you are kissing the Earth with your feet. - Thich Nhat Hanh',
|
|
|
102 |
'Because you are alive, everything is possible. - Thich Nhat Hanh',
|
|
|
103 |
'Breathing in, I calm body and mind. Breathing out, I smile. - Thich Nhat Hanh',
|
|
|
104 |
'Life is available only in the present moment. - Thich Nhat Hanh',
|
|
|
105 |
'The best way to take care of the future is to take care of the present moment. - Thich Nhat Hanh',
|
|
|
106 |
'Nothing in life is to be feared, it is only to be understood. Now is the time to understand more, so that we may fear less. - Marie Curie',
|
|
|
107 |
'The biggest battle is the war against ignorance. - Mustafa Kemal Atatürk',
|
|
|
108 |
'Always remember that you are absolutely unique. Just like everyone else. - Margaret Mead',
|
|
|
109 |
'You must be the change you wish to see in the world. - Mahatma Gandhi',
|
|
|
110 |
]);
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
/**
|
|
|
114 |
* Formats the given quote for a pretty console output.
|
|
|
115 |
*
|
|
|
116 |
* @param string $quote
|
|
|
117 |
* @return string
|
|
|
118 |
*/
|
|
|
119 |
protected static function formatForConsole($quote)
|
|
|
120 |
{
|
|
|
121 |
[$text, $author] = str($quote)->explode('-');
|
|
|
122 |
|
|
|
123 |
return sprintf(
|
|
|
124 |
"\n <options=bold>“ %s ”</>\n <fg=gray>— %s</>\n",
|
|
|
125 |
trim($text),
|
|
|
126 |
trim($author),
|
|
|
127 |
);
|
|
|
128 |
}
|
|
|
129 |
}
|