From 50c338e05e720f89f084c19d5a430f57d3e962b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Aguilar=20Hern=C3=A1ndez?= Date: Tue, 28 Mar 2023 22:59:15 -0500 Subject: [PATCH] Initial commit --- .github/workflows/deno.yml | 40 ++++++++++++++++++++++++++++++ .vscode/settings.json | 11 +++++++++ LICENSE | 21 ++++++++++++++++ README.md | 25 +++++++++++++++++++ images/inspire.png | Bin 0 -> 9465 bytes mod.ts | 49 +++++++++++++++++++++++++++++++++++++ 6 files changed, 146 insertions(+) create mode 100644 .github/workflows/deno.yml create mode 100644 .vscode/settings.json create mode 100644 LICENSE create mode 100644 README.md create mode 100644 images/inspire.png create mode 100644 mod.ts diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 0000000..6b71fbf --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,40 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will install Deno then run `deno lint` and `deno test`. +# For more information see: https://github.com/denoland/setup-deno + +name: Deno + +on: + push: + branches: ['master'] + pull_request: + branches: ['master'] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v3 + + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Verify formatting + run: deno fmt --check + + - name: Run linter + run: deno lint + + - name: Run tests + run: deno test --doc diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..769537a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "deno.enable": true, + "deno.lint": true, + "deno.unstable": false, + "[typescript]": { + "editor.defaultFormatter": "denoland.vscode-deno" + }, + "[markdown]": { + "editor.defaultFormatter": "denoland.vscode-deno" + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..57c4eed --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Santiago Aguilar Hernández + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f6b616 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# inspire [![Deno](https://github.com/sant123/inspire/actions/workflows/deno.yml/badge.svg)](https://github.com/sant123/inspire/actions/workflows/deno.yml) + +Based on the inspire Artisan command from +[Laravel](https://github.com/laravel/framework/blob/10.x/src/Illuminate/Foundation/Inspiring.php). + +## Installation + +```shell +deno install -fq https://deno.land/x/inspire/mod.ts +``` + + + +## Usage + +```ts +// example.ts +import { quotes } from "https://deno.land/x/inspire/mod.ts"; +console.log(quotes); +// Your code here... +``` + +## Credits + +https://laravel.com/ diff --git a/images/inspire.png b/images/inspire.png new file mode 100644 index 0000000000000000000000000000000000000000..65527591509f1f587a464502823e606f0f8de487 GIT binary patch literal 9465 zcmbVyRZyHkm-aijYj6+23GOgRu;36ZSO^x}-3JH|90CM)x4~V526qc?gF|qK<=gr% z_TsJtEfEMC*5C~&XgJ1(%&YlQ0XQO6ko zuzLU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Ln zg(_S2rb`*)<%3&_BF~PcL?#9gbdiGJ%*ruf?7yevah#~Rj7Odp_On9u^^~uPIwtP) z>-k_kUZ}MX0vf4!gqUMl#zz%9$|i{Wo@6my4w_P=TL>nyEvMjtiG&&Ji9mQFs&0V2#6#1K9hau_KR+JXz51&qb=A#^A_=$xE34{dagc z2{o%Om8}NmBaisZwo6G`ObJ3&1PdrtT!^D}1XE;>_;|4MIY2AYLM7BR3oM?D2g=Dsj_-)sHn$+vwj%8!Op+!$27+7aI)A&D5TEm&kfSKS z88FXR+vtm=(}=;kkLSq5GA0vEm#-a3i3PruYszT`Wv(wZhgHGSx)ed9TA4q0U<&QX zp0XJHgdgk4W$g`fphCQrzucsf)6DFM z`o9u&pgB?Q=tG)#hMh(m8WI#g+Mk5&f-mV~{>3>j%WR%n=9LXGm2(0XX0xPmNl9sG z$xvoi){?yPjCZ1c##75Ubo)ib%{FCPT_V5b7|-wo3KcQb7Od;<32E8t9TdxsZ^~`-^|~Q z9gKTwdxr&w*W+OvCiT{lI^S~#v+k}2u+W@c@zUQuI@#YpvFPEONnB+rE}l+q?>5RU zd0#nq-a7`xbLTg&h7=?wZJVw#Ygt%^ydK;0L(FCg6N4)~3Y#{=pR`R4ltwD}GY*u_ zWtQipH+MFejV(*j@|*JhsKyyA|DETY8=MjG=2u~NH^+^c8Hy-P;F*ZhtoI6NPwSQ3 zWXv|Dt8ZG+U2|i}Cz81MZ_^zfW$FK`8PEUD>Zkezxf>mnrA*oB{il F{ujTqUw!}p literal 0 HcmV?d00001 diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..4acafa1 --- /dev/null +++ b/mod.ts @@ -0,0 +1,49 @@ +export const quotes = [ + "Act only according to that maxim whereby you can, at the same time, will that it should become a universal law. - Immanuel Kant", + "An unexamined life is not worth living. - Socrates", + "Be present above all else. - Naval Ravikant", + "Do what you can, with what you have, where you are. - Theodore Roosevelt", + "Happiness is not something readymade. It comes from your own actions. - Dalai Lama", + "He who is contented is rich. - Laozi", + "I begin to speak only when I am certain what I will say is not better left unsaid. - Cato the Younger", + "I have not failed. I've just found 10,000 ways that won't work. - Thomas Edison", + "If you do not have a consistent goal in life, you can not live it in a consistent way. - Marcus Aurelius", + "It is never too late to be what you might have been. - George Eliot", + "It is not the man who has too little, but the man who craves more, that is poor. - Seneca", + "It is quality rather than quantity that matters. - Lucius Annaeus Seneca", + "Knowing is not enough; we must apply. Being willing is not enough; we must do. - Leonardo da Vinci", + "Let all your things have their places; let each part of your business have its time. - Benjamin Franklin", + "Live as if you were to die tomorrow. Learn as if you were to live forever. - Mahatma Gandhi", + "No surplus words or unnecessary actions. - Marcus Aurelius", + "Nothing worth having comes easy. - Theodore Roosevelt", + "Order your soul. Reduce your wants. - Augustine", + "People find pleasure in different ways. I find it in keeping my mind clear. - Marcus Aurelius", + "Simplicity is an acquired taste. - Katharine Gerould", + "Simplicity is the consequence of refined emotions. - Jean D'Alembert", + "Simplicity is the essence of happiness. - Cedric Bledsoe", + "Simplicity is the ultimate sophistication. - Leonardo da Vinci", + "Smile, breathe, and go slowly. - Thich Nhat Hanh", + "The only way to do great work is to love what you do. - Steve Jobs", + "The whole future lies in uncertainty: live immediately. - Seneca", + "Very little is needed to make a happy life. - Marcus Aurelius", + "Waste no more time arguing what a good man should be, be one. - Marcus Aurelius", + "Well begun is half done. - Aristotle", + "When there is no desire, all things are at peace. - Laozi", + "Walk as if you are kissing the Earth with your feet. - Thich Nhat Hanh", + "Because you are alive, everything is possible. - Thich Nhat Hanh", + "Breathing in, I calm body and mind. Breathing out, I smile. - Thich Nhat Hanh", + "Life is available only in the present moment. - Thich Nhat Hanh", + "The best way to take care of the future is to take care of the present moment. - Thich Nhat Hanh", + "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", + "The biggest battle is the war against ignorance. - Mustafa Kemal Atatürk", + "Always remember that you are absolutely unique. Just like everyone else. - Margaret Mead", + "You must be the change you wish to see in the world. - Mahatma Gandhi", +]; + +if (import.meta.main) { + const quote = quotes[Math.floor(Math.random() * quotes.length)]; + const [text, author] = quote.split(/\s*-\s*/); + + console.log(` %c“ ${text} ”`, "font-weight: bold"); + console.log(` %c— ${author}`, "color: gray"); +}