repo
stringlengths
8
123
branch
stringclasses
178 values
readme
stringlengths
1
441k
description
stringlengths
1
350
topics
stringlengths
10
237
createdAt
stringlengths
20
20
lastCommitDate
stringlengths
20
20
lastReleaseDate
stringlengths
20
20
contributors
int64
0
10k
pulls
int64
0
3.84k
commits
int64
1
58.7k
issues
int64
0
826
forks
int64
0
13.1k
stars
int64
2
49.2k
diskUsage
float64
license
stringclasses
24 values
language
stringclasses
80 values
brunasantos-dev/mario-jump
main
# Mario Jump ![imagem do site](https://github.com/brunasantos-dev/mario-jump/blob/main/mario-jump.png?raw=true) Jogo do Mario Bros programado em **HTML**, **CSS** e **Javascript**. Recomenda-se que seja utilizado em um computador desktop. [Link para acesso](https://brunasantos-dev.github.io/mario-jump/). **Desenvolvimento:** Bruna Santos. Tutorial e imagens disponibilizadas pelo canal [Manual do Dev](https://www.youtube.com/watch?v=r9buAwVBDhA&ab_channel=ManualdoDev) no YouTube.
Jogo do Mario Bros instruído pelo manual do Dev.
javascript,css,frontend,html,mario-game,mario-jump-game
2023-05-22T21:26:52Z
2023-05-23T01:57:27Z
null
1
0
8
0
0
2
null
null
CSS
otmaneechchafyky/javascript-capstone
main
<a name="readme-top"></a> <div align="center"> <img src="./Assets/pf-logo.png" alt="logo" width="140" height="auto" /> <br/> <h1><b>Hello visitor, welcome to our Project</b></h1> </div> <div align="center"> <br/> <h1 align="center">Pokemon Capstone Project</h1> </div> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [🚀 Description video](#live-video) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 📖 [Pokemon Capsone Project] <a name="about-project"></a> **Pokemon Capsone Project** is a project where You can look for your favourite pokemons and inreract with them, I used an API to get Pokemon data. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://www.w3.org/TR/2011/WD-html5-20110405/">HTML5</a></li> <li><a href="https://www.w3.org/Style/CSS/specs.en.html">CSS</a></li> <li><a href="https://www.ecma-international.org/publications-and-standards/standards/ecma-262/">JavaScript</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **Use ES6 modules and webpack** - **Getting Data from Pokemon API** <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://otmaneechchafyky.github.io/javascript-capstone//dist/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LIVE VIDEO --> ## 🚀 Live Video <a name="live-video"></a> - [Live Demo Link](https://drive.google.com/file/d/1V4xwrjElSwmvWktmfHwLP5vYHOoHz_bA/view?usp=sharing) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps: ### Prerequisites In order to run this project you need the following tools: - Node.js in your computer - IDE(e.g.: Vscode,...) - Terminal ### Setup Clone this repository to your desired folder: Example commands: ```sh cd folder-name git clone https://github.com/otmaneechchafyky/javascript-capstone.git ``` ### Install ```sh cd folder-name npm install or npm i ``` - Run an optimized build for prodction: ``` npm run build ``` ### Usage To run the project, execute the following command: ```sh npm run dev ``` ### Run tests - npm test <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Author <a name="authors"></a> 👤 **Otmane Echchafyky** - GitHub: [@Otmaneechchafyky](https://github.com/otmaneechchafyky/) - LinkedIn: [@Otmaneechchafyky](https://www.linkedin.com/in/otmane-echchafyky-125801248/) - Twitter: [@EchchafykyO](https://twitter.com/EchchafykyO) 👤 **Emmanuel Musangamfura** - GitHub: [@musangamfure](https://github.com/musangamfure) - LinkedIn: [@musangamfurae](https://www.linkedin.com/in/musangamfurae/) - Twitter: [@musangamfure](https://twitter.com/musangamfure) <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> Future changes: - **Make the project responsive** - **Add some animation** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/otmaneechchafyky/javascript-capstone/issues). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> Give a ⭐️ if you like this project! <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> - Thanks to all Microverse community <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
A web app where you can check on your favorite pokemons, like them and add your comments about each one of the fectched pokemons
css,css3,javascript
2023-05-26T08:09:07Z
2023-05-31T04:06:26Z
null
2
8
24
0
0
2
null
MIT
JavaScript
Zafron047/Awesome_Books_ES6
main
# Awesome_Books_ES6 <a name="readme-top"></a> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Install](#install) - [Prerequisites](#prerequisites) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Authors](#authors) - [👥 Collaborator](#collaborator) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) # 📖 [Awesome Books ES6 Project] <a name="about-project"></a> **[Awesome Books ES6]** is a project that we have developed to showcase our skills in DOM Manipulation and Dynamic Functionality application. I have further Enhanced it with introduction to modules and modern ES6 functionalities. <br> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://reactjs.org/">HTML</a></li> <li><a href="https://reactjs.org/">CSS</a></li> <li><a href="https://reactjs.org/">Linters</a></li> </ul> </details> ### Key Features <a name="key-features"></a> - **[HTML]** - **[CSS]** - **[JavaScript]** - **[Linters]** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> ### Prerequisites In order to run this project, you will need the following: - Web Browser - Code Editor - Git ### Setup To get started, clone this repository to your desired folder: ```shell cd my-folder git clone https://github.com/Zafron047/Awesome_Books_ES6.git ``` ### Install Install all dependencies: ```sh "npm init -y" ``` ``` "npm install --save luxon" ``` ### Usage: To explore the tools I have used to create my portfolio, follow these steps: 1. Open the project in Visual Studio Code (VSCode). 2. Take a look at the project structure and files to understand the implementation. 3. Review the code, HTML, CSS, JS and other resources to see how the Booklist is built. Feel free to explore and customize the project according to your needs. ### Run tests To run tests, run the following command: - HTML linter errors run: ``` npx hint . ``` - CSS linter errors run: ``` npx stylelint "**/*.{css,scss}" ``` - JavaScript linter errors run: ``` npx eslint . ``` - For unit testing, run: ``` npm test ``` <br> ### Deployment: Click here: [Deployed Link](https://awesome-books-version1.vercel.app/) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 👥 Authors <a name="authors"></a> 👤 **MD. Nohain Islam** - GitHub: [@githubhandle](https://github.com/Zafron047) - Twitter: [@twitterhandle](https://https://twitter.com/NohainZ) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/nohain-islam-0261b4148/) <br><br> ## 👥 Collaborator <a name="collaborator"></a> 👤 **Oluwatobi Fasasi** - GitHub: [@githubhandle](https://github.com/oluwatobi-fasasi) - Twitter: [@twitterhandle](https://twitter.com/FasasiTobi1) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/abdulwasih-oluwatobi-fasasi-129a8b109) <br><br> ## 🔭 Future Features <a name="future-features"></a> Here are some planned future features for this project: - **[CSS / SCSS]**: Integrate CSS / SCSS framework to enhance styling. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/Zafron047/Portfolio_Cohort-20_Mod-1/issues). <br> ## ⭐️ Show your support <a name="support"></a> If you find this project helpful and valuable, please consider showing your support by giving it a ⭐️ rating! Your support and encouragement are highly appreciated and motivate me to continue working on projects like this. Thank you for your support! <br> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to express my sincere gratitude to Microverse for providing me with this opportunity and awesome people to collaborate with to learn and grow as a developer. Their support and guidance have been invaluable throughout my journey. <br> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
Awesome Books is a basic website that allows users to add/remove books from a list using JavaScript modules.
css,html5,javascript
2023-06-05T09:30:33Z
2023-06-07T07:35:23Z
null
1
1
14
0
0
2
null
MIT
JavaScript
PedroEmmanuelBuerger/Online-Store
main
# FrontEnd Online Store O FrontEnd Online Store é um projeto desenvolvido para criar a interface do usuário de uma loja virtual online. O objetivo do projeto é fornecer aos usuários uma experiência de compra intuitiva e agradável, permitindo que eles naveguem pelos produtos, adicionem itens ao carrinho e concluam o processo de compra. ## Funcionalidades O projeto possui as seguintes funcionalidades: - Navegação de produtos: permite aos usuários explorarem os produtos disponíveis na loja, visualizando detalhes, imagens e informações relevantes. - Adição ao carrinho: possibilita aos usuários adicionar produtos ao carrinho de compras, selecionando variações e quantidades desejadas. - Carrinho de compras: exibe aos usuários o resumo dos produtos selecionados, permitindo a edição e remoção de itens antes de finalizar a compra. - Finalização da compra: oferece aos usuários um processo simplificado de finalização da compra, com informações de envio, pagamento e confirmação do pedido. - Avalização do produto: oferece ao usuario a possibilidade de avaliar o produto. ## Tecnologias Utilizadas O projeto foi desenvolvido utilizando as seguintes tecnologias: - HTML - CSS - JavaScript - React - Redux ## equipe O projeto foi realizado com o seguintes membros: - Pedro Emmanuel Buerger da silva - Allan Ikeda - Alexandre Rebelo - Reynan Henry - Luis Gustavo De Paula ## Instalação Para visualizar o projeto localmente, siga os passos abaixo: 1. Clone o repositório para sua máquina local: git clone https://github.com/PedroEmmanuelBuerger/project-FrontEnd_Online_Store.git 2. Navegue até a pasta do projeto: cd project-FrontEnd_Online_Store 3. Instale as dependências executando o comando: npm install 4. Inicie o servidor de desenvolvimento: npm start ## Principais Aprendizados Durante o desenvolvimento deste projeto, foram aplicados os conceitos de desenvolvimento web utilizando React e Redux para a criação da interface do usuário e a gestão do estado da aplicação. Também foram utilizados trabalho em equipe com o Trelo, aprimorando a comunicação, liderança entre outras soft skills. ## Conclusão O FrontEnd Online Store oferece uma experiência de compra agradável e eficiente aos usuários de uma loja virtual online. O projeto foi uma oportunidade para aplicar e aprimorar habilidades em desenvolvimento web com React, Redux e Styled Components, contribuindo para a criação de interfaces de usuário modernas e funcionais.
uma pagina que simula completamente uma loja online, com carrinho de compras, pesquisa e visualização de produtos, calculo de frete e a possibilidade de poder da nota aos produtos.
css,javascript,react,redux,softskills
2023-06-06T21:35:34Z
2023-06-06T21:40:28Z
null
4
0
61
0
1
2
null
null
JavaScript
bensonruan/Ocrad.js
main
# Ocrad.js Unleash the OCR capabilities of Ocrad.js. Discover its simple and fast processing for text extraction from image. ## Live Demo **[https://bensonruan.com/ocr-javascript-extract-text-from-image/](https://bensonruan.com/ocr-javascript-extract-text-from-image/)** ![ocrjs-demo](https://bensonruan.com/wp-content/uploads/2023/06/Ocradjs-Demo.gif) ## Installing Clone this repository to your local computer ``` bash git https://github.com/bensonruan/Ocrad.js.git ``` Point your localhost to the cloned root directory Browse to http://localhost/index.html ## Library * [jquery](https://code.jquery.com/jquery-3.3.1.min.js) - JQuery * [ocrad.js](https://github.com/antimatter15/ocrad.js/) - OCR in Javascript via Emscripten ## Support me [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W6METMY)
Ocrad.js - Harnessing the Power of Optical Character Recognition in JavaScript
ai,artificial-intelligence,computer-vision,image-to-text,javascript,machine-learning,ocr,optical-character-recognition
2023-06-08T10:47:43Z
2023-06-19T12:49:27Z
null
1
0
7
0
0
2
null
null
JavaScript
lily4178993/leaders-week
main
<a name="readme-top"></a> <hr> <div align="center"> <img src="images/logo-gc-1.png" alt="logo" width="140" height="auto" /> <br/> <h1><b>Leaders Week</b></h1> </div> <hr> <br/> ## <b>Table of Contents 📋 - [About the Project](#about-project) - [Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [Live Demo](#live-demo) - [Getting Started](#getting-started) - [Prerequisites](#prerequisites) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [Author](#author) - [Future Features](#future-features) - [Contributing](#contributing) - [Show your support](#support) - [Acknowledgements](#acknowledgements) - [License](#license) </b> <hr><hr> <!-- ABOUT PROJECT --> ## <b>leaders-week 📖</b><a name="about-project"></a><br> The Summit Conference website built with HTML, CSS, and JavaScript. The website showcases information about the upcoming Summit Conference, including the event schedule, speakers, and registration details. The website features a user-friendly interface and is designed to provide users with a seamless experience when browsing through the website. <br><hr> <!-- BUILT WITH --> ## <b>Built With 🛠</b><a name="built-with"></a><br> <!-- TECH STACK --> ### <b>Tech Stack 🗜️</b><a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML5</a> markup to build raw structure of this web page</li><br> <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS3</a> custom properties, <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/">FlexBox</a>, <a href="">Grid</a> to make the website visually attractive</li><br> <li>Javascript for dynamic functionality</li><br> <li><a href="">Node JS</a> as a javascript runtime machine [git], a free and open source distributed version control system</li><br> <li><a href="https://mozilla.github.io/addons-linter/">Linters</a> for coding convention and coding formating</li> </ul> </details> <br><hr> <!-- KEY FEATURES --> ### <b>Key Features 🏷️</b> <a name="key-features"></a> - **The project is UI responsive.💯** - **The section "Featured speakers" was created dynamically in JavaScript.** <p align="right">(<a href="#readme-top">back to top</a>)</p> <br><hr> <!-- LIVE DEMO --> ## <b>Live Demo 🚀</b><a name="live-demo"></a> This conference website is hosted on [GitHub pages](#deployment), so if you want to check it online, please 😊 [Click here]( https://lily4178993.github.io/leaders-week/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <hr> <!-- GET STARTED --> ## <b>Getting Started 💻</b><a name="getting-started"></a> To get a local copy up and running, follow these steps. <!-- PREREQUISITIES --> ### <b>Prerequisites 🧱</b><a name="prerequisites"></a> In order to run this project you need: - A web browser to view output e.g [Microsoft Edge](https://www.microsoft.com/en-us/edge). - An IDE e.g [Visual studio code](https://code.visualstudio.com/). - [A terminal](https://code.visualstudio.com/docs/terminal/basics). <br><hr> <!-- SETUP --> ### <b>Setup ⚙️</b><a name="setup"></a> - Clone this repository to your desired folder: ```sh git clone https://github.com/lily4178993/leaders-week.git ``` - Navigate to the folder ``` cd leaders-week ``` - Checkout the branch ``` git checkout main ``` <br><hr> <!-- INSTALL --> ### <b>Install 🏗️</b><a name="install"></a> Install all dependencies: ```sh npm install ``` <br><hr> <!-- USAGE --> ### <b>Usage 📂</b><a name="usage"></a> To run the project, follow these instructions: - You have to clone this repo to your local machine. ``` git clone https://github.com/lily4178993/leaders-week ``` - If you want to run it on your preferred browser, open <b>index.html</b> or <b>about.html</b>. <!-- TESTS --> <br><hr> ### <b>Run tests 🧪</b><a name="run-tests"></a> How should it be tested? To run tests, run the following command: - HTML linter errors run: ``` npx hint . --fix ``` - CSS linter errors run: ``` npx stylelint "**/*.{css,scss}" --fix ``` - JavaScript linter errors run: ``` npx eslint . --fix ``` - For unit testing, run: ``` npm test ``` <br><hr> <!-- DEPLOYEMENT --> ### <b>Deployment</b> <a name="deployment"></a> You can deploy this project using: GitHub Pages, [Vercel](https://vercel.com/) or [Netlify](https://www.netlify.com/). I used GitHub Pages to host my website. For more information about how to use GitHub pages [read here](https://www.w3schools.com/git/git_remote_pages.asp?remote=github) 🤩. If you want to watch a video about how to use GitHub pages instead of reading [click here](https://www.youtube.com/watch?v=QyFcl_Fba-k&t=251s) ☺️. <p align="right">(<a href="#readme-top">back to top</a>)</p> <br><hr> <!-- AUTHOR --> ## <b>Author</b><a name="Nelly Telli"></a> Want to get in touch with me 📲? Here are my social links: > [GitHub](https://github.com/lily4178993/) <br/><hr /> > [Twitter](https://twitter.com/nelly_telli) <br/><hr /> > [LinkedIn](https://www.linkedin.com/in/nelly-t-330414266/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <br><hr> <!-- FUTURE FEATURES --> ## <b>Future Features 🔭</b><a name="future-features"></a> - [ ] implement the tickets page - [ ] implement the schedule page - [ ] include more transitions and/or animations <p align="right">(<a href="#readme-top">back to top</a>)</p> <br><hr> <!-- CONTRIBUTING --> ## <b>Contributing 🤝</b><a name="contributing"></a> If you have suggestions 📝, ideas 🤔, or bug reports 🐛, please feel free to open an [issue](https://github.com/lily4178993/leaders-week/issues) on GitHub. Remember, every contribution, no matter how big or small, makes a difference. <p align="right">(<a href="#readme-top">back to top</a>)</p> <br><hr> <!-- SUPPORT --> ## <b>Show your support 🌟</b><a name="support"></a> Thank you for taking the time to explore my GitHub project! Your support means a lot to me. If you find my project valuable and would like to contribute, here are a few ways you can support me: - <b>Star the project ⭐️</b>: Show your appreciation by starring this GitHub repository. It helps increase visibility and lets others know that the project is well-received. - <b>Fork the project 🍴 🎣</b>: If you're interested in making improvements or adding new features, feel free to fork the project. You can work on your own version and even submit pull requests to suggest changes. - <b>Share with others 🗺️</b>: Spread the word about this project. Share it on social media, mention it in relevant forums or communities, or recommend it to colleagues and friends who might find it useful. <p align="right">(<a href="#readme-top">back to top</a>)</p> <br><hr> <!-- ACKNOWLEDGEMENTS --> ## <b>Acknowledgments 🙏</b><a name="acknowledgements"></a> I would like to express my sincere gratitude to [Microverse](https://github.com/microverseinc), the dedicated reviewers, and my partners. Your unwavering support, feedbacks, and collaborative efforts have played an immense role in making my journey a resounding success. Thank you for being an integral part of my achievements. I would like to express my sincere gratitude to [Cindy Shinw](https://www.behance.net/adagio07), the author of the [design](https://www.behance.net/gallery/29845175/CC-Global-Summit-2015) that I have utilized. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENCE --> ## <b>License 📝</b><a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
The Summit Conference website built with HTML, CSS, and JavaScript. The website shows the event schedule, speakers, and registration details. The website features a user-friendly interface and is designed to provide users with a seamless experience when browsing through the website.
conference-website,css3,html5,javascript,linters,nodejs,learning-project
2023-05-20T15:40:31Z
2023-06-02T09:01:16Z
null
1
3
79
0
0
2
null
MIT
CSS
maryamnazeran/maryam-website
main
# Maryam website Visit this [website](https://maryamnazeran.github.io/maryam-website) live in your browser. ![screenshot](images/screenshot.png)
My old personal website
javascript,personal-website
2023-05-31T18:23:24Z
2023-06-09T09:55:38Z
null
2
0
5
0
0
2
null
null
CSS
gisachris/MovieBest-website
main
# 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [👩‍💻 Presentation](#Presentation) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#triangular_flag_on_post-deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [❓ FAQ (OPTIONAL)](#faq) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 📖 The Best Movie Collection App <a name="about-project"></a> **The Best Movie Collection App** website displays collection of world's best movies and shows. It allows you to submit your comments and likes. All data is preserved to the external Involvement API service. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>HTML/CSS/JavaScript</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">Javascript</a></li> </ul> </details> <details> <summary>GitHub</summary> <ul> <li><a href="https://github.com/">Github</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **Interactive Webpage** - **Add Comments and Likes** - **API Interaction** - **Webpack** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Live Demo <a name="live-demo"></a> You can checkout the live demo below 👍 https://moviebest.onrender.com <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Project Presentation <a name="Presentation"></a> You can checkout the presentation below 👍 https://drive.google.com/file/d/15RyaoHLv8E6QsW1W8sFI1lp7-90jyNJ9/view?usp=drive_link <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites In order to run this project you need: - a browser - git - nodejs ### Setup Clone this repository to your desired folder: ```sh cd my-folder git clone git@github.com:mailsg/module-2-capstone-project.git ``` ### Install Install this project with: ```sh cd module-2-capstone-project npm install npm run build npm start ``` ### Usage To run the project, execute the following command: ```sh Open dist/index.html in browser or Open with Live server in Vscode ``` ### Run tests To run tests, run the following command: ```sh npx stylelint "**/*.{css,scss}" npx hint . npx eslint . ``` <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Author <a name="authors"></a> 👤 **Sandeep Ghosh** - GitHub: [@mailsg](https://github.com/mailsg) 👤 **Gisa Chris** - GitHub: [@gisachris](https://github.com/gisachris) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - [ ] **Profile Section** - [ ] **News Section** - [ ] **Join Section** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [https://github.com/mailsg/module-2-capstone-project/issues](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project give me a follow and/or a star <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank Microverse for giving this opportunity to me to showcase my dev skills. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
this is an API based Web application that renders a list of movies from the movie best API and displays them with intricate design and functionality that allows you the client to have the best movie browsing experience possible
javascript,movies,movies-api,uidesign
2023-05-29T10:14:16Z
2023-07-12T07:21:32Z
null
2
8
31
4
1
2
null
MIT
JavaScript
billymohajeri/Billy-Portfolio
deploy
<a name="readme-top"></a> <div align="center"> <!-- <img src="" alt="logo" width="140" height="auto" /> --> <br/> <h3><b>Billy's Portfolio</b></h3> </div> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) # 📖 Billy Portfolio <a name="about-project"></a> **Billy Portfolio** is a website where you can find examples of my work, along with information about my technical and professional qualifications, as well as how to get in touch with me. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://www.w3.org/html/">HTML5</a></li> <li><a href="https://www.w3schools.com/css/">CSS3</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JavaScript</a></li> </ul> </details> ### Key Features <a name="key-features"></a> - **Display some of my projects** - **Show my info and social accounts links** - **Provide a downloadable version of my resume** - **Provide a contact me form** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://billymohajeri.com/) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Setup Clone this repository to your desired folder: Using HTTPS: ```sh git clone https://github.com/billymohajeri/Billy-Portfolio.git cd Billy-Portfolio ``` Using SSH: ```sh git clone git@github.com:billymohajeri/Billy-Portfolio.git cd Billy-Portfolio ``` Using GitHub CLI: ```sh gh repo clone billymohajeri/Billy-Portfolio cd Billy-Portfolio ``` ### Prerequisites In order to run this project you need: ### Install Install this project with: ### Usage To run the project, execute the following command: <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 👥 Authors <a name="authors"></a> 👤 **Billy Mohajeri** - GitHub: [@BillyMohajeri](https://github.com/billymohajeri) - Twitter: [@BillyMohajeri](https://twitter.com/BillyMohajeri) - LinkedIn: [@BillyMohajeri](https://www.linkedin.com/in/billymohajeri) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - [ ] **Add like for projects** - [ ] **Add comment for projects** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> If you like this project, you can support me by giving a ⭐. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank all of my code reviewers for giving me constructive feedback. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. _NOTE: we recommend using the [MIT license](https://choosealicense.com/licenses/mit/) - you can set it up quickly by [using templates available on GitHub](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). You can also use [any other license](https://choosealicense.com/licenses/) if you wish._ <p align="right">(<a href="#readme-top">back to top</a>)</p>
In this project, I built my portfolio website. This is a website containing a collection of projects I have worked on, my technical & professional skills, and how to contact me. I used HTML/CSS, JavaScript, proper GitHub Flow, and deployed my website using GitHub Pages.
css3,html5,javascript
2023-06-01T11:31:55Z
2023-08-21T07:34:14Z
null
1
2
65
0
1
2
null
null
CSS
Paulinelali/Microverse-capstone-one
main
# Microverse-capstone-one<a name="readme-top"></a> # 📗 Table of Contents - [Microverse-capstone-one](#microverse-capstone-one) - [📗 Table of Contents](#-table-of-contents) - [📖 First Capstone Project ](#-first-capstone-project-) - [Project Description\*\*](#project-description) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [💻 Getting Started ](#-getting-started-) - [Install](#install) - [👥 Authors ](#-authors-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) <!-- PROJECT DESCRIPTION --> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://paulinelali.github.io/Microverse-capstone-one/index.html) - # 📖 First Capstone Project <a name="about-project"></a> ## Project Description** **The Microverse first Capstone Project aims to test understanding of micronaunts, to know how much students understands all concepts learned so far ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> > This project was built using the following technologies: <details> <summary>HTML</summary> <ul> <li><a href="https://www.w3schools.com/html/" target="_blank">html</a></li> </ul> </details> <details> <summary>CSS</summary> <ul> <li><a href="https://www.w3schools.com/css/" target="_blank">css</a></li> </ul> </details> <details> <summary>Javascript</summary> <ul> <li><a href="https://www.w3schools.com/javascript/" target="_blank">Javascript</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - **Mobile responsiveness** - **Information about my work experience and educational background** - **Detailed project descriptions with links to code repositories and live demos** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> > In order to start with this project: To get get a local copy up and running, you can follow these simple steps: ### Install Clone the repository to your local machine using the following command: ```sh git clone [github.com/Paulinelali](https://github.com/Paulinelali/Microverse-capstone-one.git) ``` Navigate to the project directory: Open the index.html file in your web browser to view the project: open index.html You can now make changes to the project as desired and push them back to the repository using Git. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> <!-- > Mention all of the collaborators of this project. --> 👤 **Ayomide Sunday Emmanuel** - GitHub: [@githubhandle](https://github.com/ticoniq) - LinkedIn: [@linkedin](https://www.linkedin.com/in/ayomide-sunday-22ab25266/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - [ ] **Additional pages: More pages will be added to the project to display additional content.** - [ ] **The ability to share a speaker's profile on social media** - [ ] **User interaction and contact form** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> If you'd like to contribute to this project, feel free to fork the repository and make changes as you see fit. Please submit a pull request with your changes and I'll review. Thank you😎 <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> > I am excited to share with you my latest project on Github. By supporting my project, you can help me improve my Github workflow skills and learn more😎. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> > I would like to thank the Microverse community for their support and guidance throughout this project. **Give credit to everyone who inspired your codebase.** >I would like to thank the Microverse curriculum, and specifically [Cindy Shin in Behance](https://www.behance.net/adagio07) this project's reference his design🤗. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FAQ (optional) --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
This project is a simple complete website for for conference titled "the unfathomable depth of a mothers love". Stacks used in this project are: SASS, HTML, JavaScript
git,github,html5,javascript,sass
2023-05-19T21:59:09Z
2023-05-24T23:08:26Z
null
1
8
33
0
0
2
null
NOASSERTION
HTML
Mike111222/KingFisher-Chemicals
main
# KingFisher Chemicals "This project is all about telling and raising awareness among farmers, agronomists and people around the globe about a conference, emphasizing "Food is the New Gold". HTML, CSS and JavaScript best practices were followed. Users can get complete details about the Program, Speakers, Partners, Dates and Venue. This project can be run on local host." <a name="readme-top"></a> <!-- HOW TO USE: This is an example of how you may give instructions on setting up your project locally. Modify this file to match your project and remove sections that don't apply. REQUIRED SECTIONS: - Table of Contents - About the Project - Built With - Live Demo - Getting Started - Authors - Future Features - Contributing - Show your support - Acknowledgements - License OPTIONAL SECTIONS: - FAQ After you're finished please remove all the comments and instructions! --> <div align="center"> <!-- You are encouraged to replace this logo with your own! Otherwise you can also remove it. --> <br/> <h3><b>KingFisher Chemicals</b></h3> </div> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [❓ FAQ (OPTIONAL)](#faq) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 📖 [KingFisher Chemicals] <a name="about-project"></a> **[KingFisher Chemicals]** "This project is all about telling and raising awareness among farmers, agronomists and people around the globe about a conference, emphasizing "Food is the New Gold". HTML, CSS and JavaScript best practices were followed. Users can get complete details about the Program, Speakers, Partners, Dates and Venue. This project can be run on local host." ## 🛠 Built With <a name="built-with"></a> 1- HTML 2- CSS 3-JavaScript ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://html.com/">HTML</a></li> <li><a href="https://www.w3.org/Style/CSS/Overview.en.html">CSS</a></li> <li><a href="https://www.javascript.com/">JavaScript</a></li> </ul> </details> <!-- Features --> ### Key Features <a name="key-features"></a> - Added index.html file - Added styles.css file - Added script.js file - Added images and separate about page <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> <a href="https://mike111222.github.io/KingFisher-Chemicals/" target="_blank">KingFisher Chemicals Live Demo Link</a> <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> - Install VS Code and run it on Live Server if you want to check how the code works on local host. ### Prerequisites In order to run this project you need: 1. Browser. 2. VS Code editor 3. Git and GitHub <!-- Example command: ```sh gem install rails ``` --> ### Setup Clone this repository to your desired folder by running this command. ```sh cd my-folder git clone git@github.com:Mike111222/KingFisher-Chemicals.git ``` ### Install Coming soon ### Usage Open index.html file in VS Code, run via live server extension and see how the code works. You can also visit the Live Demo Link to see how the Project works online. ### Run tests Coming soon. ### Deployment You can deploy this project using: Coming soon. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Muhammad Amran Khan** - GitHub: [@githubhandle](https://github.com/Mike111222) - Twitter: [@twitterhandle](https://twitter.com/iMike111222) - LinkedIn: [LinkedIn](https://linkedin.com/in/Mike111222) <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - [ ] Add nav bar and a menu page for mobile users as well as for desktop users. - [ ] Add some new projects - [ ] Add more styles and animation to make it more apealing. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project, just reach out to me for more projects even better than this, and please give it a star ⭐️. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank my dear friend Salman Ahmad Khan, my code reviewers and Microverse and the owner of the Behance Design Cindy Shin, from where I have taken the design insights and styles ideas. <p align="right">(<a href="#readme-top">back to top</a>)</p> <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
"This project is all about telling and raising awareness among farmers, agronomists and people around the globe about a conference, emphasizing "Food is the New Gold". HTML, CSS and JavaScript best practices were followed. Users can get complete details about the Program, Speakers, Partners, Dates and Venue. This project can be run on local host."
css,html,javascript
2023-05-20T06:46:29Z
2023-06-11T12:56:37Z
null
1
1
50
0
0
2
null
MIT
CSS
emektarkubra/weather-forecast
master
# 🌦️ WEATHER-FORECAST *** # Simple Weather-App! ☔ > "Weather-forecast" project is a simple project made with the help of HTML, CSS and JS and displays data from Weather-API. Weather app that allows you to get current weather, 7-day weather forecast and detailed changes in 24-hour weather data, based on the city. The project adapted according to Ankara weather conditions and implemented using pure JavaScript, does not include any frameworks or libraries. <video src="https://github.com/emektarkubra/weather-forecast/assets/124355274/627492f9-e3d9-42ac-aad5-9b39da92b948" controls="controls" > </video> *** ## 🛠️ Built With * HTML * CSS * Javascript ## 🌟 Features * Display current weather * Display 7 day weather forecast * Display 24 hour weather forecast * Change background according to the weather ![snow](https://github.com/emektarkubra/weather-forecast/assets/124355274/a91dc8bb-7dfd-407c-95df-f9a465ff583c) ## 💦 Weather API A Weather API that returns information about current and forecast weather datas. Visit the main page of this API (that comes by default with json-server) after login and get API key: [http://api.weatherapi.com/v1/forecast.json?key=<YOUR_API_KEY>&q=07112&days=7](http://api.weatherapi.com/v1/forecast.json?key=<YOUR_API_KEY>&q=07112&days=7) ### Endpoints Endpoints may change depending on the number of days, to the city and whether it is current, forecast or both; So to get current weather for London: (JSON) [http://api.weatherapi.com/v1/current.json?key=<YOUR_API_KEY>&q=London](http://api.weatherapi.com/v1/current.json?key=<YOUR_API_KEY>&q=London) To get 7 day weather for US Zipcode 07112: (JSON) [http://api.weatherapi.com/v1/forecast.json?key=<YOUR_API_KEY>&q=07112&days=7](http://api.weatherapi.com/v1/forecast.json?key=<YOUR_API_KEY>&q=07112&days=7) Search for cities starting with Lond: (JSON) [http://api.weatherapi.com/v1/search.json?key=<YOUR_API_KEY>&q=lond](http://api.weatherapi.com/v1/search.json?key=<YOUR_API_KEY>&q=lond) ## 🚀 Getting Started There are no prerequisites for this project. Clone Repository using; ```javascript git clone git@github.com:emektarkubra/weather-forecast.git ``` or ```javascript git clone https://github.com/emektarkubra/weather-forecast.git ``` After clone, open index.html in your extended browser. *** ## 👷‍♀️ Authors ### Kübra Emektar **Github** : [@github](https://github.com/emektarkubra) **Linkedln** : [Linkedln](https://www.linkedin.com/in/kübra-emektar-184103267/) ## 🙋‍♀️ Show your support Give a ⭐️ if you like this project! *** > Lots of sunshine and coding days 🌞
This repository contains the source code for a simple Weather Forecast web application built with HTML, CSS, and pure JavaScript, providing real-time weather data and forecasts based on the city, with a focus on Ankara's conditions.
javascript,rest-api,vanilla-js,weather
2023-05-27T19:26:46Z
2023-07-30T16:45:14Z
null
1
0
9
0
0
2
null
null
JavaScript
mrcbq/Leaderboard
develop
# Leaderboard JavaScript project for the Leaderboard list app, using webpack and ES6 features, notably modules. Consume the Leaderboard API using JavaScript async and await. <a name="readme-top"></a> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [❓ FAQ (OPTIONAL)](#faq) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 📖 Awesome Books <a name="about-project"></a> **Awesome Books** is a Leaderboard web application JavaScript project for the Leaderboard list app, using webpack and ES6 features, notably modules, will consume the Leaderboard API using JavaScript async and await. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://HTML.org/">HTML</a></li> <li><a href="https://css.org/">CSS</a></li> <li><a href="https://javascript.org/">JavaScript</a></li> </ul> </details> <!-- <details> <summary>Server</summary> <ul> <li><a href="https://expressjs.com/">CSS</a></li> </ul> </details> <details> <summary>Database</summary> <ul> <li><a href="https://www.postgresql.org/">JavaScript</a></li> </ul> </details> --> <!-- Features --> ### Key Features <a name="key-features"></a> - **Use local Storage** - **Save a list of books** - **Allow eliminate one selected Book** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://mrcbq.github.io/Leaderboard/) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites In order to run this project you need: * Only clone the repo and run in your local ### Setup Clone this repository to your desired folder: https://github.com/mrcbq/Leaderboard.git ### Install <!-- Install this project with: --> To install this project, run the following command: npm install ### Usage To run the project, execute the following command: git clone https://github.com/mrcbq/Leaderboard.git ### Run tests To run tests, run the following command: npm test ### Deployment You can deploy this project using: npm run deploy <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Author1** - GitHub: [@mrcbq](https://github.com/mrcbq) - Twitter: [@twitterhandle](https://twitter.com/mrcbq) - LinkedIn: [LinkedIn](https://linkedin.com/in/mrcbq) <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - [ ] **Add Libraries for interchange the lists elements** - [ ] **Add Navigation** - [ ] **Add Luxor library** <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project... Please give a ⭐ to the repo and follow us <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank Microverse <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- FAQ (optional) --> <!-- ## ❓ FAQ (OPTIONAL) <a name="faq"></a> > Add at least 2 questions new developers would ask when they decide to use your project. - **[Question_1]** - [Answer_1] - **[Question_2]** - [Answer_2] <p align="right">(<a href="#readme-top">back to top</a>)</p> --> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
JavaScript project for the Leaderboard list app, using webpack and ES6 features, notably modules. Consume the Leaderboard API using JavaScript async and await.
fetch-api,html-css,javascript
2023-05-18T14:13:07Z
2023-05-19T21:19:18Z
null
1
3
29
0
0
2
null
MIT
JavaScript
mrcbq/capstone-rick-and-morty-api
develop
<h1>Capstone Rick and Morty - Microverse</h1> <a name="readme-top"></a> <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📗 Table of Contents](#-table-of-contents) - [📖 Capstone Rick and Morty](#-capstone-rick-and-morty) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [🚀 Live Demo ](#-live-demo-) - [💻 Getting Started ](#-getting-started-) - [Prerequisites](#prerequisites) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#deployment) - [👥 Author ](#-author-) - [🔭 Future Features ](#-future-features-) - [Walkthrough ](#walkthrough-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) <!-- PROJECT DESCRIPTION --> # 📖 Capstone Rick and Morty<a name="about-project"></a> In this project we decide to consume the Rick and Morty API to make a web page to display characters in cards with popup window, characters descriptions, likes and section of comments. - You can watch the description of the project [here.](https://drive.google.com/file/d/1KFuJ6Um0O_U1fnMbIoZs3Bdw-5j2ANKf/view?usp=share_link) ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> - HTML - JS - CSS - Webpack - Jest <details> <summary>Client</summary> - HTML<br> - JS<br> - CSS<br> - Webpack<br> - Jest </details> <details> <summary>Server</summary> - Null </details> <details> <summary>Database</summary> - Null </details> ### Key Features <a name="key-features"></a> - **Cards with characters** - **Popup windows** - **Likes and comments for characters** <!-- LIVE DEMO --> ## 🚀 Live Demo <a name="live-demo"></a> > You can see the live demo of this project [here](https://mrcbq.github.io/capstone-rick-and-morty-api/) <!-- - No live demo available yet --> <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites - A web browser - A code editor - A terminal ### Setup Clone this repository to your desired folder: ```sh git clone https://github.com/mrcbq/capstone-rick-and-morty-api.git ``` ### Install Install this project with: ```sh cd capstone-rick-and-morty-api npm install ``` ### Usage To run the project on the webpack dev server, execute the following command: ```sh npm start ``` ### Run tests To run tests, run the following command: ```sh npm test ``` ### Deployment ```sh npm run deploy ``` <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Author <a name="authors"></a> 👤 Luis Valera - GitHub: [@Luiscarlosvd](https://github.com/Luiscarlosvd) - Twitter: [@Luiscarlosvd29](https://twitter.com/Luiscarlosvd29) - LinkedIn: [Luis Valera](https://www.linkedin.com/in/luis-valera-6a5749267/) 👤 Marco Baquero - GitHub: [@mrcbq](https://github.com/mrcbq) - Twitter: [@mrcbq](https://twitter.com/mrcbq) - LinkedIn: [mrcbq](https://www.linkedin.com/in/mrcbq/) ## 🔭 Future Features <a name="future-features"></a> - **Add popup window for reservations 😁** - **Add Episodes section 👌** - **Add more characters 😎** ## Walkthrough <a name="walkthrough"></a> You can watch the video description of the project [here](https://drive.google.com/file/d/1KFuJ6Um0O_U1fnMbIoZs3Bdw-5j2ANKf/view?usp=share_link). <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project, give it a ⭐️! <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🙏 Acknowledgments <a name="acknowledgements"></a> We would like to thank Microverse for giving us the opportunity to learn and grow as developers and also we like to thank our families, they are all our support. 🌟 <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
Web application created around Rick and Morty API, uses ES6 features and consume 2 API, one for get data (R&M API) another for post data (MV Involvement API). Permits add likes and comments taht are saved in the involvement API.
css3,fetch-api,html5,javascript,jest-tests,webpack
2023-05-22T16:35:11Z
2023-05-25T17:42:34Z
null
2
15
83
21
0
2
null
MIT
JavaScript
Basa2000/04.Portfolio_website
main
![MasterHead](https://camo.githubusercontent.com/48ec00ed4c84e771db4a1db90b56352923a8d644452a32b434d68e97006c9337/68747470733a2f2f63686b736b696c6c732e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032302f30342f504e432d416e696d617465642d42616e6e6572732e676966) <h1 align="center">Hi 👋, I'm Basavaraj Kumbhar</h1> <h3 align="center">A passionate MERN Full Stack Developer from India</h3> <img border="rounded" src="https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2022/04/web-developer-portfolio.png" alt="coding" align="right" width="400"> <p align="left" > <img src="https://komarev.com/ghpvc/?username=basa2000&label=Profile%20views&color=0e75b6&style=flat" alt="basa2000" /> </p> - 🔭 I’m currently worked on [Portfolio Website](https://basavaraj-portfolio.netlify.app/) - 🌱 I’m currently learning **React.js, Backend Technologies** - 💬 Ask me about **MERN** - 📫 How to reach me **basavkumbhar1432@gmail.com** <h3 align="left">Connect with me:</h3> <p align="left"> <a href="https://linkedin.com/in/basavaraj kumbhar" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/linked-in-alt.svg" alt="basavaraj kumbhar" height="30" width="40" /></a> <a href="https://instagram.com/kumbhar_basavaraj_" target="blank"><img align="center" src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/instagram.svg" alt="kumbhar_basavaraj_" height="30" width="40" /></a> </p> <h3 align="left">Languages and Tools:</h3> <p align="left"> <a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a> <a href="https://www.w3.org/html/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a> <a href="https://reactjs.org/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/react/react-original-wordmark.svg" alt="react" width="40" height="40"/> </a> <a href="https://tailwindcss.com/" target="_blank" rel="noreferrer"> <img src="https://www.vectorlogo.zone/logos/tailwindcss/tailwindcss-icon.svg" alt="tailwind" width="40" height="40"/> </a> </p> <p><img align="center" src="https://github-readme-stats.vercel.app/api/top-langs?username=basa2000&show_icons=true&locale=en&layout=compact" alt="basa2000" /></p>
A portfolio is a compilation of materials that exemplifies your beliefs, skills and experiences. A portfolio website is generally a static website built from HTML, Tailwind CSS and JavaScript that featuring work samples and other showcase our work or skills.
css,html,javascript,tailwind-css,portfolio-website,responsive-design,showcase
2023-05-30T15:28:21Z
2023-06-19T07:11:22Z
null
1
0
6
0
0
2
null
null
HTML
AbdalrahmanAlsherif/Simply-Weather
master
# Simply-Weather Simply Weather is a Web application that uses NodeJS and Open Weather Map API to fetch real time weather data, and represent these data in a modern and responsive Fronteand that uses Bootstrap. <img width="958" alt="Screenshot 2023-05-30 040952" src="https://github.com/AbdalrahmanAlsherif/Simply-Weather/assets/103835501/adac92a7-a623-42e4-9a14-eccc32c52012"> <img width="960" alt="Screenshot 2023-05-30 040830" src="https://github.com/AbdalrahmanAlsherif/Simply-Weather/assets/103835501/d6ab0a35-4765-4f22-8393-b9af197072c4"> Instructions & notes: -Make sure to add your key to app.js ,you can get the key by signing up for an account at https://openweathermap.org/. -you can switch between celsius and Ferhinat by changing the unit variable in app.js .
Simply Weather is a Web application that uses NodeJS and Open Weather Map API to fetch real time weather data, and represent these data in a modern and responsive Frontend that uses Bootstrap.
ajax,api,bootstrap5,css,expressjs,html5,javascript,jquery,nodejs,openweathermap-api
2023-05-30T00:03:12Z
2023-10-14T15:28:33Z
null
1
0
8
0
0
2
null
null
HTML
Guilherme-Espinosa/pokedex-DIO
main
null
Projeto Pokedex para o Bootcamp Potencia Tech, com consumo de API.
api,consumo-de-apis,css3,dio,dio-bootcamp,html5,javascript,pokedex,pokemon
2023-05-18T00:49:54Z
2023-06-01T02:54:42Z
null
1
0
19
0
0
2
null
null
CSS
Chill-Peppa/movies-explorer-frontend
main
# Фронтенд дипломного проекта от Я.Практикум Финальный проект на веб-факультете в Яндекс Практикум. Это сервис, в котором можно найти фильмы по запросу и сохранить в личном кабинете. ## Ссылка на макет https://www.figma.com/file/pXuHU2n2821pvQUFC2w1A3/Diploma-(Copy)?type=design&node-id=891-3857&t=V12GxqSJi2WwwhOu-0 ## Ссылки на проект * Адрес репозитория: https://github.com/Chill-Peppa/movies-explorer-frontend * Frontend: http://movies-explorer-diploma.nomoredomains.rocks/ * Backend: http://api.movies-explorer-dip.nomoredomains.rocks/ * Pull Request: https://github.com/Chill-Peppa/movies-explorer-frontend/pull/2 ## Запуск проекта Проект необходимо скачать. Запуск приложения осуществляется командой: `npm start` Запускает приложение в режиме разработки. Откройте http://localhost:3000, чтобы просмотреть его в браузере. ## Стек технологий HTML, CSS, React, Express, MongoDB, NodeJS, API, Nginx, JWT, Postman
Пользовательская часть дипломного проекта, выполненного на курсе от Я. Практикум. Movies-explorer это портфолио и в то же время сервис для поиска фильмов
api-rest,css3,html5,javascript,reactjs,fullstack,frontend
2023-05-22T17:48:13Z
2023-07-10T16:54:27Z
null
1
3
64
0
0
2
null
null
JavaScript
productimer/productimer
main
# Productimer A productivity app that keeps you accountable with your friends. For the frontend, EJS, CSS, and JS, jQuery roundSlider are utilized to deliver a seamless user experience. \ \ The backend employed in this project encompasses MongoDB for the database, along with Node.js and Express for the backend. We have used socket.io for the realtime rooms feature so that you can create a common session with your friends from anywhere in the world! # How to use: - The app works in two fundamental modes: - ## Local(solo) mode 1. This mode is activated when you do not join any room or whenever you refresh the page. 2. Here you can start your session and use the timer as a regular pomodoro/ productivity timer. - ## Collaborative mode 1. This mode gets activated whenever you join a room with a room ID.(any id that has not been used yet, makes you the owner for that ID) 2. The room ID can be any string 3. The first person who joins the room becomes the permanent ***owner*** of that room. Only one owner can exist per room. The subsequent members who join the room(**even after the owner has left**) become the ***members*** of that room. ### Owner Abilities: - Start the session (plant) with desired duration of the session. - Stop the session globally (kill). - Session can only be started by the owner for a given room. ### Member Abilities: - Stop the session globally (kill). ### Note: - If someone closes/refreshes their browser tab during a session, it would not affect the other members' session in the same room i.e. it wont kill. It will remove particular person from the room and the time won't be synced for members who join after the session has started or when they leave/abort their session(without killing). - However if someone(member/owner) clicks the kill button, the session will stop for everyone in the room, and the display name of the killer will be displayed to all the members in that room. #### Upon successful completion of any global or local session, the data of the successful session will be stored in the database and can be seen in the Stats page. # How to setup locally ## Make sure you have these Dependencies installed: - [MongoDB](https://www.mongodb.com/docs/manual/administration/install-community/) - [Node.js](https://nodejs.org/en/download) - [MongoDB Compass](https://www.mongodb.com/try/download/compass)(optional) ## Installation - First clone this repo ```bash git clone https://github.com/apoorvapendse/productimer.git cd productimer ``` - Now install the required dependencies using npm ```bash npm i ``` - Now enter the command below to start the server ```bash node index.js ``` - You can access the website once the server starts and database is connected on *localhost:4400*
A productivity app that keeps you accountable with your friends
ejs,express,mongodb,nodejs,css,javascript,render,socket-io,roundslider
2023-06-03T17:22:23Z
2023-07-02T02:20:51Z
null
3
67
173
2
2
2
null
null
EJS
Kashif-Rezwi/Native-WS-Chat-App
main
# Native-WS-Chat-App This is a small react chat app that uses native WebSocket for real-time bidirectional communication in the backend and express for the HTTP server.
This is a small chat app using native web socket.
chat-application,css3,expressjs,html5,javascript,nodejs,reactjs,realtime,websockets
2023-06-06T17:44:39Z
2023-06-20T18:02:03Z
null
1
0
29
0
0
2
null
null
JavaScript
iamsjunaid/Math-magicians
dev
<a id="readme-top"></a> # Math magicians # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#triangular_flag_on_post-deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [❓ FAQ (OPTIONAL)](#faq) - [📝 License](#license) <!-- PROJECT DESCRIPTION --> # 📖 Math magicians <a name="about-project"></a> **Math magicians** Math magicians is an online calculator app. It has a beautiful UI and it consist of three navigation items. The homepage shows what the app can do, the quote page shows a unique quote on every time you refresh the browser. The last page consist of a calculator that can perform mathematical operations. It has the following pages: <ul> <li>Home</li> <li>Calculator</li> <li>Quote</li> </ul> It allows users to ☑️Read a random math-related quote. ☑️Make simple calculations. ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>HTML</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">index.html</a></li> </ul> </details> <details> <summary>CSS</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">style.css</a></li> </ul> </details> <details> <summary>Javascript</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">script.js</a></li> </ul> </details> <details> <summary>ReactJS</summary> <ul> <li><a href="https://legacy.reactjs.org/docs/getting-started.html">ReactJS</a></li> </ul> </details> <details> <summary>Jest</summary> <ul> <li><a href="https://jestjs.io/">Jest</a></li> </ul> </details> <p align="right">(<a href="#readme-top">back to top</a>)</p> ### Key Features <a name="key-features"></a> *Performs mathematical operations*<br> *Beautiful UI* <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🚀 Live Demo <a name="live-demo"></a> - [Live Demo Link](https://math-magicians-cg1v.onrender.com/) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites In order to run this project you need to clone or fork and run it in a browser ### Setup Clone this repository to your desired folder: Example commands: ```sh cd my-folder git clone https://github.com/iamsjunaid/leaderboard/todo-list-react.git ``` For more information on how to clone or fork a repository: - <a href="https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository">How to clone a repo</a> - <a href="https://docs.github.com/en/get-started/quickstart/fork-a-repo">How to fork a repo</a> ### Install - To install the package ```sh npm install ``` ### Usage - To run the project ```sh npm start ``` ### Tests - To test the project run the following `cmd`: ```sh npm run test OR npm test ``` - To check the linter issues ```sh npx eslint "**/*.{js,jsx}" ``` ```sh npx stylelint "**/*.{css,scss}" ``` <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 Author : **Junaid Ahmed Syed** - Github : [@GitHub](https://github.com/iamsjunaid) - LinkedIn : [@LinkedIn](https://www.linkedin.com/in/junaid-syed-058b2779/) <!-- COLLABORATORS --> ## 👥 Collaborators <a name="authors"></a> 👤 Collaborator : **Antoine Makdessy** - Github : [@GitHub](https://github.com/ANTOINE1128) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - **Design changes** - **Animations** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/iamsjunaid/math-magicians/issues ). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> If you like this project you can give a Star at project's [GitHub page](https://github.com/iamsjunaid/math-magicians). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I would like to thank Microverse and the code reviewers for making this project better. <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 📝 License <a name="license"></a> This project is [MIT](https://github.com/iamsjunaid/math-magicians/blob/dev/LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p>
Math magicians is an online calculator app. It has a beautiful UI and it consist of three navigation items. The homepage shows what the app can do, the quote page shows a unique quote on every time you refresh the browser. The last page consist of a calculator that can perform mathematical operations.
css,html,javascript,jest,reactjs
2023-06-05T07:44:04Z
2023-06-16T05:58:14Z
null
2
6
50
0
0
2
null
MIT
JavaScript
vjz3qz/leftover-link
main
# Leftover Link 🍣 Leftover Link is a full-stack application with a mission to bridge the gap between local restaurants and homeless shelters, facilitating the donation of unused food before it goes to waste. Our primary goal is to provide fresh and nutritious meals to those in need while reducing food waste in our communities. This repository contains the source code and documentation for both the client-side (front-end) and server-side (back-end) modules of the Leftover Link application. ## Features - Connect restaurants with homeless shelters for food donations. - User-friendly and intuitive interface for easy navigation and interaction. - Display restaurants and donation locations using Google Maps integration. - Create, read, update, and delete operations for restaurants and food items. - Seamless communication between restaurants and shelters through the platform. - Reliable and efficient RESTful APIs for data management. ## Technologies Used - React.js: Used for building the front-end of the application, providing a responsive and interactive user interface. - Express.js and Node.js: Utilized for building the back-end of the application, handling requests, and managing data flow. - MongoDB/Mongoose: Chosen for data persistence and schema creation, ensuring efficient storage and retrieval of information. - Google Maps API: Integrated to display restaurants and donation locations on an interactive map. - Postman: Employed for testing the RESTful APIs to ensure reliability and functionality. We appreciate your interest in making a difference in the sustainability climate and helping us address food waste and hunger in our communities. Thank you for joining us on this mission! Together, one meal at a time, we can make a difference. <!--- - Heroku: Used for deployment of the application, making it accessible to users. ## Getting Started To get a local copy of the project up and running, follow these steps: 1. Clone the repository: `git clone https://github.com/vjz3qz/leftover-link.git` 2. Navigate to the project directory: `cd leftover-link` 3. Install the dependencies for the client-side: `cd client && npm install` 4. Install the dependencies for the server-side: `cd server && npm install` 5. Start the development server: `npm run dev` Please ensure that you have Node.js and npm installed on your machine. ## Contributing We welcome contributions from anyone interested in improving Leftover Link. If you'd like to contribute, please follow these steps: 1. Fork the repository. 2. Create a new branch for your feature: `git checkout -b feature/your-feature-name` 3. Make your changes and commit them with descriptive messages: `git commit -am 'Add new feature'` 4. Push your changes to the branch: `git push origin feature/your-feature-name` 5. Open a pull request on the original repository. Please ensure that your contributions adhere to our code of conduct and align with the project's goals. ## License This project is licensed under the [MIT License](LICENSE). ## Contact If you have any questions or suggestions regarding Leftover Link, please feel free to reach out to us: - Varun Pasupuleti: vjz3qz@virginia.edu - Niket Anand: fcj9vk@virginia.edu - Darsh Devkar: smt3ft@virginia.edu -->
Leftover Link is a full-stack application aimed at reducing food waste and addressing hunger in our communities by connecting local restaurants with homeless shelters.
expressjs,javascript,mongodb,nodejs,reactjs
2023-05-23T03:00:02Z
2023-08-22T19:05:28Z
null
3
0
214
0
1
2
null
null
JavaScript
imgly/background-removal-js
main
# Background Removal in the Browser & Node.js ### 🚨 We are Hiring 🚨 We are currently hiring a (remote) Solutions Engineer / Advocate for Web (f/m/d). If you are working with our background removal library you might be a perfect fit! Apply at https://imgly.jobs.personio.com/job/1435044?language=en&display=en <p align="center"> <img src="https://storage.googleapis.com/imgly-static-assets/static/blog/github-releases/background-removal-free-plugin-app.jpg" alt="background removal js showcase" /> </p> Remove backgrounds from images directly in the browser or Node.js environment with ease and no additional costs or privacy concerns. Explore an [interactive demo](https://img.ly/showcases/cesdk/web/background-removal/web?utm_source=github&utm_medium=project&utm_campaign=vectorizer). ## Overview `@imgly/background-removal` is a powerful npm package that allows developers to seamlessly remove the background from images directly in the browser. `@imgly/background-removal-node` is a powerful npm package that allows developers to remove the background from images in Node.js. With its unique features and capabilities, this package offers an innovative and cost-effective solution for background removal tasks without compromising data privacy. ## Who is it for? `@imgly/background-removal` is ideal for developers and projects that require efficient and cost-effective background removal directly in the browser or Node.js. It caters to a wide range of use cases, including but not limited to: - _E-commerce applications_ that need to remove backgrounds from product images in real time. - _Image editing applications_ that require background removal capabilities for enhancing user experience. - _Web-based graphic design tools_ that aim to simplify the creative process with in-browser background removal. Whether you are a professional developer or a hobbyist, `@imgly/background-removal` empowers you to deliver impressive applications and services with ease. ## License The software is free for use under the AGPL License. Please contact [support@img.ly](mailto:support@img.ly?subject=Background-Removal%20License) for questions about other licensing options. ## Authors & Contributors This library is made by IMG.LY shipping the world's premier SDKs for building creative applications. Start your trial of the [CreativeEditor SDK](https://img.ly/products/creative-sdk?utm_source=github&utm_medium=project&utm_campaign=vectorizer), [PhotoEditor SDK](https://img.ly/products/photo-sdk?utm_source=github&utm_medium=project&utm_campaign=vectorizer) & [VideoEditor SDK](https://img.ly/products/video-sdk?utm_source=github&utm_medium=project&utm_campaign=vectorizer).
Remove backgrounds from images directly in the browser environment with ease and no additional costs or privacy concerns. Explore an interactive demo.
background-removal,javascript,open-source,typescript,image-matting,image-segmentation,onnx
2023-06-23T11:20:08Z
2024-05-22T16:06:57Z
null
12
42
66
43
334
5,343
null
AGPL-3.0
TypeScript
run-llama/LlamaIndexTS
main
# LlamaIndex.TS [![NPM Version](https://img.shields.io/npm/v/llamaindex)](https://www.npmjs.com/package/llamaindex) [![NPM License](https://img.shields.io/npm/l/llamaindex)](https://www.npmjs.com/package/llamaindex) [![NPM Downloads](https://img.shields.io/npm/dm/llamaindex)](https://www.npmjs.com/package/llamaindex) [![Discord](https://img.shields.io/discord/1059199217496772688)](https://discord.com/invite/eN6D2HQ4aX) LlamaIndex is a data framework for your LLM application. Use your own data with large language models (LLMs, OpenAI ChatGPT and others) in Typescript and Javascript. Documentation: https://ts.llamaindex.ai/ Try examples online: [![Open in Stackblitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/run-llama/LlamaIndexTS/tree/main/examples) ## What is LlamaIndex.TS? LlamaIndex.TS aims to be a lightweight, easy to use set of libraries to help you integrate large language models into your applications with your own data. ## Multiple JS Environment Support LlamaIndex.TS supports multiple JS environments, including: - Node.js (18, 20, 22) ✅ - Deno ✅ - Bun ✅ - React Server Components (Next.js) ✅ For now, browser support is limited due to the lack of support for [AsyncLocalStorage-like APIs](https://github.com/tc39/proposal-async-context) ## Getting started ```shell npm install llamaindex pnpm install llamaindex yarn add llamaindex jsr install @llamaindex/core ``` ### Node.js ```ts import fs from "fs/promises"; import { Document, VectorStoreIndex } from "llamaindex"; async function main() { // Load essay from abramov.txt in Node const essay = await fs.readFile( "node_modules/llamaindex/examples/abramov.txt", "utf-8", ); // Create Document object with essay const document = new Document({ text: essay }); // Split text and create embeddings. Store them in a VectorStoreIndex const index = await VectorStoreIndex.fromDocuments([document]); // Query the index const queryEngine = index.asQueryEngine(); const response = await queryEngine.query({ query: "What did the author do in college?", }); // Output response console.log(response.toString()); } main(); ``` ```bash # `pnpm install tsx` before running the script node --import tsx ./main.ts ``` ### Next.js First, you will need to add a llamaindex plugin to your Next.js project. ```js // next.config.js const withLlamaIndex = require("llamaindex/next"); module.exports = withLlamaIndex({ // your next.js config }); ``` You can combine `ai` with `llamaindex` in Next.js with RSC (React Server Components). ```tsx // src/apps/page.tsx "use client"; import { chatWithAgent } from "@/actions"; import type { JSX } from "react"; import { useFormState } from "react-dom"; // You can use the Edge runtime in Next.js by adding this line: // export const runtime = "edge"; export default function Home() { const [ui, action] = useFormState<JSX.Element | null>(async () => { return chatWithAgent("hello!", []); }, null); return ( <main> {ui} <form action={action}> <button>Chat</button> </form> </main> ); } ``` ```tsx // src/actions/index.ts "use server"; import { createStreamableUI } from "ai/rsc"; import { OpenAIAgent } from "llamaindex"; import type { ChatMessage } from "llamaindex/llm/types"; export async function chatWithAgent( question: string, prevMessages: ChatMessage[] = [], ) { const agent = new OpenAIAgent({ tools: [ // ... adding your tools here ], }); const responseStream = await agent.chat({ stream: true, message: question, chatHistory: prevMessages, }); const uiStream = createStreamableUI(<div>loading...</div>); responseStream .pipeTo( new WritableStream({ start: () => { uiStream.update("response:"); }, write: async (message) => { uiStream.append(message.response.delta); }, }), ) .catch(console.error); return uiStream.value; } ``` ### Cloudflare Workers ```ts // src/index.ts export default { async fetch( request: Request, env: Env, ctx: ExecutionContext, ): Promise<Response> { const { setEnvs } = await import("@llamaindex/env"); // set environment variables so that the OpenAIAgent can use them setEnvs(env); const { OpenAIAgent } = await import("llamaindex"); const agent = new OpenAIAgent({ tools: [], }); const responseStream = await agent.chat({ stream: true, message: "Hello? What is the weather today?", }); const textEncoder = new TextEncoder(); const response = responseStream.pipeThrough( new TransformStream({ transform: (chunk, controller) => { controller.enqueue(textEncoder.encode(chunk.response.delta)); }, }), ); return new Response(response); }, }; ``` ## Playground Check out our NextJS playground at https://llama-playground.vercel.app/. The source is available at https://github.com/run-llama/ts-playground ## Core concepts for getting started: - [Document](/packages/core/src/Node.ts): A document represents a text file, PDF file or other contiguous piece of data. - [Node](/packages/core/src/Node.ts): The basic data building block. Most commonly, these are parts of the document split into manageable pieces that are small enough to be fed into an embedding model and LLM. - [Embedding](/packages/core/src/embeddings/OpenAIEmbedding.ts): Embeddings are sets of floating point numbers which represent the data in a Node. By comparing the similarity of embeddings, we can derive an understanding of the similarity of two pieces of data. One use case is to compare the embedding of a question with the embeddings of our Nodes to see which Nodes may contain the data needed to answer that quesiton. Because the default service context is OpenAI, the default embedding is `OpenAIEmbedding`. If using different models, say through Ollama, use this [Embedding](/packages/core/src/embeddings/OllamaEmbedding.ts) (see all [here](/packages/core/src/embeddings)). - [Indices](/packages/core/src/indices/): Indices store the Nodes and the embeddings of those nodes. QueryEngines retrieve Nodes from these Indices using embedding similarity. - [QueryEngine](/packages/core/src/engines/query/RetrieverQueryEngine.ts): Query engines are what generate the query you put in and give you back the result. Query engines generally combine a pre-built prompt with selected Nodes from your Index to give the LLM the context it needs to answer your query. To build a query engine from your Index (recommended), use the [`asQueryEngine`](/packages/core/src/indices/BaseIndex.ts) method on your Index. See all query engines [here](/packages/core/src/engines/query). - [ChatEngine](/packages/core/src/engines/chat/SimpleChatEngine.ts): A ChatEngine helps you build a chatbot that will interact with your Indices. See all chat engines [here](/packages/core/src/engines/chat). - [SimplePrompt](/packages/core/src/Prompt.ts): A simple standardized function call definition that takes in inputs and formats them in a template literal. SimplePrompts can be specialized using currying and combined using other SimplePrompt functions. ## Tips when using in non-Node.js environments When you are importing `llamaindex` in a non-Node.js environment(such as React Server Components, Cloudflare Workers, etc.) Some classes are not exported from top-level entry file. The reason is that some classes are only compatible with Node.js runtime,(e.g. `PDFReader`) which uses Node.js specific APIs(like `fs`, `child_process`, `crypto`). If you need any of those classes, you have to import them instead directly though their file path in the package. Here's an example for importing the `PineconeVectorStore` class: ```typescript import { PineconeVectorStore } from "llamaindex/storage/vectorStore/PineconeVectorStore"; ``` As the `PDFReader` is not working with the Edge runtime, here's how to use the `SimpleDirectoryReader` with the `LlamaParseReader` to load PDFs: ```typescript import { SimpleDirectoryReader } from "llamaindex/readers/SimpleDirectoryReader"; import { LlamaParseReader } from "llamaindex/readers/LlamaParseReader"; export const DATA_DIR = "./data"; export async function getDocuments() { const reader = new SimpleDirectoryReader(); // Load PDFs using LlamaParseReader return await reader.loadData({ directoryPath: DATA_DIR, fileExtToReader: { pdf: new LlamaParseReader({ resultType: "markdown" }), }, }); } ``` > _Note_: Reader classes have to be added explictly to the `fileExtToReader` map in the Edge version of the `SimpleDirectoryReader`. You'll find a complete example with LlamaIndexTS here: https://github.com/run-llama/create_llama_projects/tree/main/nextjs-edge-llamaparse ## Supported LLMs: - OpenAI GPT-3.5-turbo and GPT-4 - Anthropic Claude 3 (Opus, Sonnet, and Haiku) and the legacy models (Claude 2 and Instant) - Groq LLMs - Llama2/3 Chat LLMs (70B, 13B, and 7B parameters) - MistralAI Chat LLMs - Fireworks Chat LLMs ## Contributing: We are in the very early days of LlamaIndex.TS. If you’re interested in hacking on it with us check out our [contributing guide](/CONTRIBUTING.md) ## Bugs? Questions? Please join our Discord! https://discord.com/invite/eN6D2HQ4aX
LlamaIndex is a data framework for your LLM applications
agent,anthr,chatbot,claude,claude-ai,embedding,firewo,groq-ai,javascript,llama
2023-06-13T06:41:20Z
2024-05-23T16:27:04Z
2024-05-22T09:32:48Z
62
685
1,390
62
280
1,428
null
MIT
TypeScript
hepengwei/visualization-collection-vue
master
<h1 align="center">visualization-collection-vue</h1> <div align="center"> 一个专注于前端视觉效果的集合应用,包含CSS动效、Canvas动画、Three.js3D、人工智能应用等上百个案例(Vue版本) </div> ## 在线体验(PC端) #### 体验地址:[http://hepengwei.cn](http://hepengwei.cn) #### React版本:[https://github.com/hepengwei/visualization-collection](https://github.com/hepengwei/visualization-collection) <br/> ## 应用展示(部分效果) * 视觉设计 <img src="./src/images/readme/visualDesign.gif" alt="" width={1200}/> * 交互设计 <img src="./src/images/readme/interactiveDesign1.gif" alt="" width={1200}/> <img src="./src/images/readme/interactiveDesign2.gif" alt="" width={1200}/> <img src="./src/images/readme/interactiveDesign3.gif" alt="" width={1200}/> * Canvas动效 <img src="./src/images/readme/canvas1.gif" alt="" width={1200}/> <img src="./src/images/readme/canvas2.gif" alt="" width={1200}/> <img src="./src/images/readme/canvas3.gif" alt="" width={1200}/> <img src="./src/images/readme/canvas4.gif" alt="" width={1200}/> <img src="./src/images/readme/canvas5.gif" alt="" width={1200}/> ## 持续更新,敬请关注
🌈 一个专注于前端视觉效果的集合应用,包含CSS动效、Canvas动画、Three.js3D、人工智能应用等上百个案例(Vue版本)
canvas,collection,css3,frontend,javascript,typescript,visualization,vue3,vite,vue-router4
2023-06-16T02:09:40Z
2024-04-26T06:04:56Z
null
1
39
85
0
101
600
null
MIT
Vue
sqids/sqids-javascript
main
# [Sqids JavaScript](https://sqids.org/javascript) [![npm version](https://img.shields.io/npm/v/sqids.svg)](https://www.npmjs.com/package/sqids) [![Downloads](https://img.shields.io/npm/dm/sqids)](https://www.npmjs.com/package/sqids) [Sqids](https://sqids.org/javascript) (*pronounced "squids"*) is a small library that lets you **generate unique IDs from numbers**. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups. Features: - **Encode multiple numbers** - generate short IDs from one or several non-negative numbers - **Quick decoding** - easily decode IDs back into numbers - **Unique IDs** - generate unique IDs by shuffling the alphabet once - **ID padding** - provide minimum length to make IDs more uniform - **URL safe** - auto-generated IDs do not contain common profanity - **Randomized output** - Sequential input provides nonconsecutive IDs - **Many implementations** - Support for [40+ programming languages](https://sqids.org/) ## 🧰 Use-cases Good for: - Generating IDs for public URLs (eg: link shortening) - Generating IDs for internal systems (eg: event tracking) - Decoding for quicker database lookups (eg: by primary keys) Not good for: - Sensitive data (this is not an encryption library) - User IDs (can be decoded revealing user count) ## 🚀 Getting started Install Sqids via: ```bash yarn add sqids ``` ## 👩‍💻 Examples Simple encode & decode: ```javascript const sqids = new Sqids() const id = sqids.encode([1, 2, 3]) // "86Rf07" const numbers = sqids.decode(id) // [1, 2, 3] ``` > **Note** > 🚧 Because of the algorithm's design, **multiple IDs can decode back into the same sequence of numbers**. If it's important to your design that IDs are canonical, you have to manually re-encode decoded numbers and check that the generated ID matches. Enforce a *minimum* length for IDs: ```javascript const sqids = new Sqids({ minLength: 10, }) const id = sqids.encode([1, 2, 3]) // "86Rf07xd4z" const numbers = sqids.decode(id) // [1, 2, 3] ``` Randomize IDs by providing a custom alphabet: ```javascript const sqids = new Sqids({ alphabet: 'FxnXM1kBN6cuhsAvjW3Co7l2RePyY8DwaU04Tzt9fHQrqSVKdpimLGIJOgb5ZE', }) const id = sqids.encode([1, 2, 3]) // "B4aajs" const numbers = sqids.decode(id) // [1, 2, 3] ``` Prevent specific words from appearing anywhere in the auto-generated IDs: ```javascript const sqids = new Sqids({ blocklist: new Set(['86Rf07']), }) const id = sqids.encode([1, 2, 3]) // "se8ojk" const numbers = sqids.decode(id) // [1, 2, 3] ``` ## 📝 License [MIT](LICENSE)
Official JavaScript port of Sqids. Generate short unique IDs from numbers.
id-generator,javascript,sqids,typescript,hashids,short-id,short-url,unique-id,unique-id-generator,id
2023-06-24T15:27:15Z
2024-02-10T17:06:40Z
2023-09-08T23:29:23Z
5
8
31
2
12
558
null
MIT
TypeScript
ArhanChaudhary/NAND
main
<p align="center"> <img src="media/logo.png" width="200"> </p> <hr> <!-- cSpell:disable --> <b>N</b> ot\ <b>A</b> \ <b>N</b> and-powered\ <b>D</b> evice <!-- cSpell:enable --> is a Turing equivalent 16-bit computer made entirely from a [clock](https://en.wikipedia.org/wiki/Clock_rate) and [NAND gates](https://en.wikipedia.org/wiki/NAND_gate) emulated on the web. NAND features its own CPU, machine code language, assembly language, assembler, virtual machine language, virtual machine translator, programming language, compiler, IDE, and user interface. NAND is based on the Jack-VM-Hack platform specified in the [Nand to Tetris course](https://www.nand2tetris.org) and its [associated book](https://www.amazon.com/Elements-Computing-Systems-second-Principles-dp-0262539802/dp/0262539802/ref=dp_ob_title_bk). [Video demo of NAND](https://github.com/ArhanChaudhary/NAND/assets/57512390/7bedf191-d42c-4553-920f-01a539161bd3) ### Table of Contents - [Example programs](#example-programs) - [Average](#average) - [Pong](#pong) - [2048](#2048) - [Overflow](#overflow) - [SecretPassword](#secretpassword) - [GeneticAlgorithm](#geneticalgorithm) - [Writing programs for NAND](#writing-programs-for-nand) - [Jack Introduction](#jack-introduction) - [Custom Data Types](#custom-data-types) - [Weak Type Coercions](#weak-type-coercions) - [Manual Memory Management](#manual-memory-management) - [Undefined Behavior](#undefined-behavior) - [Operator Priority](#operator-priority) - [Lesser and Greater than Operators](#lesser-and-greater-than-operators) - [-32768](#-32768) - [Calling a Function with Too Few Arguments](#calling-a-function-with-too-few-arguments) - [Improper Type Casting](#improper-type-casting) - [Stack Overflows](#stack-overflows) - [Modifying Stack Frames or Internal Registers](#modifying-stack-frames-or-internal-registers) - [Hardware Specification](#hardware-specification) - [Beyond the Jack OS](#beyond-the-jack-os) - [How does NAND work?](#how-does-nand-work) - [Jack Reference](#jack-reference) - [Program Structure](#program-structure) - [Syntax](#syntax) - [Variables](#variables) - [Statements](#statements) - [Jack OS Reference](#jack-os-reference) - [Array](#array) - [Keyboard](#keyboard) - [Math](#math) - [Memory](#memory) - [Output](#output) - [Screen](#screen) - [String](#string) - [Sys](#sys) - [Error Codes](#error-codes) - [FAQ](#faq) - [Whoa, is *everything* made from NAND gates?](#whoa-is-everything-made-from-nand-gates) - [Did you design NAND by yourself?](#did-you-design-nand-by-yourself) - [If there's only one type, what is the point of specifying types at all?](#if-theres-only-one-type-what-is-the-point-of-specifying-types-at-all) - [Why does the IDE feel finnicky?](#why-does-the-ide-feel-finnicky) # Example programs ### Average A simple program that inputs some numbers and computes their average, showing off control flow, arithmetic operations, I/O, and dynamic memory allocation. Program output: ``` How many numbers? 4 Enter a number: 100 Enter a number: 42 Enter a number: 400 Enter a number: 300 The average is 210 ``` *This program was supplied by the Nand to Tetris software suite.* ### Pong The game of Pong, showing off the language's object-oriented model. Use the arrow keys to move the paddle left and right to bounce a ball. Every bounce, the paddle becomes smaller, and the game ends when the ball hits the bottom of the screen. *This program was supplied by the Nand to Tetris software suite.* ### 2048 The game of 2048, showing off recursion and complex application logic. Use the arrow keys to move the numbers around the 4x4 grid. The same numbers combine into their sum when moved into each other. Once the 2048 tile is reached, you win the game, though you can keep playing on until you lose. You lose the game when the board is full and you can't make any more moves. ### Overflow A program that deliberately causes a stack overflow via infinite recursion to perform a [virtual machine escape](https://en.wikipedia.org/wiki/Virtual_machine_escape). It leverages the fact that there are no runtime checks to prevent a stack overflow. No other modern platform will let you do this :-) Upon running, the program will constantly print the stack pointer to the screen. Once this displayed value exceeds 2048, the stack will have reached the end of its intended memory space and spill onto the heap memory space, causing the print statement to malfunction in explosive fashion: <img src="media/overflow.png" width="700"> Two things of noteworthy interest are worth pointing out. If you reload the page and run this program on an empty RAM (a RAM full of zeroes), you will notice that the program resets itself halfway through its execution despite not pressing the "Reset" button. Why this happens is simple: the jailbroken runtime executes an instruction that sets the [program counter](https://en.wikipedia.org/wiki/Program_counter)'s value to 0, effectively telling the program to jump to the first instruction and start over. If you run the GeneticAlgorithm example program and then run this immediately afterwards, the program in its rampage reads old RAM memory that was simply never overwritten. <img src="media/old_memory.png" width="700"> ### SecretPassword A program that exploits the fact that the runtime doesn't prevent [stack smashing](https://en.wikipedia.org/wiki/Stack_buffer_overflow) to call a function that would otherwise be inaccessible. In order to understand how this works, let's examine this illustration of NAND's stack frame layout. <img src="media/stack_layout.png" width="700"> *taken from the [Nand to Tetris book](https://www.amazon.com/Elements-Computing-Systems-second-Principles-dp-0262539802/dp/0262539802/ref=dp_ob_title_bk).* If you're unfamiliar with stack layouts, here's the main idea behind the exploit. Whenever a function returns, it needs to know where (which machine code instruction memory address) it should go to proceed with execution flow. So, when the function is first called, this memory address, along with some other unimportant data, is temporarily stored on the stack in a memory region referred to as the [stack frame](https://en.wikipedia.org/wiki/Call_stack#STACK-FRAME) as a reference for where to return. The illustration describes the exact position of this return address relative to the function call, a position that can be reverse engineered. The program enables the user to overwrite a single memory address in the RAM to any value. Putting two and two together, if the user were to overwrite the return address of a stack frame with the address of another function, they essentially gain the ability to execute arbitrary code included in the program. Indeed, if you enter 267 as the memory location and 1715 as the value to overwrite, two numbers reverse engineered by manually inspecting the stack memory space and the assembler, you'll see this idea in working action. <img src="media/secret_password.png" width="700"> This isn't a vulnerability unique to NAND. [It exists in C as well](https://en.wikipedia.org/wiki/Buffer_overflow)! How cool! ### GeneticAlgorithm Believe it or not, out of the many, *many* different components of NAND, this single-handedly took the longest to develop! This program is a creature simulation that utilizes simple machine learning. It follows the artificial intelligence coded series (parts <a href="https://www.youtube.com/watch?v=VnwjxityDLQ">one</a> and <a href="https://www.youtube.com/watch?v=BOZfhUcNiqk">two</a>) from <a href="https://www.youtube.com/@CodeBullet">Code Bullet</a>. Make sure to check out his channel, he makes some really cool stuff! [Video demo of the Genetic Algorithm program](https://github.com/ArhanChaudhary/ArhanChaudhary/assets/57512390/c0ecf5e9-26d0-4367-a1a9-0ed2ebc4098d) Simply explained: Every dot has its own "brain" of acceleration vectors, and they evolve to reach a goal through natural selection. Every generation, dots that "die" closer to the goal are more likely to be selected as the parents for the next generation. Reproduction inherently causes some of the brain to mutate, wholly effectively simulating natural evolution. Nevertheless, there is much to be desired. Due to performance, the only factor dots use to evolve is their closeness to the goal upon death, endowing the natural selection algorithm with low entropy. Due to memory usage, there are smaller than satisfactory limits on the number of dots and the sizes of their brains. Lastly, due to technical complexity, re-placing obstacles during the simulation does not guarantee that the dots will have large enough brains to reach the goal. Brain sizes are only determined at the beginning of the program. I've utilized a myriad of optimization techniques to snake around the following hardware restrictions and make this possible: - NAND has a limited ROM memory space, meaning the program won't compile if there's too much code. In fact, the final version of this program uses 99.2% of the instruction memory space. - NAND has a limited RAM memory space, meaning the program has to be careful to optimize heap memory usage. In fact, the reason why the screen fills with static between generations is to use the screen memory space as temporary swap memory for the next generation — the RAM is already completely full! - NAND has no floating point type (decimal numbers) and can only represent the integers between -32768 and 32767, making calculating fitness less precise and more challenging to implement. [Integer overflows](https://en.wikipedia.org/wiki/Integer_overflow) must also be accounted for. To avoid beating around the bush, I've stuck to documenting these techniques and additional insights in this program's <a href="src/example-programs/GeneticAlgorithm">codebase</a> for those interested. # Writing programs for NAND **Before we start, the most important detail to remember about writing programs in Jack is that there is no operator priority; this is probably why your program isn't working.** For example, you should change: \ `4 * 2 + 3` to `(4 * 2) + 3` \ `if (~x & y)` to `if ((~x) & y)` but you can keep `if (y & ~x)` the same as there is no operator ambiguity. Without parenthesis, the evaluation value of an ambiguous expression is **undefined**. ### Jack Introduction NAND boasts its own complete tech stack. As a consequence, NAND can only be programmed in Jack, its weakly typed object-oriented programming language. In layman's terms, Jack is C with Java's syntax. Let's take the approach of example-based learning and dive right in. ```js /** * This program prompts the user to enter a phrase * and an energy level. Program output: * * Whats on your mind? Superman * Whats your energy level? 3 * Superman! * Superman! * Superman! */ class Main { function void main() { var String s; var int energy, i; let s = Keyboard.readLine("Whats on your mind? "); let energy = Keyboard.readInt("Whats your energy level? "); let i = 0; let s = s.appendChar(33); // Appends the character '!' while (i < energy) { do Output.printString(s); do Output.println(); let i = i + 1; } } } ``` *taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1CAGF8d3pDIOgqX8NZGzU34PPEzvfTYrk/view).* If you've already had some experience with programming, this should look very familiar; it is clear that Jack was heavily inspired by Java. `Main.main`, the entry point to the program, demonstrates basic usage of variables as well as the while loop for control flow. Additionally, it uses `Keyboard.readLine` and `Keyboard.readInt` to read input from the user, and `Output.printString` and `Output.println` to print output to the screen — all of which are defined in detail in the [Jack OS Reference](#jack-os-reference). By default, the Jack OS is bundled with your program during compilation to enable interfacing with strings, memory, hardware, and more. ### Custom Data Types Every programming language has a fixed set of primitive data types. Jack supports three: `int`, `char`, and `boolean`. You can extend this basic repertoire with your own abstract data types as needed. Prior knowledge about [object-oriented programming](https://en.wikipedia.org/wiki/Object-oriented_programming) directly carries over to this section. <!-- cSpell:disable --> ```js /** Represents a point in 2D plane. */ class Point { // The coordinates of the current point instance: field int x, y; // The number of point objects constructed so far: static int pointCount; /** Constructs a point and initializes it with the given coordinates */ constructor Point new(int ax, int ay) { let x = ax; let y = ay; let pointCount = pointCount + 1; return this; } /** Returns the x coordinate of the current point instance */ method int getx() { return x; } /** Returns the y coordinate of the current point instance */ method int gety() { return y; } /** Returns the number of Points constructed so far */ function int getPointCount() { return pointCount; } /** Returns a point which is this point plus the other point */ method Point plus(Point other) { return Point.new(x + other.getx(), y + other.gety()); } /** Returns the Euclidean distance between the current point instance and the other point */ method int distance(Point other) { var int dx, dy; let dx = x - other.getx(); let dy = y - other.gety(); return Math.sqrt((dx * dx) + (dy * dy)); } /** Prints the current point instance, as "(x, y)" */ method void print() { var String tmp; let tmp = "("; do Output.printString(tmp); do tmp.dispose(); do Output.printInt(x); let tmp = ", "; do Output.printString(tmp); do tmp.dispose(); do Output.printInt(y); let tmp = ")"; do Output.printString(tmp); do tmp.dispose(); } } ``` ```js var Point p1, p2, p3; let p1 = Point.new(1, 2); let p2 = Point.new(3, 4); let p3 = p1.plus(p2); do p3.print(); // prints (4, 6) do Output.println(); do Output.printInt(p1.distance(p2)); // prints 5 do Output.println(); do Output.printInt(getPointCount()); // prints 3 ``` *taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1CAGF8d3pDIOgqX8NZGzU34PPEzvfTYrk/view).* We define a `Point` class to represent an abstract point in space. It uses `field` variables to declare per-instance attributes of the data type. It exposes public `method` functions we can use to interface with the point, giving the caller the functionality to add two points together and calculate the distance between two points. All `field` variables are privately scoped. If you wish to get or set these variables from outside the class declaration, these variables must have corresponding `method` functions to provide this functionality. Omitted from the code sample to stay on-topic, it is customary for data classes to define `dispose` methods for deallocation once objects are no longer needed. See [Manual Memory Management](#manual-memory-management). If needed, here's a reference for `function` and `method` calling syntax. <!-- cSpell:enable --> ```js class Foo { ... method void f() { var Bar b; // Declares a local variable of class type Bar var int i; // Declares a local variable of primitive type int do g(); // Calls method g of the current class on the current object instance // Note: Cannot be called from within a function (static method) do Foo.p(3); // Calls function p of the current class; // Note: A function call must be preceded by the class name do Bar.h(); // Calls function h of class Bar let b = Bar.r(); // Calls function or constructor r of class Bar do b.q(); // Calls method q of class Bar on the b object } } ``` *taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1CAGF8d3pDIOgqX8NZGzU34PPEzvfTYrk/view).* ### Weak Type Coercions Remember how we said Jack was similar to Java? That was a facade, or at best misleading. While Java is strongly-typed and as such supports complex type features such as down casting, polymorphism, and inheritance, Jack supports none of these and only has one type under the hood: the signed 16-bit integer. This is the primary reason why Jack is so weakly-typed. In effect, the compiler won't care if you mix and match different types in assignments and operations. ```js var char c; var String s; let c = 65; // 'A' // Equivalently let s = "A"; let c = s.charAt(0); ``` ```js var Array a; let a = 5000; let a[100] = 77; // RAM[5100] = 77 ``` ```js var Array arr; var String helloWorld; let helloWorld = "Hello World!" let arr = Array.new(4); // Arrays are not strictly typed let arr[0] = 12; let arr[1] = false; let arr[2] = Point.new(5, 6); let arr[3] = helloWorld; ``` ```js class Complex { field int real; field int imaginary; ... } ... var Complex c; var Array a; let a = Array.new(2); let a[0] = 7; let a[1] = 8; let c = a; // c == Complex(7, 8) // Works because it matches the memory layout // of the Complex type ``` *all code segments taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1CAGF8d3pDIOgqX8NZGzU34PPEzvfTYrk/view).* Don't take this the wrong way — Jack still provides a powerful and functional object-oriented model. This insight intends to help you understand when and how you should perform type conversions as needed. ### Manual Memory Management Let's say you're a crazy cat lover, just like me! And you wanted to write this program to show off just how much you absolutely adore cats. ```js class Main { function void main() { while (true) { do Output.printString("Kittens are so adorable! "); } } } ``` You may be startled to notice that after a few seconds, the program will crash with "ERR6", or a [heap overflow](https://en.wikipedia.org/wiki/Heap_overflow)! Jack is a [manually memory managed](https://en.wikipedia.org/wiki/Manual_memory_management) programming language. This means you must be vigilant to properly deallocate memory that is no longer needed, or else the Jack OS will think otherwise and facilitate a [memory leak](https://en.wikipedia.org/wiki/Memory_leak). The best practice advice is to feature a `dispose` method for each class that represents an object that properly encapsulates this deallocation. Thus, when objects are no longer needed, you can call their `dispose` methods to ensure you won't eventually run out of heap memory. If you've programmed in other manually memory managed languages, like C, this should look very familiar. One key difference is the Jack OS stores arrays and strings on the heap rather than on the stack, hinting to why the program crashes with a heap overflow. Let's fix this program for our fellow feline fanatics. ```js class Main { function void main() { var String s; while (true) { let s = "Kittens are so adorable! "; do Output.printString(s); do s.dispose(); } } } ``` Alternatively, you could allocate memory for the string only once. ```js class Main { function void main() { var String s; let s = "Kittens are so adorable! "; while (true) { do Output.printString(s); } } } ``` You'll notice that not only do these alternative versions print the string much faster, but this time they'll actually print forever! Hooray! Let's quickly peek into `String.dispose` so you can better understand how to write your own `dispose` methods. ```js method void dispose() { do stringArray.dispose(); do Memory.deAlloc(this); } ``` `Array.dispose` called by `stringArray` ```js method void dispose() { do Memory.deAlloc(this); } ``` Proper `dispose` methods must first appropriately call `dispose` on their field variables and then finish with `do Memory.deAlloc(this);` to deallocate the object instance itself. ### Undefined Behavior With how primitive Jack and NAND are, footguns within the language are inevitable. I've compiled the following instances of undefined behavior you should be aware of, ordered from (in my opinion) most important to least important. #### Operator Priority I found this caveat to be so important that I've moved it towards the [beginning of this section](#writing-programs-for-nand). #### Lesser and Greater than Operators The Jack expressions ```js a > b a < b ``` are deceptively simple. They aren't always mathematically correct, and are respectively equivalent to the Java expressions ```js ((a - b) & (1 << 15)) == 0 && a != b ((a - b) & (1 << 15)) != 0 ``` What's up with the nuance? The virtual machine implementation converts `a > b` to `a - b > 0`. Here's the problem: `a - b` can [overflow](https://en.wikipedia.org/wiki/Integer_overflow) :( What does `20000 > -20000` evaluate to? The virtual machine transpiles this to `20000 - (-20000) > 0` which evaluates to `-25336 > 0`. Unfortunately, the answer is `false`. However, `20000 > -10000` evaluates to `30000 > 0`, or `true`. As you may have figured, if the absolute distance between `a` and `b` is more than 32767, `a > b` and `a < b` are wrong. Otherwise, you're fine. This isn't an implementation bug, but rather an inconsistency with Nand to Tetris itself. More about it [here](http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Project-7-gt-and-lt-behavior-not-clearly-specified-for-signed-operands-td4036926.html#google_vignette). For compatibility reasons, this behavior won't be fixed. #### -32768 -32768 is one of its kind. It is the only number that holds the property such that -(-32768) = -32768, a singleton without a positive counterpart<sup>*</sup>. This can lead to unsoundness and logic errors. ```js /** * Program output: * --.)*( */ class Main { function void main() { // Note that -32768 must instead be written as ~32767 // because the CPU can't load a number that large do Output.printInt(~32767); } } ``` `Output.printInt` internally expects `Math.abs` to return a positive number. This isn't the case with -32768, so the Jack OS malfunctions. Your main concern should be handling logic errors with the negative operator. As the programmer, if you want to guarantee the negative of a negative number is positive, it is your responsibility to check for the case of -32768 and take appropriate action. <span id="note-1">*</span> This holds true because NAND's ALU internally processes the Jack expression `-x` as `~(x - 1)`. Let's set `x` to `-32768` and evaluate it step by step. Here are the corresponding 16-bit [two's complement](https://en.wikipedia.org/wiki/Two%27s_complement) binary representations of the computation: `x` = `1000 0000 0000 0000` \ `x - 1` = `0111 1111 1111 1111` \ `~(x - 1)` = `1000 0000 0000 0000` = `x` It's the same thing! What happened here? Because NAND is a 16-bit machine, -32768 is the only number such that if you subtract one from it, you get its flipped bits. In other words, -32768 satisfies `x - 1 = ~x`, simplifying the expression to `~(~x)` or just `x`. #### Calling a Function with Too Few Arguments This one is self-explanatory, so here's a brief demonstration. ```js /** * Program output: * I have 818 cookies. */ class Main { function void main() { do Main.cookies(); } function void cookies(int a) { do Output.printString("I have "); do Output.printInt(a); do Output.printString(" cookies."); } } ``` On the other hand, calling a function with too *many* arguments is perfectly valid. You can use the `arguments` keyword to index extra function arguments. Note that there is no indicator for the argument count. #### Improper Type Casting You can utilize `Array` to cast a variable into any other type. Calling instance methods that don't exist on type casted variables is undefined behavior; the compiler isn't smart enough to realize when you're doing this. ```js /** * Program output: * 4 */ class Main { constructor Main new() { return this; } function void main() { var Array a; var Main b; var String c; let a = Array.new(1); let b = Main.new(); let a[0] = b; let c = a[0]; // Invalidly calling `String.length` on an instance of `Main`. do Output.printInt(c.length()); } } ``` #### Stack Overflows See the [Overflow](#overflow) program for an in-depth example. #### Modifying Stack Frames or Internal Registers Modifying stack frames or the internal registers that respectively reside at memory addresses `256` to `2047` and `1` to `15` may lead to undefined behavior. This typically isn't possible without misusing `Memory.poke` or negative array indexing. See the [SecretPassword](#secretpassword) program for an in-depth example. ### Hardware Specification Since its rise in the 1970s, there's a good reason why 16-bit computing has fallen from grace in the modern era. Compared to 32-bit or 64-bit computing, 16-bit computing offered limited processing power and memory capacity that simply weren't meeting the demands of contemporary software and applications. NAND is no exception to this reality. <img src="media/memory_layout.png" width="700"> *taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1BexrNmdqYhKPkqD_Y81qNAUeyfzl-ZtO/view).* Compared to your 16 GiB MacBook, NAND enjoys a meager 4 KiB of RAM, a ratio of *0.00002%*! In spite of this, [it was enough to take us to the moon](https://www.metroweekly.com/2014/07/to-the-moon-and-back-on-4kb-of-memory/), so who's to say NAND can't either. The Jack OS reserves 14,336 memory addresses of the 4 KiB for the heap, a number that is abnormally small. This is why it's so important to ensure complex Jack applications allocate and deallocate their memory efficiently. If you're overly ambitious, you might run out of heap memory and be forced to completely rewrite your data types and logic. The hardware reserves 8,192 memory addresses of the 4 KiB for the screen. Each bit of each address linearly maps to a corresponding pixel on the provided 512x256 screen, in [LSb 0 bit numbering](https://en.wikipedia.org/wiki/Bit_numbering#LSb_0_bit_numbering). The hardware reserves memory address 24,576 for the keyboard, at which the currently pressed key is reflected. Though, you shouldn't directly access this location to handle user input. You should use the provided [Keyboard](#keyboard) class from the Jack OS and its associated functions. NAND's keyboard recognizes all ASCII characters, as well as the following keys. * new line = 128 = `String.newline()` * backspace = 129 = `String.backSpace()` * left arrow = 130 * up arrow = 131 * right arrow = 132 * down arrow = 133 * home = 134 * end = 135 * page up = 136 * page down = 137 * insert = 138 * delete = 139 * ESC = 140 * F1 - F12 = 141 - 152 Lastly, the hardware reserves 240 memory addresses for static class variables and 1,792 memory addresses for the global stack. Unless you perform deep recursion, you probably won't find these limitations troublesome. ### Beyond the Jack OS By default, the Jack OS is bundled with your program during compilation to enable interfacing with strings, memory, hardware, and more. To the extraordinarily dedicated, it is possible to provide your own OS implementation with your own hardware interfaces. The IDE treats Jack OS files the same as typical program files; they can likewise be deleted or overwritten. There are a few core functions you *must* implement for your program to compile if you choose to do so. You're free to copy my implementations of these functions as needed. `Sys.init`: rather than `Main.main`, this is the *real* entry point of the program, hardcoded in the virtual machine implementation. For context, the provided Jack OS implementation looks like this: ```js function void init() { do Memory.init(); do Math.init(); do Screen.init(); do Screen.clearScreen(); do Output.init(); do Main.main(); do Sys.halt(); } ``` `Memory.alloc`: A heap memory allocator internally used by class constructors to create objects. NAND inherently places emphasis on the heap for data storage, so this function is useful in many other contexts too. `String.newWithStr`: An internal constructor for string literals. `Math.multiply`: This function is internally called in lieu of the multiplication operator `*`. In other words, the Jack expression `x * y` and `Math.multiply(x, y)` are equivalent. `Math.divide`: This function is internally called in lieu of the floored division operator `/`. In other words, the Jack expression `x / y` and `Math.divide(x, y)` are equivalent. # How does NAND work? I'm glad you asked! I've found the following illustrations quite illuminating: <img src="media/computer.png" width="700"> *taken from [Wikipedia](https://commons.wikimedia.org/wiki/File:Hack_Computer_Block_Diagram_2.png).* The NAND computer follows the [Harvard architecture](https://en.wikipedia.org/wiki/Harvard_architecture). That is, the instruction memory (ROM) and the data memory (RAM) are separately stored, brought to function in unison by the CPU. <img src="media/cpu.png" width="700"> *taken from [Wikipedia](https://commons.wikimedia.org/wiki/File:Hack_Computer_Block_Diagram_2.png).* NAND's CPU is an [accumulator machine](https://en.wikipedia.org/wiki/Accumulator_(computing)#Accumulator_machines), meaning that it is heavily dependent on its built-in registers for control flow (in this case the accumulator is the D register). Don't worry if you don't fully understand what the CPU visualization depicts. Instead, take the perspective of appreciation for how this elegantly simple design powers the entirety of NAND — in your web browser! <img src="media/alu.png" width="700"> *taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1Z_fxYmmRNXTkAzmZ6YMoX9NXZIRVCKiw/view).* We've reached the instruction set, the nitty-gritty. As indicated, NAND's CPU only has *two* opcodes! This makes the instruction set relatively simple while providing a rich functionality. NAND's ALU is additionally specified with the expressions it can compute in a single instruction. Phew! That was a lot to take in, but I promise you NAND is far less complicated than I've made it out to be. From a relatively simple logical foundation, Turing equivalence is achieved! If you want see my implementation of the NAND computer architecture, [you're more than welcome to](src/core)! If you find yourself still curious, check out the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1Z_fxYmmRNXTkAzmZ6YMoX9NXZIRVCKiw/view) for further elaboration on every aspect of the architecture. Let's briefly talk about the compiler and the virtual machine to make this section feel complete. These concepts are nothing unique to NAND, hence their brevity. Some of NAND's strange syntactical features are a direct consequence of making the compiler easier to implement. The compiler is a [recursive descent parser](https://en.wikipedia.org/wiki/Recursive_descent_parser) on an [LL(1) grammar](https://en.wikipedia.org/wiki/LL_parser), generating virtual machine code to be utilized as a [simple stack machine](https://en.wikipedia.org/wiki/Stack_machine) (a technique that also handles managing [call stacks](https://en.wikipedia.org/wiki/Call_stack)). Each virtual machine instruction is then trivially mapped to assembly and machine code. Once again, you're more than welcome to see my [compiler implementation](src/compiler) for yourself. # Jack Reference This majority of this section was taken from the [Nand to Tetris lecture slides](https://drive.google.com/file/d/1CAGF8d3pDIOgqX8NZGzU34PPEzvfTYrk/view) and the [National Taiwan University lecture slides](https://www.csie.ntu.edu.tw/~cyy/courses/introCS/18fall/lectures/handouts/lec13_Jack.pdf). ### Program Structure <pre> <b>class</b> ClassName { <b>field</b> <i>variable declarations</i>; <b>static</b> <i>variable declarations</i>; <b>constructor</b> <i>type</i> ( <i>parameterList</i> ) { <i>local variable declarations</i>; <i>statements</i> } <b>method</b> <i>type</i> ( <i>parameterList</i> ) { <i>local variable declarations</i>; <i>statements</i> } <b>function</b> <i>type</i> ( <i>parameterList</i> ) { <i>local variable declarations</i>; <i>statements</i> } } </pre> About this layout: - Every part in this layout can appear 0 or more times - The order of the field / static declarations is arbitrary - The order of the subroutine declarations is arbitrary - Each type is either `void`, `int`, `boolean`, `char`, or a class name A Jack program: - Defines classes in separate files - Consists of a collection of one or more classes, one of which must be named `Main` - Must define the `main` function in the `Main` class, the entry point of the program defined by the Jack OS ### Syntax <table> <tbody> <tr> <th>White space and comments</th> <td> Space characters, newline characters, and comments are ignored.<br> <br> The following comment formats are supported:<br> <code>// Comment to end of line</code><br> <code>/* Comment until closing */</code><br> <code>/** API documentation comment */</code> </td> </tr> <tr> <th>Symbols</th> <td> <table> <tbody> <tr> <th align="left"> <code>(</code>&nbsp;<code>)</code> </th> <td> Used for grouping arithmetic expressions and for enclosing parameter-lists and argument-lists </td> </tr> <tr> <th align="left"> <code>[</code>&nbsp;<code>]</code> </th> <td> Used for array indexing </td> </tr> <tr> <th align="left"> <code>{</code>&nbsp;<code>}</code> </th> <td> Used for grouping program units and statements </td> </tr> <tr> <th align="left"> <code>,</code> </th> <td> Variable list separator </td> </tr> <tr> <th align="left"> <code>;</code> </th> <td> Statement terminator </td> </tr> <tr> <th align="left"> <code>.</code> </th> <td> Class membership </td> </tr> <tr> <th align="left"> <code>=</code> </th> <td> Assignment and comparison operator </td> </tr> <tr> <th> <code>+</code>&nbsp;<code>-</code>&nbsp;<code>*</code><br> <code>/</code>&nbsp;<code>&</code>&nbsp;<code>|</code><br> <code>-</code>&nbsp;<code><</code>&nbsp;<code>></code> </th> <td> Operators. Note that <code>&</code> and <code>|</code> are bitwise and do not short-circuit </td> </tr> </tbody> </table> </td> </tr> <tr> <th>Reserved words</th> <td> <table> <tbody> <tr> <th align="left"> <code>class</code>, <code>constructor</code>, <code>method</code>, <code>function</code> </th> <td> Program components </td> </tr> <tr> <th align="left"> <code>int</code>, <code>boolean</code>, <code>char</code> </th> <td> Primitive types </td> </tr> <tr> <th align="left"> <code>var</code>, <code>static</code>, <code>field</code> </th> <td> Variable declarations </td> </tr> <tr> <th align="left"> <code>let</code>, <code>do</code>, <code>if</code>, <code>else</code>, <code>while</code>, <code>return</code> </th> <td> Statements </td> </tr> <tr> <th align="left"> <code>true</code>, <code>false</code>, <code>null</code> </th> <td> Constant values (-1. 0, and 0 respectively) </td> </tr> <tr> <th align="left"> <code>this</code> </th> <td> Object reference </td> </tr> <tr> <th align="left"> <code>arguments</code> </th> <td> Function arguments array reference </td> </tr> </tbody> </table> </td> </tr> <tr> <th>Constants</th> <td> <i>Integer</i> constants must be positive and in standard decimal notation, e.g., <code>1984</code>. Negative integers like <code>-13</code> are not constants but rather expressions consisting of a unary negative operator applied to an integer constant.<br> <br> <i>String</i> constants are enclosed within quotation marks and may contain any characters except new lines or quotation marks. Unlike typical programming languages, these characters cannot be escaped within a string, so these characters are instead supplied by the functions <code>String.newLine()</code> and <code>String.doubleQuote()</code> from the OS. <sub><sup>If you manage to read this, say <a href="https://files.bithole.dev/nandy.png">hi</a> to Nandy</sup></sub><br> <br> <i>Boolean</i> constants can be true or false.<br> <br> <i>null</i> signifies a null reference (a value of 0). </td> </tr> <tr> <th>Identifiers</th> <td> Identifiers are composed from arbitrarily long sequences of letters, digits, and "_". The first character cannot be a digit.<br> <br> Case sensitivity matters. Thus <code>x</code> and <code>X</code> are treated as different identifiers. </td> </tr> </tbody> </table> ### Variables | Variable kind | Description | Declared in | Scope | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------------------------------------------------------------------------------------- | | static variables | `static` *type varName1, varName2, ...*;<br>Only one copy of each static variable exists, and this copy is shared by all the object instances of the class (like *private static variables* in Java) | class declaration | The class in which they are declared. | | field variables | `field` *type varName1, varName2, ...*;<br>Every object (instance of the class) has a private copy of the field variables (like *member variables* in Java) | class declaration | The class in which they are declared, except for functions, where they are undefined. | | local variables | `var` *type varName1, varName2, ...*;<br>Local variables are created just before the subroutine starts running and are deallocated when it returns (like *local variables* in Java) | subroutine declaration | The subroutine in which they are declared. | | parameter variables | *type varName1, varName2, ...*<br>Used to pass arguments to the subroutine. Treated like local variables whose values are initialized "from the outside", just before the subroutine starts running. | subroutine signature | The subroutine in which they are declared. | ### Statements | Statement | Syntax | Description | | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | let | `let` *varName = expression*;<br>or<br>`let` *varName*[*expression1*] = *expression2*; | An assignment operation (where *varName* is either single-valued or an array). The variable kind may be *static, local, field, or parameter*. | | if | `if` (expression1) {<br>&nbsp;&nbsp;&nbsp;&nbsp;statements1<br>} `else if` (expression2) {<br>&nbsp;&nbsp;&nbsp;&nbsp;statements2<br>} `else` {<br>&nbsp;&nbsp;&nbsp;&nbsp;statements3<br>} | Typical *if* statement with an optional *else* or *else if* clause. The brackets are optional if there's only one statement. | | while | `while` (expression) {<br>&nbsp;&nbsp;&nbsp;&nbsp;*statements*<br>} | Typical *while* statement. The brackets are optional if there's only one statement. | | do | `do` *function-or-method-call*; | Used to call a function or a method for its effect, ignoring the returned value. | | return | `return` expression;<br>or<br>`return`; | Used to return a value from a subroutine. Constructors must return the expression `this`. | # Jack OS Reference This section was adapted from the supplied Nand to Tetris software suite. ### Array ```js /** * Represents an array. * In the Jack language, arrays are instances of the Array class. * Once declared, the array entries can be accessed using the usual * syntax arr[i]. Each array entry can hold a primitive data type as * well as any object type. Different array entries can have different * data types. */ class Array { /** * Constructs a new array of the given size. */ function Array new(int size); /** * Deallocates an instance of Array and frees its memory space. */ method void dispose(); } ``` ### Keyboard ```js /** * The Keyboard class provides an interface for reading inputs from * a standard keyboard. */ class Keyboard { /** * Returns the character code of the currently pressed key, * or 0 if no key is currently pressed. */ function char keyPressed(); /** * Waits until a keyboard key is pressed and released, then displays the * corresponding character on the screen and returns the character. */ function char readChar(); /** * Prints the message on the screen, reads the next line (until a newLine * character) from the keyboard, and returns its value. */ function String readLine(String message); /** * Prints the message on the screen, reads the next line (until a newline * character) from the keyboard, and returns its integer value (until the * first non numeric character). */ function int readInt(String message); } ``` ### Math ```js /** * A library of commonly used mathematical functions. */ class Math { /** * Returns the absolute value of x. */ function int abs(int x); /** * Returns the product of x and y. * This function is internally called in lieu of the multiplication * operator '*'. In other words, the Jack expression x * y and * Math.multiply(x, y) are equivalent. */ function int multiply(int x, int y); /** * Returns the integer part of x / y. * This function is internally called in lieu of the division * operator '/'. In other words, the Jack expression x / y and * Math.divide(x, y) are equivalent. */ function int divide(int dividend, int divisor); /** * Returns the integer part of the square root of x. */ function int sqrt(int x); /** * Returns the greater of the two arguments. */ function int max(int a, int b); /** * Returns the smaller of the two arguments. */ function int min(int a, int b); } ``` ### Memory ```js /** * This library provides two services: direct access to the computer's main * memory (RAM), and allocation and recycling of memory blocks. The NAND RAM * consists of 32,768 words, each holding a 16-bit binary number. */ class Memory { /** * Returns the RAM value at the given address. */ function int peek(int address); /** * Sets the value of the given RAM address to the given value. */ function void poke(int address, int value); /** * Finds and allocates from the heap a memory block of the specified size and * returns a reference to its base address. */ function int alloc(int size); /** * Deallocates the given object (cast as an array) by making it available for * future allocations. */ function void deAlloc(Array o); } ``` ### Output ```js /** * A library of functions for writing text on the screen. * The NAND physical screen consists of 512 rows of 256 pixels each. * The library uses a fixed font, in which each character is displayed * within a frame which is 11 pixels high (including 1 pixel for inter-line * spacing) and 8 pixels wide (including 2 pixels for inter-character spacing). * The resulting grid accommodates 23 rows (indexed 0..22, top to bottom) * of 64 characters each (indexed 0..63, left to right). The top left * character position on the screen is indexed (0,0). A cursor, implemented * as a small filled square, indicates where the next character will be displayed. */ class Output { /** * Moves the cursor to the j'th column of the i'th row, erasing the character * that was there. */ function void moveCursor(int i, int j); /** * Displays the given character at the cursor location, * and advances the cursor one column forward. */ function void printChar(char c); /** * Displays the given string starting at the cursor location, and advances * the cursor appropriately. */ function void printString(String str); /** * Displays the given integer starting at the cursor location, and advances * the cursor appropriately. */ function void printInt(int i); /** * Advances the cursor to the beginning of the next line. */ function void println(); /** * Erases the character that was last written and moves the cursor one column * back. */ function void backSpace(); } ``` ### Screen ```js /** * A library of functions for displaying graphics on the screen. * The NAND physical screen consists of 256 rows (indexed 0..255, top to bottom) * of 512 pixels each (indexed 0..511, left to right). The top left pixel on * the screen is indexed (0,0). */ class Screen { /** * Erases the entire screen. */ function void clearScreen(); /** * Sets the current color to be used for all subsequent drawXXX commands. * Black is represented by true, white by false. */ function void setColor(boolean b); /** * Draws the (x, y) pixel using the current color. */ function void drawPixel(int x, int y); /** * Draws a line from pixel (x1, y1) to pixel (x2, y2) using the current color. */ function void drawLine(int x1, int y1, int x2, int y2); /** * Draws a filled rectangle whose top left corner is (x1, y1) and bottom * right corner is (x2, y2) using the current color. */ function void drawRectangle(int x1, int y1, int x2, int y2); /** * Draws a filled circle of radius r <= 181 around (x, y) using the current * color. */ function void drawCircle(int x, int y, int r); } ``` ### String ```js /** * Represents character strings. In addition for constructing and * deallocating strings, the class features methods for getting and setting * individual characters of the string, for erasing the string's last character, * for appending a character to the string's end, and more typical * string-oriented operations. */ class String { /** * Constructs a new empty string with a maximum length of maxLength and * initial length of 0. */ constructor String new(int maxLength); /** * Deallocates an instance of String and frees its memory space. */ method void dispose(); /** * Returns the current length of an instance of String. */ method int length(); /** * Returns the character at the j-th location of an instance of String. */ method char charAt(int j); /** * Sets the character at the j-th location of an instance of String to c. */ method void setCharAt(int j, char c); /** * Appends the given character to the end of an instance of String and * returns the same instance. */ method String appendChar(char c); /** * Erases the last character from an instance of String. */ method void eraseLastChar(); /** * Returns the integer value of an instance of String until the first * non-numeric character. */ method int intValue(); /** * Sets an instance of String to the representation of the given number. */ method void setInt(int number); /** * Returns the new line character. */ function char newLine(); /** * Returns the backspace character. */ function char backSpace(); /** * Returns the quotation mark character. */ function char doubleQuote(); } ``` ### Sys ```js /** * A library that supports various program execution services. */ class Sys { /** * Halts the program execution. */ function void halt(); /** * Displays the given error code in the format "ERR[errorCode]", and halts * the program's execution. */ function void error(int errorCode); /** * Waits approximately duration milliseconds and returns. Note that this is * runtime dependent and may not be accurate. */ function void wait(int duration); } ``` ### Error Codes If you do something that forces the computer into an invalid state, like computing the result of `1 / 0`, the Jack OS will display one of these error codes in the format "ERR[N]" and immediately terminate the program. | Code | Method/Function | Description | | ---- | -------------------- | ----------------------------------------------- | | 1 | Sys.wait | Duration must be positive | | 2 | Array.new | Array size must be positive | | 3 | Math.divide | Division by zero | | 4 | Math.sqrt | Cannot compute square root of a negative number | | 5 | Memory.alloc | Allocated memory size must be positive | | 6 | Memory.alloc | Heap overflow | | 7 | Screen.drawPixel | Illegal pixel coordinates | | 8 | Screen.drawLine | Illegal line coordinates | | 9 | Screen.drawRectangle | Illegal rectangle coordinates | | 12 | Screen.drawCircle | Illegal center coordinates | | 13 | Screen.drawCircle | Illegal radius | | 14 | String.new | Maximum length must be non-negative | | 15 | String.charAt | String index out of bounds | | 16 | String.setCharAt | String index out of bounds | | 17 | String.appendChar | String is full | | 19 | String.setInt | Insufficient string capacity | | 20 | Output.moveCursor | Illegal cursor location | # FAQ ### Whoa, is *everything* made from NAND gates? Well..., I admit the description and title are a little misleading, but still in good faith. The compiler and virtual machine translator are written in Typescript, while the kernel and hardware are emulated in Rust. Just the logic simulator runs computations and memory accesses from NAND gates. Bootstrapping the full tech stack is a feat that isn't unheard of, but such a massive project by itself probably deserves its own separate project. ### Did you design NAND by yourself? NAND follows the [Nand to Tetris course](https://www.nand2tetris.org) and its [associated book](https://www.amazon.com/Elements-Computing-Systems-second-Principles-dp-0262539802/dp/0262539802/ref=dp_ob_title_bk) (you should definitely check it out, it's an absolutely incredible read). I solely implemented the specification for CPU, assembler, virtual machine translator, and compiler, while porting the platform to the web with its own IDE and user interface. ### If there's only one type, what is the point of specifying types at all? This question references the fact that under the hood, the signed 16-bit integer is Jack's only real type. We anyways need to be so explicit with types to help the compiler figure out which class certain instance methods belong to. If we declare the Jack variable `s` with the type `String`, `s.appendChar(33)` is transformed during compilation into `String.appendChar(s, 33)`. ### Why does the IDE feel finnicky? NAND's IDE unfortunately trades implementation simplicity for a worse user experience. It uses the unorthodox [contenteditable](https://medium.engineering/why-contenteditable-is-terrible-122d8a40e480) and hacky cursor positioning logic to get syntax highlighting to work. I myself was surprised that I managed to even bring it to a functional state. As a result, it's slow and noticeably buggy, plus common keybinds don't work. I'm sorry, but for now you'll just need to bear with me. <hr> You now know how to program NAND in Jack! And wow! It's been grand voyage of discovery. This write-up only begins to do justice the pure genius behind the computer architecture of the modern world. Hopefully, you gain a newfound appreciation for the Herculean amount of technical complexity it takes to bridge the gap between your code and program output on the screen. Press "Start" to compile and run your code. The OS will typically take a little under a second to initialize memory and set up its services before you're off to see your program running! If you've read this far, my heartfelt thank you! Happy coding!
NAND is a logic simulator suite made entirely from NAND gates
rust,svelte,typescript,vite,javascript,nand2tetris,scss,wasm-bindgen
2023-06-27T08:13:40Z
2024-04-30T08:27:42Z
null
2
7
1,042
0
15
506
null
MIT
TypeScript
rameshvarun/blog-cells
main
# blog-cells [![Node.js CI](https://github.com/rameshvarun/blog-cells/actions/workflows/node.js.yml/badge.svg)](https://github.com/rameshvarun/blog-cells/actions/workflows/node.js.yml) [![npm](https://img.shields.io/npm/v/blog-cells)](https://www.npmjs.com/package/blog-cells) <a href="https://rameshvarun.github.io/blog-cells/"> <p align="center"><img width="400px" src="./screenshot.png"></img></p> <p align="center">[VIEW DEMO]</p> </a> Add interactive code cells to any webpage, similar to [Jupyter](https://jupyter.org/) or [ObservableHQ](https://observablehq.com/). Works with direct HTML editing, static site generators like Jekyll / Hugo, and more. ## Usage ### Quickstart Just drop in JS / CSS imports and start creating code cells using `<script type="text/notebook-cell">` elements. <b>blog-cells</b> will transform these script tags into interactive, runnable code snippets. ```html <!-- Import blog-cells JS and CSS files. --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/blog-cells@0.7.1/dist/blog-cells.css" /> <script src="https://cdn.jsdelivr.net/npm/blog-cells@0.7.1/dist/blog-cells.js"></script> <!-- Create your code cells in script tags --> <script type="text/notebook-cell"> console.log("Hello World!"); </script> ``` Try it on [CodePen](https://codepen.io/varunramesh/pen/WNYVNQQ) or [JSFiddle](https://jsfiddle.net/varunramesh/o217xpc5/latest/). ### Other Languages In addition to JavaScript, you can also embed code in other languages by adding a `data-kernel` attribute. ```html <script type="text/notebook-cell" data-kernel="python"> print("Hello World!") </script> ``` The following kernel values are currently supported: - `javascript` (Default) - `python` ### Cell Attributes Cells can be configured with the following attributes: - `data-autorun="true"` - Automatically run a cell on page load. Autorun cells are run in the order that they appear on the page. - `data-hidden="true"` - Make a cell hidden by default - readers can toggle the cell's visibility. ### Using `<pre>` tags instead of `<script>` tags Script tags are great for defining notebook cells since they can hold pretty much any code without escaping. However, you can also use `<pre class="notebook-cell">` tags instead. When using `pre` tags, reserved HTML characters should be escaped using HTML entities (this can be done by your static site generator). ```html <pre class="notebook-cell"> console.log("&lt;b&gt;HELLO&lt;/b&gt;"); </pre> ``` ### Creating a Custom Kernel You can easily define and use your own custom kernels. ```html <!-- Import blog-cells JS and CSS files. --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/blog-cells@0.7.1/dist/blog-cells.css" /> <script src="https://cdn.jsdelivr.net/npm/blog-cells@0.7.1/dist/blog-cells.js"></script> <!-- Define custom kernel --> <script> class JSONFormatKernel extends BlogCells.Kernel { async run(code, onOutput) { const data = JSON.parse(code.trim()); onOutput({ type: "log", line: JSON.stringify(data, undefined, 2) }); } } BlogCells.registerKernel("json-format", () => new JSONFormatKernel()); </script> <!-- Use custom Kernel --> <script type="text/notebook-cell" data-kernel="json-format"> [4, {"hello": 3}] </script> ``` ## Developing ```bash git clone https://github.com/rameshvarun/blog-cells.git cd blog-cells npm install npm start ``` ## Attributions This repo contains assets from other open source projects. - [https://github.com/SamHerbert/SVG-Loaders](https://github.com/SamHerbert/SVG-Loaders) (MIT) ## Alternatives - https://starboard.gg/ - https://observablehq.com/ - https://jupyter.org/try-jupyter/lab/ - https://www.typecell.org/
Add interactive code snippets to any blog or webpage.
literate-programming,typescript,blogging,javascript,notebooks,live-coding,python
2023-06-27T04:10:05Z
2023-09-12T05:12:59Z
2023-08-13T06:59:33Z
1
0
62
10
2
479
null
MIT
TypeScript
xiaopujun/light-chaser
master
[中文](README_ZH.md) <h2> LIGHT CHASER</h2> <p> <img alt="" src="https://img.shields.io/badge/version-v0.0.9-blue"> <img alt="" src="https://img.shields.io/badge/language-typescript-blue"> <img alt="" src="https://img.shields.io/badge/license-MIT-08CE5D?logoColor=08CE5D"> <img alt="" src="https://img.shields.io/badge/framework-React-61daeb?logoColor=08CE5D"> </p> <p>Data visualization tools</p> light chaser is an open source free data visualization design tool based on React technology stack implementation . Through it you can simply and quickly produce data visualization related content. It can be used for large-screen data visualization display , data reports, data analysis and other scenes This project contains: - A standard component editing panel - An efficient blueprint editor for event interactions - Rich component library light chaser is built for data visualization and will continue to grow and improve! # Catalogs - [Document](#document) - [Example](#example) - [Usage & Deployment](#usage--deployment) - [Contributing](#contributing) - [License](#license) # Document For more information about the designer, please refer to it [Document](https://xiaopujun.github.io/light-chaser-doc/#/) # Example You can visit [LIGHT CHASER online](https://xiaopujun.github.io/light-chaser-app/#) to experience it online, or you can launch it locally with the code to experience it! preview image: ![lightchaser1](https://i.072333.xyz/file/8ff8361817216f2fb1c47.png) ![lightchaser](https://i.072333.xyz/file/3cacaaa9edc640ce64536.png) # Usage & Deployment If you need to start this project locally or build and deploy it to your own server, please refer to the following commands: - Clone the project to your local machine ```shell git clone https://gitee.com/xiaopujun/light-chaser.git ``` - Install project dependencies > Note: This project uses pnpm as the package management tool, so you need to install [pnpm](https://pnpm.io/) first > ,if you have installed pnpm, you can skip this step ```shell pnpm install ``` - Start the project ```shell pnpm dev ``` - Access the project ```shell http://localhost:5173 ``` - Build the project ```shell pnpm build ``` # Contributing Feel free to dive in! Open an issue or submit PRs. light chaser follows the Contributor Covenant Code of Conduct. # License [MIT](LICENSE) © xiaopujun Thank you to every developer and person who contributed to this project!
light chaser is a lightweight data visualization designer tool
blueprints,data-visualization,web-editor,data-analysis,draggable,javascript,typescript
2023-06-24T03:44:50Z
2024-05-23T02:10:55Z
2024-04-29T01:18:20Z
2
8
1,167
2
46
445
null
MIT
TypeScript
Zeioth/compiler.nvim
main
# [Compiler.nvim](https://github.com/Zeioth/compiler.nvim) Neovim compiler for building and running your code without having to configure anything. ![screenshot_2023-06-19_13-59-07_947251291](https://github.com/Zeioth/compiler.nvim/assets/3357792/7c31d02c-2e8d-4562-bcec-323d8a468f67) <div align="center"> <a href="https://discord.gg/ymcMaSnq7d" rel="nofollow"> <img src="https://img.shields.io/discord/1121138836525813760?color=azure&labelColor=6DC2A4&logo=discord&logoColor=black&label=Join the discord server&style=for-the-badge" data-canonical-src="https://img.shields.io/discord/1121138836525813760"> </a> </div> ## Table of contents - [Why](#why) - [Supported languages](#supported-languages) - [Required system dependencies](#required-system-dependencies) - [How to install](#how-to-install) - [Commands](#commands) - [Basic usage](#how-to-use-basic-usage) - [Creating a solution (optional)](#creating-a-solution-optional) - [Build automation utilities (optional)](#build-automation-utilities-optional) - [Quick start](#quick-start) - [FAQ](#faq) ## Why Those familiar with Visual Studio IDE will remember how convenient it was to just press a button and having your program compiled and running. I wanted to bring that same user experience to Neovim. ## Supported languages | Language | More info | |--|--| | [asm x86-64](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/languages/asm.lua)| | | [c](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/languages/c.lua) || | [c++](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/languages/cpp.lua) || |[c#](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/languages/cs.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/cs-compiler) | | [dart](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/dart.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/dart-compiler) | | [elixir](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/elixir.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/elixir-compiler) | | [f#](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/languages/fsharp.lua) |[+info](https://github.com/Zeioth/compiler.nvim/wiki/fsharp-compiler) | | [flutter](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/dart.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/dart-compiler) | | [go](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/go.lua) || | [java](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/java.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/java-compiler) | | [javascript](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/javascript.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/javascript-interpreter) | | [kotlin](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/kotlin.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/java-compiler) | | [lua](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/lua.lua) || | [make](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/make.lua) || | [perl](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/perl.lua) || | [python](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/python.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/python-compiler) | | [r](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/r.lua) || | [ruby](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/ruby.lua) || | [rust](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/rust.lua) || | [shell](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/shell.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/shell-interpreter) | | [swift](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/swift.lua) || | [typescript](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/typescript.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/typescript-transpiler) | | [visual basic dotnet](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/vb.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/visual-basic-dotnet-compiler) | | [zig](https://github.com/Zeioth/Compiler.nvim/blob/main/lua/compiler/languages/zig.lua) | [+info](https://github.com/Zeioth/compiler.nvim/wiki/zig-compiler) | ## Required system dependencies Some languages require you manually install their compilers in your machine, so compiler.nvim is able to call them. [Please check here](https://github.com/Zeioth/Compiler.nvim/wiki/how-to-install-the-required-dependencies), as the packages will be different depending your operative system. ## How to install lazy.nvim package manager ```lua { -- This plugin "Zeioth/compiler.nvim", cmd = {"CompilerOpen", "CompilerToggleResults", "CompilerRedo"}, dependencies = { "stevearc/overseer.nvim" }, opts = {}, }, { -- The task runner we use "stevearc/overseer.nvim", commit = "68a2d344cea4a2e11acfb5690dc8ecd1a1ec0ce0", cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" }, opts = { task_list = { direction = "bottom", min_height = 25, max_height = 25, default_detail = 1 }, }, }, ``` ### Recommended mappings ```lua -- Open compiler vim.api.nvim_set_keymap('n', '<F6>', "<cmd>CompilerOpen<cr>", { noremap = true, silent = true }) -- Redo last selected option vim.api.nvim_set_keymap('n', '<S-F6>', "<cmd>CompilerStop<cr>" -- (Optional, to dispose all tasks before redo) .. "<cmd>CompilerRedo<cr>", { noremap = true, silent = true }) -- Toggle compiler results vim.api.nvim_set_keymap('n', '<S-F7>', "<cmd>CompilerToggleResults<cr>", { noremap = true, silent = true }) ``` ## Commands | Command | Description| |--|--| | `:CompilerOpen` | Shows the adecuated compiler for your buffer's filetype. | | `:CompilerToggleResults` | Open or close the compiler results. | | `:CompilerRedo` | Redo the last selected option. | | `:CompilerStop` | Dispose all tasks. | ## How to use (Basic usage) This is what happen when you select `build & run`, `build`, or `run` in the compiler: > compiler.nvim will look for the conventional entry point file for the current language you are using. To achieve this, it searches in your current working directory for the next files | Language | Default entry point | Default output | |--|--|--| | asm x86-64 | ./main.asm | ./bin/program | | c | ./main.c | ./bin/program | | c++ | ./main.cpp | ./bin/program | | c# | ./Program.cs | ./bin/Program.exe | | dart | ./lib/main.dart | ./bin/main | | elixir | ./mix.exs | ./_build/ | | f# | [see here](https://github.com/Zeioth/compiler.nvim/wiki/fsharp-compiler) | ./bin/ | | flutter | ./pubspec.yaml | ./build/ | | go | ./main.go | ./bin/program | | java | ./Main.java | ./bin/Main.class | | javascript | ./src/index.js | | | kotlin | ./Main.kt | ./bin/MainKt.class | | lua | ./main.lua | | | make | ./Makefile | | | perl | ./main.pl | | | python | ./main.py | ./bin/program | | r | ./main.r | | | ruby | ./main.rb | | | rust | ./main.rs | ./bin/program | | shell | ./main.sh | | | swift | ./main.swift | ./bin/program | | typescript | ./src/index.ts | | | visual basic .net | [see here](https://github.com/Zeioth/compiler.nvim/wiki/visual-basic-dotnet-compiler) | ./bin/ | | zig | ./build.zig | ./zig-out/bin/build | This is how the compilation results look after selecting `Build & run program` in c ![screenshot_2023-06-19_13-59-37_766847673](https://github.com/Zeioth/compiler.nvim/assets/3357792/42c4ec0d-4446-4ac6-9c4a-478a32d23ca7) [For more info see wiki - when to use every option](https://github.com/Zeioth/compiler.nvim/wiki/When-to-use-every-option) ## Creating a solution (optional) If you want to have more control, you can create a `.solution.toml` file in your working directory by using this template where every [entry] represents a program to compile ```toml [HelloWorld] entry_point = "/path/to/my/entry_point_file/main.c" output = "/path/where/the/program/will/be/written/hello_world" arguments = "" [SOLUTION] executable = "/program/to/execute/after/the/solution/has/compiled/my_program" ``` [For more examples see wiki](https://github.com/Zeioth/Compiler.nvim/wiki/solution-examples). ## Build automation utilities (optional) If any of these files exist in your current working directory, they will be automatically detected and displayed on [Compiler.nvim](https://github.com/Zeioth/compiler.nvim): | Build automation utility | File | More info | |--|--|--| | [Make](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/bau/make.lua)| `./Makefile` | [+info](https://github.com/Zeioth/Compiler.nvim/wiki/Makefile-build-automation-utility) | | [CMake](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/bau/cmake.lua) | `./CMakeLists.txt` | [+info](https://github.com/Zeioth/Compiler.nvim/wiki/CMake-build-automation-utility) | | [Gradle](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/bau/gradle.lua) | `./build.gradle` | [+info](https://github.com/Zeioth/Compiler.nvim/wiki/gradle-build-automation-utility) | | Maven | `./pom.xml` | [+info](https://github.com/Zeioth/Compiler.nvim/wiki/maven-build-automation-utility) | | [NodeJS NPM](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/bau/nodejs.lua) | `./package.json` | [+info](https://github.com/Zeioth/Compiler.nvim/wiki/nodejs-build-automation-utility) | | [Meson](https://github.com/Zeioth/compiler.nvim/blob/main/lua/compiler/bau/meson.lua) | `./meson.build` | [+info](https://github.com/Zeioth/Compiler.nvim/wiki/meson-build-automation-utility) | ## Quick start Create `~/c-example/main.c` and paste this code. Then do `:cd ~/c-example/` to change the working directory to the project. ```c #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; } ``` Open the compiler and select `Build and run`. You will see the compilation results. ![screenshot_2023-07-25_23-56-57_069109256](https://github.com/Zeioth/compiler.nvim/assets/3357792/fd102350-ca44-4501-9cb0-db2ea0093264) ## FAQ * **I get errors when compiling:** You have to `:cd /your/project/root_dir` before calling [Compiler.nvim](https://starchart.cc/Zeioth/Compiler.nvim). * **How can I auto `:cd` my projects?** Use [this fork](https://github.com/ahmedkhalf/project.nvim/pull/131) of the plugin `project.nvim`. * **I don't have time to read:** If you prefer you can try [NormalNvim](https://github.com/NormalNvim/NormalNvim) which comes with the compiler pre-installed. Just open some code and hit F6! * **How can I add a language that is not supported yet?** Fork the project, and go to the directory `/compiler/languages`. Copy `c.lua` and rename it to any language you would like to add, for example `ruby.lua`. Now modify the file the way you want. It is important you name the file as the filetype of the language you are implementing. Then please, submit a PR to this repo so everyone can benefit from it. * **How can I change the way the compiler works?** Same as the previous one. * **How can I add an automation build utility that is not supported yet?** Fork the project, and go to the directory `/compiler/bau`. Copy `make.lua` and rename it to the build automation utility you want to add, for example `maven.lua`. Now modify the file the way you want. Note that you will also have to modify `/utilities-bau.lua` and change the function `get_bau_opts()` so it can parse the utility you want to add. Then please, submit a PR to this repo so everyone can benefit from it. * **Is this plugin just a compiler, or can I run scripts too?** Yes you can. But if your script receive arguments, we recommend you to use the terminal instead, because creating a `.solution.toml` file just to be able to pass arguments to your simple shell script is probably a overkill, and not the right tool. * **I'm a windows user, do I need to do something special?** You have to [enable WSL](https://www.youtube.com/watch?v=fFbLUEQsRhM), and run nvim inside. Otherwise it would be impossible for you to install the [required dependencies](https://github.com/Zeioth/Compiler.nvim/wiki/how-to-install-the-required-dependencies). * **How can I disable notifications when compiling?** Check [here](https://github.com/stevearc/overseer.nvim/issues/158#issuecomment-1631542247). ### How can I compile videogames? The workflow of game development is essentially very different from just compiling and running a program. It involve loading editing and running scenes. While there is no way for us to support it directly, here I offer you some tricks: #### Godot engine To `Build and run a godot scene`, use the command `godot /my/scene.tscn` on the terminal. This works really well: It's fast and simple. #### Unity The recommended way is to have 2 monitors, one with nvim and your code, and another one with your unity scenes to run the game. Unity has [some terminal commands](https://docs.unity3d.com/Manual/CommandLineArguments.html), but working with them is quite a painful experience. ## 🌟 Support the project If you want to help me, please star this repository to increase the visibility of the project. [![Stargazers over time](https://starchart.cc/Zeioth/Compiler.nvim.svg)](https://starchart.cc/Zeioth/Compiler.nvim) ## Thanks to all contributors <a href="https://github.com/zeioth/compiler.nvim/graphs/contributors"> <img src="https://contrib.rocks/image?repo=zeioth/compiler.nvim" /> </a> ## Roadmap * Better Windows compatibility when not using WSL: The commands `rm -rf` and `mkdir -p` only exist on unix. To support Windows without WSL we should run the equivalent powershell command when Windows is detected. * Aditionally, we will also have to compile for `asm` win64 architecture, if the detected OS is windows. * Aditionally, we will also have to add an option to compile for `Build for windows (flutter)`.
Neovim compiler for building and running your code without having to configure anything
nvim-plugin,nvim-plugins,compiler,neovim-plugin,neovim-plugins,build-automation-tool,build-tool,built-tools,csharp,elixir
2023-06-16T04:08:47Z
2024-04-25T23:09:45Z
2024-04-25T22:56:01Z
5
11
1,102
1
24
385
null
GPL-3.0
Lua
fanchenio/DawnLauncher
main
# 简体中文 | [English](https://github.com/fanchenio/DawnLauncher/blob/main/README-ENGLISH.md) # 更新 消失了三个多月,我将`Dawn Launcher`代码进行重构,因为一开始没有开发`NodeJS`和`Electron`的经验,`Vue`也写的不好,代码写的有些潦草,所以进行了代码重构,新版使用了`Electron26 + Vite + Vue3 + TS`,UI 框架使用了`Naive`,关于原生 API 方面,我从`C++`切换到了 `Rust`,数据库从`electron-store`切换到了`SQLite3`,语言也新增了`英语`。 # Dawn Launcher `Windows`快捷启动工具,帮助您整理杂乱无章的桌面,分门别类管理您的桌面快捷方式,让您的桌面保持干净整洁。 支持关联文件夹(实时同步文件夹内容)、快速搜索、相对路径(便携路径)、扫描本机开始菜单、本地扫描本机 Appx 应用列表、添加网址并一键获取网址信息。 # 技术栈 `Electron + Vite + Vue3 + TS` # 支持平台 `Windows(10/11)` # 编译步骤 1. 安装`node-gyp`,编译 SQLite3 需要。 2. 安装`Rust`环境 + `Cargo`,编译 Rust 需要。 3. 然后运行`yarn install`安装项目依赖(如果修改了`Rust`代码也需要重新运行`yarn install`)。 4. `yarn run dev`本地运行项目。 5. `yarn run build`打包项目。 6. 便携版和安装版需要分两次打包,通过修改`.env.production`中的`VITE_INSTALL`,`true`为安装版,`false`为便携版。 # 官网 [dawnlauncher.com](https://dawnlauncher.com/) # QQ 群 369652112 # 捐赠(微信) ![微信](/images/wechat.png) # 捐赠(支付宝) ![支付宝](/images/alipay.png) # 界面 ![界面](/images/soft1.png) ## 子分类 ![子分类](/images/soft2.png) ## 自定义主题 ![自定义主题](/images/soft3.png) ## 自定义背景 ![自定义背景](/images/soft4.png) ## 快速搜索 ![快速搜索](/images/soft5.png) ## 一键获取网址信息 ![一键获取网址信息](/images/soft6.webp) ## 相对路径(便携路径) ![相对路径(便携路径)](/images/soft7.png) ## 关联文件夹 ![关联文件夹](/images/soft8.webp) ## Stargazers over time [![Stargazers over time](https://starchart.cc/fanchenio/DawnLauncher.svg)](https://starchart.cc/fanchenio/DawnLauncher) ## License MIT License
Windows快捷启动工具,帮助您整理杂乱无章的桌面,分门别类管理您的桌面快捷方式,让您的桌面保持干净整洁。
electron,javascript,vue,nodejs,sqlite3,vue3
2023-06-12T08:48:16Z
2024-05-15T14:46:37Z
2024-05-15T14:46:37Z
2
3
79
10
28
383
null
MIT
TypeScript
sailscastshq/boring-stack
develop
<div align="center"> <h1 align="center"><a href="https://sailscasts.com/boring">The Boring JavaScript Stack 🥱</a></h1> <strong align="center"> Ship reliable JavaScript apps with battle-tested tech. No more chasing shiny trends in the JavaScript land. </strong> <p> Use The Boring JavaScript Stack - an opinionated full-stack JavaScript project starter - if you are tired of keeping up with the shiny things in JavaScript land and you just want to ship your products to real users with tried and battle-tested technologies. This stack is based on the experience of <a href="https://dominuskelvin.dev">Kelvin Omereshone</a> and <a href="https://github.com/sailscastshq/boring-stack/graphs/contributors">contributors</a>. </p> </div> ```sh npx create-sails <project-name> ``` <div align="center"> <a href="https://sailscasts.com/boring"><img src="https://github.com/sailscastshq/boring-stack/blob/main/.github/banner.png" alt="The Boring JavaScript Stack"></a> </div> [The Boring JavaScript Stack](https://sailscasts.com/boring) ## Setup faster ⚡️ #### Vue ```sh npx create-sails <project-name> --vue ``` #### React ```sh npx create-sails <project-name> --react ``` #### Svelte ```sh npx create-sails <project-name> --svelte ``` ## What's in The Boring JavaScript Stack - [Sails](https://sailsjs.com) - [Inertia](https://inertiajs.com) - [Tailwind CSS](https://tailwindcss.com) - [Vue](https://vuejs.org), [React](https://reactjs.org), or [Svelte](https://svelte.dev) The ethos of The Boring JavaScript Stack is this 👇🏾 You can use your favorite frontend framework and build Modern Single Page Applications(SPA) without the hassle of the complexities that building SPA the traditional way bring to the table. With The Boring JavaScript Stack, you don't need 👇🏾 - Client-side state management - your application state lives in your database which is where it belongs. - You don't need an API for your SPA - the data each page needs gets sent to it as props thanks to [Inertia](https://inertiajs.com) - No double routing - The routing for your app is handled at the backend level with [Sails](https://sailsjs.com) With The Boring JavaScript Stack, we want you to focus on what really matters - shipping to actual real users. We emphasize this by creating full-stack functioning templates that takes care of some of the boring stuff for you. ## Try it Online 🚀 Try out The Boring JavaScript Stack starter templates for Vue, React, and Svelte right in your browser using StackBlitz's online code editor and development environment. To launch the respective templates on StackBlitz, click on the 'Open in StackBlitz' button of the starter template you are interested in below: ### Vue Starter Template [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/sailscastshq/boring-stack/tree/main/templates/mellow-vue) ### React Starter Template [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/sailscastshq/boring-stack/tree/main/templates/mellow-react) ### Svelte Starter Template [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/sailscastshq/boring-stack/tree/main/templates/mellow-svelte) <hr /> ## Watch Kelvin's Introduction to The Boring JavaScript Stack <a href="https://youtu.be/qX69jEyAIc0"><img src="https://github.com/sailscastshq/boring-stack/blob/main/.github/thumbnail.png" alt="The Boring JavaScript Stack" width="100%"></a> [The Boring JavaScript - Kelvin Omereshone at #Sailsconf 2023](https://youtu.be/qX69jEyAIc0) ## Docs [Read the docs](https://docs.sailscasts.com/boring-stack/). ## Support - 🆘 Join the [discussion on GitHub](https://github.com/sailscastshq/boring-stack/discussions) and the [Sailscasts community](https://sailscasts.com/chat). - 💡 Create an [idea discussion](https://github.com/sailscastshq/boring-stack/discussions/new?category=ideas) for suggestions. - 🐛 Open a [GitHub issue](https://github.com/sailscastshq/boring-stack/issues) to report a bug. ### Contributors <a href="https://github.com/sailscastshq/boring-stack/graphs/contributors"> <p align="center"> <img src="https://contrib.rocks/image?repo=sailscastshq/boring-stack" alt="A table of avatars from the project's contributors" /> </p> </a> ## Sponsors If you'd like to become a sponsor, check out [DominusKelvin](https://github.com/sponsors/DominusKelvin) sponsor page and tiers. ## Thanks You rock 🤘🏾
The Reliable Full-Stack JavaScript Stack: Ship products with battle-tested technologies. Say no to chasing JavaScript trends and just ship.
fullstack-javascript,reactjs,sailsjs,svelte,tailwindcss,vue,vuejs,starter-template,javascript,react
2023-06-13T20:11:51Z
2024-04-16T09:22:19Z
2024-04-16T07:36:09Z
8
41
236
7
18
357
null
MIT
EJS
belladoreai/llama-tokenizer-js
master
# 🦙 llama-tokenizer-js 🦙 JavaScript tokenizer for LLaMA 1 and LLaMA 2 (I made a separate repo for LLaMA 3 [here](https://github.com/belladoreai/llama3-tokenizer-js)) The tokenizer works client-side in the browser (and also in Node) (and now with TypeScript support) Intended use case is calculating token count accurately on the client-side. <a href="https://belladoreai.github.io/llama-tokenizer-js/example-demo/build/">Click here for demo</a> ## Features - Easy to use: 0 dependencies, code and data baked into a [single file](llama-tokenizer.js). - Compatible with most LLaMA models (see [Compatibility](#compatibility)) - Optimized running time (highly efficient BPE implementation) - Optimized bundle size: 670KiB before minification and gzipping (the data has been compressed into a simple and efficient binary format, and then base64-encoded to bake it into the .js file) ## Import Recommended way: Install as an npm package and import as ES6 module ``` npm install llama-tokenizer-js ``` ``` import llamaTokenizer from 'llama-tokenizer-js' console.log(llamaTokenizer.encode("Hello world!").length) ``` Alternative: Load as ES6 module with `<script>` tags in your HTML ``` <script type="module" src="https://belladoreai.github.io/llama-tokenizer-js/llama-tokenizer.js"></script> ``` Alternative: for CommonJS projects this should work: ``` async function main() { const llamaTokenizer=await import('llama-tokenizer-js') console.log(llamaTokenizer.default.encode("Hello world!")) } main(); ``` ## Usage Once you have the module imported, you can encode or decode with it. Training is not supported. When used in browser, llama-tokenizer-js pollutes global namespace with `llamaTokenizer`. Encode: ``` llamaTokenizer.encode("Hello world!") > [1, 15043, 3186, 29991] ``` Decode: ``` llamaTokenizer.decode([1, 15043, 3186, 29991]) > 'Hello world!' ``` Note that special "beginning of sentence" token and preceding space are added by default when encoded (and correspondingly expected when decoding). These affect token count. There may be some use cases where you don't want to add these. You can pass additional boolean parameters in these use cases. For example, if you want to decode an individual token: ``` llamaTokenizer.decode([3186], false, false) > 'Hello' ``` ## Tests You can run tests with: ``` llamaTokenizer.runTests() ``` The test suite is small, but it covers different edge cases very well. Note that tests can be run both in browser and in Node (this is necessary because some parts of the code work differently in different environments). ## Comparison to alternatives llama-tokenizer-js is the first JavaScript tokenizer for LLaMA which works client-side in the browser. You might be wondering, what other solutions are people using to count tokens in web applications? - Many web applications currently use client-side JavaScript libraries for other, _incompatible_ tokenizers. In particular, OpenAI's tokenizers are popular (see [tiktoken](https://www.npmjs.com/package/@dqbd/tiktoken) and [gpt-tokenizer](https://www.npmjs.com/package/gpt-tokenizer)). It's not entirely clear to me why people using LLaMA would want to count tokens with an OpenAI tokenizer that is not compatible with LLaMA. I guess people are assuming that there's not much difference between tokenizers? However, in my own testing I discovered that the token counts will commonly differ by as much as 20% between these tokenizers. So you can get a _very rough_ approximation of LLaMA token count by using an OpenAI tokenizer. - Some web applications make network calls to Python applications that run the Huggingface transformers tokenizer. For example, the oobabooga-text-webui exposes an API endpoint for token count. The drawback of this approach is latency: although the Python tokenizer itself is very fast, oobabooga adds a lot of overhead. In my testing, making a network call to locally running oobabooga to count tokens for short Strings of text took roughly 300ms (compared to ~1ms when counting tokens client-side with llama-tokenizer-js). The latency will be even higher when a real web client is making requests over the internet. The latency issue is even worse if an application needs to iteratively trim down a prompt to get it to fit within a context limit, requiring multiple network calls. - Since releasing llama-tokenizer-js, alternative llama tokenizers have been released. One notable example is [transformers.js](https://github.com/xenova/transformers.js), which actually introduced a llama tokenizer by [integrating llama-tokenizer-js into transformers.js](https://github.com/belladoreai/llama-tokenizer-js/issues/9). ## Compatibility The tokenizer used by LLaMA is a SentencePiece Byte-Pair Encoding tokenizer. Note that this is a tokenizer for LLaMA models, and it's different than the tokenizers used by OpenAI models. If you need a tokenizer for OpenAI models, I recommend [gpt-tokenizer](https://www.npmjs.com/package/gpt-tokenizer). What is this tokenizer compatible with? All LLaMA models which have been trained on top of checkpoints (model weights) released by Facebook in March 2023 ("LLaMA") and July of 2023 ("LLaMA2"). Examples of compatible models: - llama2-13b-4bit-gptq - wizard-vicuna-13b-uncensored-gptq - manticore-7b-ggml Incompatible LLaMA models are those which have been trained from scratch, not on top of the checkpoints released by Facebook. For example, [OpenLLaMA](https://github.com/openlm-research/open_llama) models are incompatible. When you see a new LLaMA model released, this tokenizer is mostly likely compatible with it without any modifications. If you are unsure, try it and see if the token ids are the same (compared to running the model with, for example, oobabooga webui). You can find great test input/output samples by searching for `runTests` inside `llama-tokenizer.js`. If you want to modify this library to support a new LLaMA tokenizer (new as in trained from scratch, not using the same tokenizer as most LLaMA models do), you should be able to do so by swapping the vocabulary and merge data (the 2 long variables near the end of `llama-tokenizer.js` file). This repo has [a Python script](data-conversion.py) for your convenience. You can pass custom vocab and merge data to the tokenizer by instantiating it like this: ``` import { LlamaTokenizer } from 'llama-tokenizer-js' const tokenizer = new LlamaTokenizer(custom_vocab, custom_merge_data); ``` ## Repo maintenance Release steps: 1. node test-llama-tokenizer.js 2. open test.html 3. do you need to update this README? 4. bump version number in root package.json 5. push tokenizer changes to github 6. npm publish --dry-run 7. npm publish 8. bump version number in example-demo/package.json 9. cd example-demo && npm install && npm run build && live-server 10. push example demo changes to github 11. create release in github ## Who did this The example-demo (tokenizer playground) is a fork of [gpt-tokenizer playground](https://github.com/niieani/gpt-tokenizer). Llama-tokenizer-js is developed by [belladore.ai](https://belladore.ai) with contributions from [xenova](https://github.com/xenova), [blaze2004](https://github.com/blaze2004), [imoneoi](https://github.com/imoneoi) and [ConProgramming](https://github.com/ConProgramming).
JS tokenizer for LLaMA 1 and 2
javascript,llama,llm,tokenizer
2023-06-11T19:10:14Z
2024-04-25T23:27:58Z
2024-03-24T18:39:03Z
3
4
36
0
21
309
null
MIT
JavaScript
akuse-app/Akuse
react-port
<p align="center"> <img width="150px" src="https://github.com/akuse-app/Akuse/blob/react-port/assets/icon.png"/> <h1 align="center">Akuse</h1> </p> <p align="center">Simple and easy to use anime streaming desktop app without ads.</p> <p align="center"> <img alt="license" src="https://img.shields.io/github/license/aleganza/akuse"> <img alt="GitHub release (with filter)" src="https://img.shields.io/github/v/release/akuse-app/akuse"> <img alt="total-downloads" src="https://img.shields.io/github/downloads/aleganza/akuse/total"> <img alt="GitHub Issues or Pull Requests" src="https://img.shields.io/github/issues/aleganza/akuse?color=red"> <a href="https://discord.gg/f3wdnqSNX5"> <img alt="Discord" src="https://img.shields.io/discord/1163970236224118796?label=discord&color=%235567E3"> </a> </p> <img title="img" alt="img" src="https://i.imgur.com/8IVaUfo.jpg"> ## ⚙️ Running locally for development Start cloning Akuse: ``` git clone https://github.com/akuse-app/Akuse.git ``` Next, go to [this link](https://anilist.co/settings/developer) and create a new AniList API Client. As Redirect Uri, you can insert `akuse://index,https://anilist.co/api/v2/oauth/pin` (these are two space seprated uri) and it should work. Now go inside the src/modules folder and create a clientData.js file with a structure like this: ``` module.exports = { clientId: , redirectUri: "", redirectUriAppImage:"", clientSecret: "" } ``` Fill it with the data retrieved from the creation of your AniList API Client. ```bash # Example: module.exports = { clientId: 12345, redirectUri: "akuse://index", redirectUriAppImage: "https://anilist.co/api/v2/oauth/pin", clientSecret: "iA04TKLO3k3LaVWhxucJwck0glR6uhiv" } ``` Next, install its dependencies (make sure npm is installed on your machine): ``` npm install ``` To start, run: ``` npm start ``` ## 🛠️ How to build - [Linux read here](./LINUX_BUILD.md) ## ⚠ How to Log-In in development & AppImage In development and AppImage, the Log-In redirect doesn't work since the app is not packed/installed and the Redirect Uri doesn't find it on your machine. If you need to work with an authenticated instance. ### Follow steps: 1. open the app using one of the method e.g. ``` npm start ``` OR ``` ./path/to/app.AppImage ``` 2. Now click on the login button and authenticate in the browser. you will get redirect to website like this:- ![1709734157317](image/README/1709734157317.png) copy this code in the input box and close the tab. 3. Now close the app and run it with flag `--login` followd by code e.g:- - developement mode ```js npm start -- --login def50200211627a77c5ecb3ac3f9eef26d955........... ``` - AppImage ```js ./path/to/akuse.AppImage --login def50200211627a77c5ecb3ac3f9eef26d955........... ``` **NOTE:** This is not needed in Installed App. ## ⌨ Shortcuts - Pages - F1: go to Discover page - F2: go to Library page - F3: go to Search page - Video player - Space: play/pause video - Left arrow: fast rewind (5s) - Right arrow: fast forward (5s) - Upper arrow: increase volume - Lower arrow: decrease volume - F11: fullscreen toggler - F: fullscreen toggler - M: mute/unmute video - N: play next episode ## 🐛 Known Issues - If Log-In doesn't work, make sure you have set a default browser. - Some anime may don't work because of different names as compared to AniList: feel free to open a new issue if you find some of them so they can be fixed. ## 🌟 Contributors [![](https://contrib.rocks/image?repo=akuse-app/akuse)](https://github.com/akuse-app/akuse/graphs/contributors) ## 🙌 Credits - [Consumet API](https://github.com/consumet/consumet.ts): used to fetch episodes links - [This API](https://api.ani.zip/mappings?anilist_id=21): used to fetch episodes info and thumbnails ## 📢 Disclaimer - Akuse helps users find anime by simply scraping links from various websites. - Akuse or its developers do not host the content found on Akuse. All images and anime information found in the app are retrieved from AniList public API. - Additionally, all anime links found on Akuse are from various third party anime hosting websites. - Akuse or its owner are not responsible for the misuse of any content inside or outside the app and shall not be responsible for the dissemination of any content within the app. - By using this app, you agree that the app developer is not responsible for the content within the app. Nevertheless, they may or may not come from legitimate sources. - For internet violations, please contact the source website. The developer is not legally responsible. ## 📜 License Licensed under [GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.html#license-text).
💻 Simple and easy to use anime streaming desktop app without ads.
anilist,anime,client,desktop,electron,streaming,app,javascript,linux,macos
2023-06-26T22:54:22Z
2024-05-22T20:49:19Z
2024-04-29T17:48:18Z
5
16
518
18
30
265
null
GPL-3.0
TypeScript
JohannLai/openai-function-calling-tools
main
<img height="129" align="left" src="assets/logo.png" alt="Logo"> # OpenAI Function calling tools <a href="https://www.npmjs.com/package/openai-function-calling-tools"><img src="https://img.shields.io/npm/v/openai-function-calling-tools" alt="Current version"></a> [![LICENSE](https://img.shields.io/github/license/JohannLai/openai-function-calling-tools)](https://github.com/JohannLai/openai-function-calling-tools/blob/main/LICENSE) [![codecov](https://codecov.io/github/JohannLai/openai-function-calling-tools/branch/main/graph/badge.svg?token=G85I4DWX8Q)](https://codecov.io/github/JohannLai/openai-function-calling-tools) <img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release"> <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome"> --- OpenAI Function calling tools OpenAI Function calling tools is a repository that offers a set of tools to help you easy to build a function calling model with OpenAI API. [More information about function calling](https://platform.openai.com/docs/guides/gpt/function-calling) Sample: https://chatFn.io <img width="1387" alt="image" src="https://github.com/JohannLai/openai-function-calling-tools/assets/10769405/cc0f8565-d556-4325-afb6-bfefe912cc87"> ## 🪓 Tools The repo provides the following tools you can use out of the box: - 🗺️ ShowPoisOnMap: A tool that can show points of interest on a map. - 🌐 ReverseGeocode: A tool that can convert coordinates into a human-readable address. - ⏰ Clock: A clock that can tell you the time. - 🧮 Calculator: A simple calculator that can do basic arithmetic. Input should be a math expression. - 🔍 GoogleCustomSearch: A wrapper around the Google Custom Search API. Useful for when you need to answer questions about current events. Input should be a search query. - 🔍 BingCustomSearch: A wrapper around the Bing Custom Search API. Useful for when you need to answer questions about current events. Input should be a search query. - 🔍 SerperCustomSearch: A wrapper around the SerpAPI. Useful for when you need to answer questions about current events. Input should be a search query. - 🏞️ SerperImagesSearch: Use SerpAPI to search images. Input should be a search query. - 📁 fs: WriteFileTool abd ReadFileTool access to the file system. Input should be a file path and text written to the file. - 🪩 webbrowser: A web browser that can open a website. Input should be a URL. - 🚧 sql: Input to this tool is a detailed and correct SQL query, output is a result from the database. - 🚧 JavaScriptInterpreter: A JavaScript interpreter. Input should be a JavaScript program string. > You can use `{ Tool }` factory function to create a tool instance. See `/tools` for more examples. ## 📦 Quick Install ```bash npm install openai-function-calling-tools ``` ## 📖 Usage ### Example 1: Function Calls use JavaScriptInterpreter to calculate 0.1 + 0.2 ```js import { Configuration, OpenAIApi } from "openai"; import { createCalculator } from "openai-function-calling-tools" const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration); const QUESTION = "What is 100*2?"; const messages = [ { role: "user", content: QUESTION, }, ]; # ✨ STEP 1: new the tools you want to use const [calculator, calculatorSchema] = createCalculator(); # ✨ STEP 2: add the tools to the functions object const functions = { calculator, }; const getCompletion = async (messages) => { const response = await openai.createChatCompletion({ model: "gpt-3.5-turbo-0613", messages, # ✨ STEP 3: add the tools to the schema functions: [calculatorSchema], temperature: 0, }); return response; }; console.log("Question: " + QUESTION); let response = await getCompletion(messages); if (response.data.choices[0].finish_reason === "function_call") { const fnName = response.data.choices[0].message.function_call.name; const args = response.data.choices[0].message.function_call.arguments; console.log("Function call: " + fnName); console.log("Arguments: " + args); # ✨ STEP 4: call the function const fn = functions[fnName]; const result = fn(JSON.parse(args)); console.log("Calling Function Result: " + result); messages.push({ role: "assistant", content: null, function_call: { name: fnName, arguments: args, }, }); messages.push({ role: "function", name: fnName, content: JSON.stringify({ result: result }), }); // call the completion again response = await getCompletion(messages); console.log(response.data.choices[0].message.content); } ``` ### Example 2: Function Calls with Google Custom Search > 📝 Note: You need to apply for a Google Custom Search API key and a Google Custom Search Engine ID to use this tool. #### The following is a sequence diagram of the example ```mermaid sequenceDiagram participant U as User participant M as Main Function participant O as OpenAI API participant F as Functions Object participant GC as Google Custom Search U->>M: Execute main function M->>M: Initialize configuration and API M->>M: Define QUESTION variable M->>M: Create Google Custom Search tool M->>F: Add tool to functions object loop Chat Completion Loop M->>O: Request chat completion O-->>M: Return response alt If finish reason is "stop" M->>U: Display answer and exit loop else If finish reason is "function_call" M->>M: Parse function call name and arguments M->>F: Invoke corresponding function F->>GC: Perform Google Custom Search GC-->>F: Return search results F->>M: Receive function result M->>M: Add result to message queue M->>M: Output function call details else Other cases M->>M: Continue loop end end ``` #### Code ```js const { Configuration, OpenAIApi } = require("openai"); const { createGoogleCustomSearch } = require("openai-function-calling-tools"); const main = async () => { const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration); const QUESTION = "How many tesla model 3 sale in 2022?" const messages = [ { role: "user", content: QUESTION, }, ]; // ✨ STEP 1: new the tools you want to use const [googleCustomSearch, googleCustomSearchSchema] = createGoogleCustomSearch({ apiKey: process.env.GOOGLE_API_KEY, googleCSEId: process.env.GOOGLE_CSE_ID, }); // ✨ STEP 2: add the tools to the functions object const functions = { googleCustomSearch, }; const getCompletion = async (messages) => { const response = await openai.createChatCompletion({ model: "gpt-3.5-turbo-0613", messages, // ✨ STEP 3: add the tools schema to the functions parameter functions: [googleCustomSearchSchema], temperature: 0, }); return response; }; let response; console.log("Question: " + QUESTION); while (true) { response = await getCompletion(messages); if (response.data.choices[0].finish_reason === "stop") { console.log(response.data.choices[0].message.content); break; } else if (response.data.choices[0].finish_reason === "function_call") { const fnName = response.data.choices[0].message.function_call.name; const args = response.data.choices[0].message.function_call.arguments; const fn = functions[fnName]; const result = await fn(JSON.parse(args)); console.log(`Function call: ${fnName}, Arguments: ${args}`); console.log(`Calling Function ${fnName} Result: ` + result); messages.push({ role: "assistant", content: "", function_call: { name: fnName, arguments: args, }, }); messages.push({ role: "function", name: fnName, content: JSON.stringify({ result: result }), }); } } }; main(); ``` ### Example 3: Schema Extraction Example to extract schema from a function call Tree structure: ```js import { Configuration, OpenAIApi } from "openai"; const configuration = new Configuration({ apiKey: process.env.OPENAI_API_KEY, }); const openai = new OpenAIApi(configuration); const getCompletion = async (messages) => { const response = await openai.createChatCompletion({ model: "gpt-3.5-turbo-0613", messages: [ { role: "user", content: `root ├── folder1 │ ├── file1.txt │ └── file2.txt └── folder2 ├── file3.txt └── subfolder1 └── file4.txt` }, ], functions: [ { "name": "buildTree", "description": "build a tree structure", "parameters": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the node" }, "children": { "type": "array", "description": "The tree nodes", "items": { "$ref": "#" } }, "type": { "type": "string", "description": "The type of the node", "enum": [ "file", "folder" ] } }, "required": [ "name", "children", "type" ] } } ], temperature: 0, }); return response; }; let response = await getCompletion(); if (response.data.choices[0].finish_reason === "function_call") { const args = response.data.choices[0].message.function_call.arguments; // 🌟 output the Tree structure data console.log(args); } ``` ## 💻 Supported Environments - Node.js v16 or higher - Cloudflare Workers - Vercel / Next.js (Backend, Serverless and Edge functions 🔥) - Supabase Edge Functions - 🚧 Browser ## 🛡️ Safe for Production [![Security Status](https://www.murphysec.com/platform3/v31/badge/1671046841000607744.svg)](https://www.murphysec.com/console/report/1671046840954470400/1671046841000607744) ## 🌟 Inspiration - LangChainAI
🛠 openai function calling tools for JS/TS
function-calling,javascript,openai,openai-api,tools,functions
2023-06-16T06:54:27Z
2024-01-30T14:06:15Z
null
1
4
100
4
22
264
null
MIT
TypeScript
tychozzz/gpt-web-terminal
master
<p align="center"> <img src="https://lty-image-bed.oss-cn-shenzhen.aliyuncs.com/blog/GPT.png" width="200" height="200"> </p> <div align="center"> # GPT Terminal <!-- prettier-ignore-start --> <!-- markdownlint-disable-next-line MD036 --> _✨ Open GPT like a programmer! Customize your own GPT terminal. ✨_ <!-- prettier-ignore-end --> <p align="center"> <img src="https://img.shields.io/github/v/release/ltyzzzxxx/gpt-web-terminal?display_name=tag" /> <img src="https://img.shields.io/github/stars/ltyzzzxxx/gpt-web-terminal" /> <img src="https://img.shields.io/github/forks/ltyzzzxxx/gpt-web-terminal" /> <img src="https://img.shields.io/github/issues/ltyzzzxxx/gpt-web-terminal" /> <img src="https://img.shields.io/badge/license-Apache%20-yellow.svg" /> </p> </div> [English Doc](./README_EN.md) | [中文文档](./README_CN.md) ## Introduction GPT Terminal is a platform that allows you to have free conversations with GPT in the terminal. Here, you can easily implement more customized functionalities and have your own GPT terminal! The project is implemented based on Vue3 and Express. [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/2S2-Da) ## Preview Demo Link:https://gpt-terminal.up.railway.app/ ![gpt-terminal-demo](https://github.com/ltyzzzxxx/gpt-web-terminal/assets/73587471/dee28750-b86b-45a1-a8b2-8357b3e27a25) ## Features - ✨ Support dialogue between command-line terminal and GPT. As programmers, we communicate with GPT in a geeky way! - 🌟 Support configuration of API Key (OpenAI API method) and Access Token (Web API method) - either one can be chosen. - 🌈 Support DIY of GPT roles and persist them. Have conversations with your exclusive role! - ☁️ Support GPT to remember the conversation history and provide commands to query the history. Give your GPT a good memory~ - 🍀 Support the widely-used Event Stream technology for GPT responses, achieving a typewriter effect~ - 🌴 Support rendering GPT responses in Markdown format. - 🍃 Basic terminal commands such as viewing command history, accessing help manuals, clearing the screen, etc. ## Quick Start You only need to have a basic understanding of using `npm` to unlock all the features! 1. Clone the project to your local machine. ```bash git clone https://github.com/ltyzzzxxx/gpt-web-terminal.git ``` 2. Navigate to the project directory and install dependencies for the frontend and backend separately. ```bash cd gpt-web-terminal && npm install cd service && npm install ``` 3. Configure your API Key or Access Token in `service/.env`. API key takes priority. ``` # Choose either API Key (OpenAI API method) or Access Token (Web API method) OPENAI_API_KEY= OPENAI_ACCESS_TOKEN= # Configure reverse proxy address when using Access Token API_REVERSE_PROXY= ``` 4. Run the frontend. ```bash npm run dev ``` 5. Run the backend. ```bash npm run start ``` 6. Quickly unlock command usage - use the help command in the command-line to query the usage. ```bash # Query all command help help # Query specific command help gpt -h gpt chat -h gpt role -h gpt history -h ``` ## How to Design Your Own GPT Role? Use the following command to start the role `DIY` process ```bash # k - Role unique identifier, e.g., default / cli / sql / ikun # n - Role name, e.g., Command-line Translation Assistant, SQL-BOY # d - Role description, e.g., Translate your natural language instructions into Windows/Unix terminal commands gpt diy <-k GPT role unique identifier> <-n GPT role name> <-d GPT role description> ``` ## Special Thanks This project was inspired by [YuIndex](https://github.com/liyupi/yuindex),and eventually transformed it into "GPT Terminal". - [@程序员鱼皮](https://github.com/liyupi) - [@MagicCube](https://github.com/MagicCube) - [@Overtrue](https://github.com/Overtrue) ## Open Source License Apache License Version 2.0 see http://www.apache.org/licenses/LICENSE
✨ Open ChatGPT with Programmer's Approach! GPT Terminal is a platform that allows you to communicate with GPT in a terminal.
chatgpt,express,gpt,javascript,nodejs,openai,terminal,typescript,vue3,cli
2023-06-10T16:16:55Z
2023-08-03T03:56:24Z
2023-07-28T11:29:18Z
1
0
80
1
25
210
null
Apache-2.0
TypeScript
sksalahuddin2828/JavaScript
main
# HTML_CSS_JavaScript Education Purpose Only
Explore something new
javascript
2023-06-13T18:29:28Z
2023-08-29T06:32:09Z
null
1
0
57
0
128
174
null
null
JavaScript
fayazara/feedbackjar
main
# Feedbackjar An open source feedback management, public roadmap, and changelog platform. The goal of feedbackjar is to empower product teams to effortlessly gather feedback, track issues, and seamlessly manage them with public roadmaps and provide updates via changelogs. Unlike Open source projects, Github acts as a de facto feedback management platform, most businesses, apps and platforms are not open source, they miss out on the same experience that open source projects enjoy. Feedbackjar aims to solve this problem by providing a platform to do the same ![Feedbackjar preview](https://feedbackjar.app/feedbackjar-dashboard.png) > **NOTE** > The initial project, named Emailjar, was envisioned as a fictional app aimed at collecting email addresses, functioning as a simple CRUD application. It drew inspiration from [@shadcn's](https://twitter.com/shadcn) Taxonomy [Project](https://tx.shadcn.com/), as mentioned in this [tweet](https://twitter.com/fayazara/status/1673915381499727872). I wanted to build something similar with Nuxt 3, Turso, and Vue. However, after receiving feedback from some people and considering the lack of real-world use cases for Emailjar, I have decided to pivot the project towards an actual platform that solves a genuine problem. The new project, Feedbackjar, will be an alternative to Canny.io, Beamer, Frill etc. ## What does this platform actually do? Most applications need a way to collect feedback, report bugs, and track issues. We will provide you tools to do so and manage them in an efficient way. - Collect feedback from your users, using our widgets for React, Vue, HTML projects, apis for mobile apps etc. You will also get public pages for collecting feedback. - Manage feedback and issues, close, mark them as resolved etc or move them to the public board where others can vote them up or down. - Move issues to the public roadmap, where your users can see what is being worked on and what is coming next. - Publish changelogs and updates to your users, feedbackjar will also provide you widgets/apis for embedding the changelogs on your website or app and it will even provide you standalone pages for your changelogs. ## Features - Collect Feedback - Manage Feedback - Public Roadmap - Changelogs - Embeddable Widgets - APIs - Public Pages - Authentication via Github, Google, Email password - Self hostable - Open source - Webhooks - Integrations with Slack, Discord, Telegram, etc. ## v0.1 Public release roadmap We plan to get the feedback collection and management features out as soon as possible, we wui - [x] Kickstart the project - [x] Add a landing page - [x] Project layout, routing, and navigation - [x] Authentication via Github - [ ] Projects CRUD - [x] Create projects - [x] List projects - [x] View project - [ ] Update project - [ ] Delete project - [ ] Feedback CRUD - [x] Create feedback - [x] List feedback - [x] View feedback - [ ] Update feedback - [ ] Delete feedback - [] Feedback Dashboard - [x] Feedback Details - View - [ ] Feedback Details - Edit - [ ] Feedback Management - - [ ] Update status - [ ] Update priority - [ ] Feedback Widget - Embeddable widget for collecting feedback - [ ] Feedback Analytics - [x] Stats queried by project - [ ] Feedback Widget Documentation - [ ] Feedback API and API key management. ## v0.2 Future tasks - [ ] Public Roadmap - [ ] Changelogs - [ ] Embeddable Changelog Widget - [ ] Embeddable Public Roadmap Widget - [ ] Public Pages ## v0.3 Future tasks - [ ] User management - [ ] Team management - [ ] Integrations - [ ] Webhooks ## Cloud release - [ ] Subscriptions using Stripe - Free and Paid plans ## If you want to setup the project locally Pre-requisites: - Node 16.x or higher - Yarn or NPM or PNPM (change the manager accordingly in the commands below) 1. Install the dependencies: ```bash # yarn yarn install ``` ## Development Server Start the development server on `http://localhost:3000`: ```bash # yarn yarn db:migrate # You only need to run this the first time and when you make changes to the database schema yarn dev # For starting the development server yarn db:deploy # For deploying the migrations to your turso ``` ## Production Build the application for production: ```bash # yarn yarn build ``` ## Environment variables needed | Variable Name | Description | | --------------------------- | -------------------------- | | `NUXT_GITHUB_CLIENT_ID` | Github OAuth Client ID | | `NUXT_GITHUB_CLIENT_SECRET` | Github OAuth Client Secret | | `NUXT_SESSION_SECRET` | Session Secret | | `NUXT_SESSION_PASSWORD` | Session Password | | `TURSO_DB_URL` | Turso DB URL | | `TURSO_DB_TOKEN` | Turso DB Token | ### How to get these values? **<u>Github OAuth Client ID and Client Secret</u>** create a [GitHub Oauth Application](https://github.com/settings/applications/new) and enter the below values when prompted, you will need to create two github applications, one for development and one for production. Development 1. Homepage url: http://localhost:3000 2. Callback url: http://localhost:3000/api/auth/github Production 1. Homepage url: https://<YOUR_APPLICATION_URL> 2. Callback url: https://<YOUR_APPLICATION_URL>/api/auth/github **<u>Nuxt session</u>** You can create a session secret and password using the below command: ```bash openssl rand -base64 32 ``` **<u>Turso DB URL and Token</u>** 1. Sign up for Turso at https://turso.tech 2. Install the Turso CLI with the [docs here.](https://docs.turso.tech/tutorials/get-started-turso-cli/step-01-installation) 3. Login to Turso CLI with `turso auth login` 4. Create a new database with `turso db create feedbackjar` 5. Create a new token with `turso db tokens create feedbackjar` 6. Copy the token and the database url and add them to your environment variables. You can read more about Turso DB [here](https://docs.turso.tech/reference/turso-cli). ## Pre Deployment Notes Before you deploy the application to production 1. Make sure you have pushed the migration files to your production server, you can do so using `yarn db:deploy`, Drizzle ORM will read the config and run the migrations on your production database, i.e Turso DB. 2. Make sure you have set the environment variables on your production server.
Feedbackjar empowers product teams to effortlessly gather feedback, track issues, and seamlessly manage them with public roadmaps and provide updates via changelogs.
javascript,sqlite,tailwindcss,vue
2023-06-28T04:53:39Z
2024-02-24T20:29:40Z
null
4
18
96
3
11
141
null
MIT
Vue
le0pard/re2js
main
# RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching [![Test/Build/Deploy](https://github.com/le0pard/re2js/actions/workflows/tests.yml/badge.svg)](https://github.com/le0pard/re2js/actions/workflows/tests.yml) ## [Playground](https://re2js.leopard.in.ua/) ## TLDR The built-in JavaScript regular expression engine can, under certain special combinations, run in exponential time. This situation can trigger what's referred to as a [Regular Expression Denial of Service (ReDoS)](https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS). RE2, a different regular expression engine, can effectively safeguard your Node.js applications from ReDoS attacks. With RE2JS, this protective feature extends to browser environments as well, enabling you to utilize the RE2 engine more comprehensively. ## What is RE2? RE2 is a regular expression engine designed to operate in time proportional to the size of the input, ensuring linear time complexity. RE2JS, on the other hand, is a pure JavaScript port of the [RE2 library](https://github.com/google/re2) — more specifically, it's a port of the [RE2/J library](https://github.com/google/re2j). JavaScript standard regular expression package, [RegExp](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions), and many other widely used regular expression packages such as PCRE, Perl and Python use a backtracking implementation strategy: when a pattern presents two alternatives such as a|b, the engine will try to match subpattern a first, and if that yields no match, it will reset the input stream and try to match b instead. If such choices are deeply nested, this strategy requires an exponential number of passes over the input data before it can detect whether the input matches. If the input is large, it is easy to construct a pattern whose running time would exceed the lifetime of the universe. This creates a security risk when accepting regular expression patterns from untrusted sources, such as users of a web application. In contrast, the RE2 algorithm explores all matches simultaneously in a single pass over the input data by using a nondeterministic finite automaton. There are certain features of PCRE or Perl regular expressions that cannot be implemented in linear time, for example, backreferences, but the vast majority of regular expressions patterns in practice avoid such features. ## Installation To install RE2JS: ```bash # npm npm install re2js # yarn yarn add re2js # pnpm pnpm add re2js # bun bun add re2js ``` ## Usage This document provides a series of examples demonstrating how to use RE2JS in your code. For more detailed information about regex syntax, please visit this page: [Google RE2 Syntax Documentation](https://github.com/google/re2/wiki/Syntax). You can utilize ECMAScript (ES6) imports to import and use the RE2JS library: ```js import { RE2JS } from 're2js' ``` If you're using CommonJS, you can `require` the library: ```js const { RE2JS } = require('re2js') ``` ### Compiling Patterns You can compile a regex pattern using the `compile()` function: ```js import { RE2JS } from 're2js' const p = RE2JS.compile('abc'); console.log(p.pattern()); // Outputs: 'abc' console.log(p.flags()); // Outputs: 0 ``` The `compile()` function also supports flags: ```js import { RE2JS } from 're2js' const p = RE2JS.compile('abc', RE2JS.CASE_INSENSITIVE | RE2JS.MULTILINE); console.log(p.pattern()); // Outputs: 'abc' console.log(p.flags()); // Outputs: 5 ``` Supported flags: ```js /** * Flag: case insensitive matching. */ RE2JS.CASE_INSENSITIVE /** * Flag: dot ({@code .}) matches all characters, including newline. */ RE2JS.DOTALL /** * Flag: multiline matching: {@code ^} and {@code $} match at beginning and end of line, not just * beginning and end of input. */ RE2JS.MULTILINE /** * Flag: Unicode groups (e.g. {@code \p\ Greek\} ) will be syntax errors. */ RE2JS.DISABLE_UNICODE_GROUPS /** * Flag: matches longest possible string (changes the match semantics to leftmost-longest). */ RE2JS.LONGEST_MATCH ``` ### Checking for Matches RE2JS allows you to check if a string matches a given regex pattern using the `matches()` function ```js import { RE2JS } from 're2js' RE2JS.matches('ab+c', 'abbbc') // true RE2JS.matches('ab+c', 'cbbba') // false // or RE2JS.compile('ab+c').matches('abbbc') // true RE2JS.compile('ab+c').matches('cbbba') // false // with flags RE2JS.compile('ab+c', RE2JS.CASE_INSENSITIVE).matches('AbBBc') // true RE2JS.compile( '^ab.*c$', RE2JS.DOTALL | RE2JS.MULTILINE | RE2JS.CASE_INSENSITIVE ).matches('AB\nc') // true ``` ### Finding Matches To find a match for a given regex pattern in a string, you can use the `find()` function ```js import { RE2JS } from 're2js' RE2JS.compile('ab+c').matcher('xxabbbc').find() // true RE2JS.compile('ab+c').matcher('cbbba').find() // false // with flags RE2JS.compile('ab+c', RE2JS.CASE_INSENSITIVE).matcher('abBBc').find() // true ``` The `find()` method searches for a pattern match in a string starting from a specific index ```js import { RE2JS } from 're2js' const p = RE2JS.compile('.*[aeiou]') const matchString = p.matcher('abcdefgh') matchString.find(0) // true matchString.group() // 'abcde' matchString.find(1) // true matchString.group() // 'bcde' matchString.find(4) // true matchString.group() // 'e' matchString.find(7) // false ``` ### Checking Initial Match The `lookingAt()` method determines whether the start of the given string matches the pattern ```js import { RE2JS } from 're2js' RE2JS.compile('abc').matcher('abcdef').lookingAt() // true RE2JS.compile('abc').matcher('ab').lookingAt() // false ``` Note that the `lookingAt` method only checks the start of the string. It does not search the entire string for a match ### Splitting Strings You can split a string based on a regex pattern using the `split()` function ```js import { RE2JS } from 're2js' RE2JS.compile('/').split('abcde') // ['abcde'] RE2JS.compile('/').split('a/b/cc//d/e//') // ['a', 'b', 'cc', '', 'd', 'e'] RE2JS.compile(':').split(':a::b') // ['', 'a', '', 'b'] ``` The `split()` function also supports a limit parameter ```js import { RE2JS } from 're2js' RE2JS.compile('/').split('a/b/cc//d/e//', 3) // ['a', 'b', 'cc//d/e//'] RE2JS.compile('/').split('a/b/cc//d/e//', 4) // ['a', 'b', 'cc', '/d/e//'] RE2JS.compile('/').split('a/b/cc//d/e//', 9) // ['a', 'b', 'cc', '', 'd', 'e', '', ''] RE2JS.compile(':').split('boo:and:foo', 2) // ['boo', 'and:foo'] RE2JS.compile(':').split('boo:and:foo', 5) // ['boo', 'and', 'foo'] ``` ### Working with Groups RE2JS supports capturing groups in regex patterns #### Group Count You can get the count of groups in a pattern using the `groupCount()` function ```js import { RE2JS } from 're2js' RE2JS.compile('(.*)ab(.*)a').groupCount() // 2 RE2JS.compile('(.*)((a)b)(.*)a').groupCount() // 4 RE2JS.compile('(.*)(\\(a\\)b)(.*)a').groupCount() // 3 ``` #### Named Groups You can access the named groups in a pattern using the `namedGroups()` function ```js import { RE2JS } from 're2js' RE2JS.compile('(?P<foo>\\d{2})').namedGroups() // { foo: 1 } RE2JS.compile('(?<bar>\\d{2})').namedGroups() // { bar: 1 } RE2JS.compile('\\d{2}').namedGroups() // {} RE2JS.compile('(?P<foo>.*)(?P<bar>.*)').namedGroups() // { foo: 1, bar: 2 } ``` #### Group Content The `group()` method retrieves the content matched by a specific capturing group ```js import { RE2JS } from 're2js' const p = RE2JS.compile('(a)(b(c)?)d?(e)') const matchString = p.matcher('xabdez') if (matchString.find()) { matchString.group(0) // 'abde' matchString.group(1) // 'a' matchString.group(2) // 'b' matchString.group(3) // null matchString.group(4) // 'e' } ``` #### Named Group Content The `group()` method retrieves the content matched by a specific name of capturing group ```js import { RE2JS } from 're2js' // example with `(?P<name>expr)` const p = RE2JS.compile( '(?P<baz>f(?P<foo>b*a(?P<another>r+)){0,10})(?P<bag>bag)?(?P<nomatch>zzz)?' ) const matchString = p.matcher('fbbarrrrrbag') if (matchString.matches()) { matchString.group('baz') // 'fbbarrrrr' matchString.group('foo') // 'bbarrrrr' matchString.group('another') // 'rrrrr' matchString.group('bag') // 'bag' matchString.group('nomatch') // null } // example with `(?<name>expr)` const m = RE2JS.compile( '(?<baz>f(?<foo>b*a))' ) const mString = m.matcher('fbba') if (mString.matches()) { mString.group('baz') // 'fbba' mString.group('foo') // 'bba' } ``` ### Replacing Matches RE2JS allows you to replace all occurrences or the first occurrence of a pattern match in a string with a specific replacement string #### Replacing All Occurrences The `replaceAll()` method replaces all occurrences of a pattern match in a string with the given replacement ```js import { RE2JS } from 're2js' RE2JS.compile('Frog') .matcher("What the Frog's Eye Tells the Frog's Brain") .replaceAll('Lizard') // "What the Lizard's Eye Tells the Lizard's Brain" RE2JS.compile('(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)') .matcher('abcdefghijklmnopqrstuvwxyz123') .replaceAll('$10$20') // 'jb0wo0123' ``` Note that the replacement string can include references to capturing groups from the pattern Parameters: - `replacement (String)`: The string that replaces the substrings found. Capture groups and special characters in the replacement string have special behavior. For example: - `$0` refers to the entire matched substring - `$1, $2, ...` refer to the corresponding capture groups in the pattern - `\$` inserts a literal `$` - `${name}` can be used to reference named capture groups - on invalid group - throw exception - `perlMode (Boolean)`: If set to `true`, the replacement follows Perl/JS's rules for replacement. Defaults to `false`. If `perlMode = true`, changed rules for capture groups and special characters: - `$&` refers to the entire matched substring - `$1, $2, ...` refer to the corresponding capture groups in the pattern - `$$` inserts a literal `$` - `$<name>` can be used to reference named capture groups - on invalid group - ignore it Examples: ```js import { RE2JS } from 're2js' RE2JS.compile('(\\w+) (\\w+)') .matcher('Hello World') .replaceAll('$0 - $0') // 'Hello World - Hello World' RE2JS.compile('(\\w+) (\\w+)') .matcher('Hello World') .replaceAll('$& - $&', true) // 'Hello World - Hello World' ``` #### Replacing the First Occurrence The `replaceFirst()` method replaces the first occurrence of a pattern match in a string with the given replacement ```js import { RE2JS } from 're2js' RE2JS.compile('Frog') .matcher("What the Frog's Eye Tells the Frog's Brain") .replaceFirst('Lizard') // "What the Lizard's Eye Tells the Frog's Brain" RE2JS.compile('(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)') .matcher('abcdefghijklmnopqrstuvwxyz123') .replaceFirst('$10$20') // 'jb0nopqrstuvwxyz123' ``` Function support second argument `perlMode`, which work in the same way, as for `replaceAll` function ### Escaping Special Characters The `quote()` method returns a literal pattern string for the specified string. This can be useful if you want to search for a literal string pattern that may contain special characters ```js import { RE2JS } from 're2js' const regexp = RE2JS.quote('ab+c') // 'ab\\+c' RE2JS.matches(regexp, 'ab+c') // true RE2JS.matches(regexp, 'abc') // false ``` ## Performance The RE2JS engine runs more slowly compared to native RegExp objects. This reduced speed is also noticeable when comparing RE2JS to the original RE2 engine. The C++ implementation of the RE2 engine includes both NFA (Nondeterministic Finite Automaton) and DFA (Deterministic Finite Automaton) engines, as well as a variety of optimizations. Russ Cox ported a simplified version of the NFA engine to Go. Later, Alan Donovan ported the NFA-based Go implementation to Java. I then ported the NFA-based Java implementation to a pure JS version. This is another reason why the pure JS version will perform more slowly compared to the original RE2 engine. Should you require high performance on the server side when using RE2, it would be beneficial to consider the following packages for JS: - [Node-RE2](https://github.com/uhop/node-re2/): A powerful RE2 package for Node.js - [RE2-WASM](https://github.com/google/re2-wasm/): This package is a WASM wrapper for RE2. Please note, as of now, it does not work in browsers ### RE2JS vs JavaScript's native RegExp These examples illustrate the performance comparison between the RE2JS library and JavaScript's native RegExp for both a simple case and a ReDoS (Regular Expression Denial of Service) scenario ```js const regex = 'a+' const string = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!' RE2JS.compile(regex).matcher(string).find() // avg: 5.657783601 ms new RegExp(regex).test(string) // avg: 1.504824999 ms ``` The result shows that the RE2JS library took around **5.66 ms** on average to find a match, while the native RegExp took around **1.50 ms**. This indicates that, in this case, RegExp performed faster than RE2JS ```js const regex = '([a-z]+)+$' const string = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!' RE2JS.compile(regex).matcher(string).find() // avg: 3.6155000030994415 ms new RegExp(regex).test(string) // avg: 103768.25712499022 ms ``` In the second example, a ReDoS scenario is depicted. The regular expression `([a-z]+)+$` is a potentially problematic one, as it has a nested quantifier. Nested quantifiers can cause catastrophic backtracking, which results in high processing time, leading to a potential Denial of Service (DoS) attack if a malicious user inputs a carefully crafted string. The string is the same as in the first example, which does not pose a problem for either RE2JS or RegExp under normal circumstances. However, when dealing with the nested quantifier, RE2JS took around **3.62 ms** to find a match, while RegExp took significantly longer, around **103768.26 ms (~103 seconds)**. This demonstrates that RE2JS is much more efficient in handling potentially harmful regular expressions, thus preventing ReDoS attacks. In conclusion, while JavaScript's native RegExp might be faster for simple regular expressions, RE2JS offers significant performance advantages when dealing with complex or potentially dangerous regular expressions. RE2JS provides protection against excessive backtracking that could lead to performance issues or ReDoS attacks. ## Rationale for RE2 JavaScript port There are several reasons that underscore the importance of having an RE2 vanilla JavaScript (JS) port. Firstly, it enables RE2 JS validation on the client side within the browser. This is vital as it allows the implementation and execution of regular expression operations directly in the browser, enhancing performance by reducing the necessity of server-side computations and back-and-forth communication. Secondly, it provides a platform for simple RE2 parsing, specifically for the extraction of regex groups. This feature is particularly useful when dealing with complex regular expressions, as it allows for the breakdown of regex patterns into manageable and identifiable segments or 'groups'. These factors combined make the RE2 vanilla JS port a valuable tool for developers needing to work with complex regular expressions within a browser environment. ## Development Some files like `CharGroup.js` and `UnicodeTables.js` is generated and should be edited in generator files ```bash ./tools/scripts/make_perl_groups.pl > src/CharGroup.js yarn node ./tools/scripts/genUnicodeTable.js > src/UnicodeTables.js ``` To run `make_perl_groups.pl` you need to have install perl (version inside `.tool-versions`) [Playground website](https://re2js.leopard.in.ua/) maintained in `www` branch
RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
javascript,js,re2,regex,regex-engine,regexp
2023-06-24T14:04:44Z
2024-05-17T20:23:48Z
2023-12-02T13:53:38Z
1
7
328
0
2
94
null
MIT
JavaScript
tychozzz/gpt-rss
master
<p align="center"> <img width="100" src="https://lty-image-bed.oss-cn-shenzhen.aliyuncs.com/blog/openai.webp" /> </p> <div align="center"> # GPT RSS <!-- prettier-ignore-start --> <!-- markdownlint-disable-next-line MD036 --> ✨ 定时抓取前沿 AIGC / GPT / LLM 文章 ✨ <!-- prettier-ignore-end --> <p align="center"> <img src="https://img.shields.io/github/v/release/ltyzzzxxx/gpt-rss?display_name=tag" /> <img src="https://img.shields.io/github/stars/ltyzzzxxx/gpt-rss" /> <img src="https://img.shields.io/github/forks/ltyzzzxxx/gpt-rss" /> <img src="https://img.shields.io/github/issues/ltyzzzxxx/gpt-rss" /> <img src="https://img.shields.io/badge/license-Apache%20-yellow.svg" /> </p> </div> ## 在线浏览:[https://www.gpt-rss.com/](https://www.gpt-rss.com/) 备用网站:[https://gpt-rss.vercel.app/](https://gpt-rss.vercel.app/) :alarm_clock: 更新时间: 2024-05-21 15:02:37 :rocket: 更新条数: +5 - ![](/assets/dot.png) 表示有更新 ## 查看文章 - [文章来源](/CATEGORIES.md) - [文章标签](/TAGS.md) ## 功能概览 - 采用 Vue3 与 Vant UI 组件库,支持 PC端/移动端 适配,支持搜索、筛选功能 - 采用 Node.js 定时任务,每日定时更新文章 ## 贡献指南 如果你有高质量的 GPT 相关的公众号、订阅号推荐,请提出 [Issue](https://github.com/ltyzzzxxx/gpt-rss/issues),我会及时进行更新,感谢分享! ## 特别鸣谢 感谢 [Front End RSS](https://github.com/ChanceYu/front-end-rss) 提供的开源项目 感谢 [RSSHub](https://github.com/DIYgod/RSSHub) 提供的微信公众号 RSS 链接
📖 根据 RSS 订阅源定时抓取前沿 AIGC / GPT / LLM 相关文章,并实时更新至对应网站。来源:机器之心 / 量子位 / 新智元 / 腾讯AI实验室 / PaperWeekly / 我爱自然语言处理 / AIGC研修社 / ChatGPT
aigc,chatgpt,daily,front-end,gpt,javascript,latest,llm,nodejs,openai
2023-06-27T17:23:38Z
2024-05-21T07:02:37Z
2023-06-30T14:20:13Z
1
0
583
2
12
88
null
null
JavaScript
SyedImtiyaz-1/GetTechProjects
main
# Get IT Projects 🚀 **THIS REPO IS READY FOR HacktoberFest-23 You can start contributing !!!** Use this project to make your first contribution to an open source project on GitHub. Practice making your first pull request to a public repository before doing the real thing! Builds With : `HTML, CSS, Javascript, Node.js, Express.js, MongoDB` This repository is open to all members of the GitHub community. Any member can contribute to this project. ➡ [https://github.com/SyedImtiyaz-1/hacktoberfest/](https://github.com/SyedImtiyaz-1/PreciousServices/) ## New to Open Source ? No worries I will teach you how to contribute : ### Join a 1:1 session with me ➡ https://topmate.io/syedimtiyazali ## What is Hacktoberfest? A month-long celebration from October 1st - 31st sponsored by [Digital Ocean](https://hacktoberfest.digitalocean.com/) and [GitHub](https://github.com/blog/2433-celebrate-open-source-this-october-with-hacktoberfest) to get people involved in [Open Source](https://github.com/open-source). Create your very first pull request to any public repository on GitHub and contribute to the open source developer community. [https://hacktoberfest.digitalocean.com/](https://hacktoberfest.digitalocean.com/) ## How to contribute to this project Here are 3 quick ways to contribute to this project: * Star the Project. * Connect with Project Admin on Linkedin : [https://linkedin.com/in/imtiyaz-sde/](https://linkedin.com/in/imtiyaz-sde/) * Add your name to the `CONTRIBUTORS.md` file. Make a pull request and wait for it to be merged! ## Getting started * Fork this repository (Click the Fork button in the top right of this page, click your Profile Image) * Clone your fork down to your local machine ```markdown git clone https://github.com/SyedImtiyaz-1/PreciousServices- ``` * Create a branch ```markdown git checkout -b "<your_branch_name>" ``` * Make your changes (choose from any task below) * Commit and push ```markdown git add . git commit -m 'Commit message' git push origin <your_branch_name> ``` Starting Point of the Project : </br></br> ![Screenshot from 2023-10-01 22-30-17](https://github.com/SyedImtiyaz-1/PreciousServices-/assets/121503426/49c6715a-d8cb-45b4-97e8-d4b0aef20d1d) </br></br> `The index.html which is the main starting point of the website. You can run it with Live Server.` * Create a new pull request from your forked repository (Click the `New Pull Request` button located at the top of your repo) * Wait for your PR review and merge approval! * __Star this repository__ if you had fun! ### Add your name Add your name to the `CONTRIBUTORS.md` file using the below convention: ```markdown #### Name: [YOUR NAME](GitHub link) - Place: City, State, Country - Bio: Who are you? - GitHub: [GitHub account name](GitHub link) ``` `note : Fill CONTRIBUTING.md only if you're contributed earlier or currently contributing to this project` ## BONUS! * See profiles submitted by fellow coders from around the globe. * Discover some obscure to new and trending languages. ## New to Open Source ? No worries I will teach you how to contribute : ### Join a 1:1 session with me ➡ https://topmate.io/syedimtiyazali ### Connect with Project Admin on Linkedin : [https://linkedin.com/in/imtiyaz-sde/](https://linkedin.com/in/imtiyaz-sde/) ## Our Contributors : <p align="center"><a href="github.com/SyedImtiyaz-1/hacktoberfest/graphs/contributors"> <img src="https://contributors-img.web.app/image?repo=SyedImtiyaz-1/hacktoberfest" /> </a></p>
Make your first Pull Request on this Repo. Don't forget to spread love and give us a ⭐️
javascript
2023-06-20T20:57:50Z
2024-05-22T06:30:43Z
null
59
155
360
0
100
85
null
null
JavaScript
ruidoc/jueblog-combat
main
# jueblog-combat “仿稀土倔金”博客系统,新书《前端开发实战派》的项目实战源码。 - 前端技术栈:`Vue3 + Pinia + TypeScript` - 后端技术栈:`Express + MongoDB + Serverless` 快速掌握 JavaScript 全栈开发能力,成为独立开发者。 ## 能学到什么 能学到的前端知识包括: - Vue3 组合式 API 综合应用。 - Element Plus 框架的使用。 - Axios 全局请求、登录验证、响应拦截、错误处理等。 - Pinia 全局状态管理应用。 - Vue Router 的页面路由设计。 - Marndown 编辑器开发。 - TypeScript 的深度集成。 能学到的后端知识包括: - Node.js 服务端基础。 - Express 搭建 API 基础。 - 路由、请求、响应、中间件等。 - 数据库 MongoDB 的增查改删以及高级查询。 - 基于 mongoose 的数据库文档设计以及验证。 - 基于 jwt 的接口权限验证。 - 用户相关的登录验证、加密验证。 - 全局错误处理,状态码响应。 ## 购买纸质书 开发本项目需要的技术基础+实战详细介绍全在这本书里,如有需要请点击购买;欢迎加作者微信咨询。 <div> <a target="_blank" href="https://item.jd.com/14337084.html"><img src="public/book.png" height="400"/></a> &nbsp;&nbsp;&nbsp;&nbsp; <img src="public/wechat.jpeg" height="400"/> </div> ## 启动项目 将项目下载到本地,然后按照以下步骤运行。 (1)全局安装 `pm2` ```sh $ yarn global add pm2 ``` **pm2** 是流行的 Node.js 进程管理器,安装后使用 `pm2` 命令管理项目。 (2)安装项目依赖 ```sh $ yarn ``` (3)启动项目 ```sh $ yarn run server ``` 此命令执行后,项目前端与后端会同时启动,并支持修改自动更新。可以用 `pm2 ls` 命令查看启动结果: <img src="public/pm2.png"/> 如果想查看日志,使用 `pm2 logs <id>` 命令。如: ```sh $ pm2 logs 1 1|jueblog- | API 启动,监听 9000 端口 1|jueblog- | API 启动,监听 9000 端口 ... ``` ## 配置数据库和请求地址 在 server 目录下找到 `config.example.json` 文件,修改文件中的三个属性: - `mongo_url`:MongoDB 连接地址。 - `mongo_username`:MongoDB 用户名。 - `mongo_password`:MongoDB 密码。 修改后将文件重命名为 `config.json`,配置即可生效。 没有这一步操作,项目启动无法连接数据库。 前端请求的 API 接口根 URL,需要通过环境变量来配置。在根目录下的找到 `.env.local.example` 文件,这里定义了开发环境下的 API 地址: ``` VITE_API_BASEURL=http://localhost:9000 ``` 同样将该文件重命名为 `.env.local`,配置即可生效。 当 API 部署到线上后,需要将这里的 `http://localhost:9000` 更换为线上地址。
Vue3全家桶+Node.js全家桶,全栈开发的“仿稀土掘金”博客系统,可以帮助前端快速掌握全栈开发能力
express,mongodb,typescript,vite,vue3,javascript,nodejs
2023-06-26T21:43:54Z
2024-04-02T00:54:31Z
null
2
1
20
0
10
85
null
null
Vue
MakcRe/KuGouMusicApi
main
#KuGouMusic API 酷狗音乐 NodeJS 版 API ## 灵感来自 [Binaryify/NeteaseCloudMusicApi](https://github.com/Binaryify/NeteaseCloudMusicApi) ## 工作原理 跨站请求伪造 (CSRF), 伪造请求头 , 调用官方 API ## 免责声明 > 1. 本项目仅供学习使用,请尊重版权,请勿利用此项目从事商业行为及非法用途! > 2. 使用本项目的过程中可能会产生版权数据。对于这些版权数据,本项目不拥有它们的所有权。为了避免侵权,使用者务必在 24 小时内清除使用本项目的过程中所产 > 生的版权数据。 > 3. 由于使用本项目产生的包括由于本协议或由于使用或无法使用本项目而引起的任何性质的任何直接、间接、特殊、偶然或结果性损害(包括但不限于因商誉损失、停 > 工、计算机故障或故障引起的损害赔偿,或任何及所有其他商业损害或损失)由使用者负责。 > 4. **禁止在违反当地法律法规的情况下使用本项目。** 对于使用者在明知或不知当地法律法规不允许的情况下使用本项目所造成的任何违法违规行为由使用者承担,本 > 项目不承担由此造成的任何直接、间接、特殊、偶然或结果性责任。 > 5. 音乐平台不易,请尊重版权,支持正版。 > 6. 本项目仅用于对技术可行性的探索及研究,不接受任何商业(包括但不限于广告等)合作及捐赠。 > 7. 如果官方音乐平台觉得本项目不妥,可联系本项目更改或移除。 ### 安装 ```shell $ git clone git@github.com:MakcRe/KuGouMusicApi.git $ cd KuGouMusicApi $ npm install ``` ### 使用接口为概念版 ``` $ 复制 .env.example 为 .env,并且把里面的 `platform` 改为 lite $ **注意不同版本的平台的 token 是不通用的。** ``` ### 运行 ```shell $ npm run dev ``` 服务器启动默认端口为 3000, 若不想使用 3000 端口 , 可使用以下命令 : Mac/Linux ```shell $ PORT=4000 npm run dev ``` windows 下使用 git-bash 或者 cmder 等终端执行以下命令 : ```shell $ set PORT=4000 && npm run dev ``` windows 下使用 PowerShell 等终端执行以下命令 : ```shell $ $Env:PORT=4000; npm run dev ``` 服务器启动默认 host 为 localhost,如果需要更改, 可使用以下命令 : Mac/Linux ```shell $ HOST=127.0.0.1 npm run dev ``` windows 下使用 git-bash 或者 cmder 等终端执行以下命令 : ```shell $ set HOST=127.0.0.1 && npm run dev ``` windows 下使用 PowerShell 等终端执行以下命令 : ```shell $ $Env:HOST=127.0.0.1; npm run dev ``` ## Vercel 部署 ### 操作方法 1. fork 此项目 2. 在 Vercel 官网点击 `New Project` 3. 点击 `Import Git Repository` 并选择你 fork 的此项目并点击 `import` 4. 点击 `PERSONAL ACCOUNT` 的 `select` 5. 直接点 `Continue` 6. 若需要部署版本为概念版(不需要该步骤可以跳过),在 `Environment Variables` 添加 `key` 为 platform,`Value (Will Be Encrypted)` 为 然后点击 `Add` 7. `PROJECT NAME`自己填,`FRAMEWORK PRESET` 选 `Other` 然后直接点 `Deploy` 接着等部署完成即可 ## 功能特性 1. 登录 2. 刷新登录 3. 发送验证码 4. dfid 获取 5. 获取用户歌单 6. 获取用户关注歌手 7. 获取用户最近听歌历史 8. 收藏歌单 9. 取消收藏歌单 10. 对歌单添加歌曲 11. 对歌单删除歌曲 12. 新碟上架 13. 专辑信息 14. 专辑详情 15. 专辑音乐列表 16. 获取音乐 URL 17. 获取歌曲高潮部分 18. 搜索 19. 综合搜索 20. 热搜列表 21. 歌词搜索 22. 获取歌词 23. 歌单分类 24. 歌单 25. 主题歌单 26. 音效歌单 27. 获取歌单详情 28. 获取歌单所有歌曲 29. 获取歌单所有歌曲(新版) 30. 获取主题歌单所有歌曲 31. 获取主题音乐 32. 获取主题音乐详情 33. 歌曲推荐 34. 获取歌手和专辑图片 35. 获取歌手图片 36. 获取音乐相关信息 37. 获取音乐详情 38. 获取音乐专辑/歌手信息 39. 私人 FM(对应手机和 pc 端的猜你喜欢) 40. banner 41. 乐库 banner 42. 乐库电台 43. 乐库 44. 推荐频道 45. 频道 46. 频道图片 47. 频道歌曲 48. 编辑精选 49. 编辑精选数据 50. 编辑精选歌单 51. 编辑精选专区 52. 编辑精选专区详情 53. 领取 VIP(需要登陆,该接口为测试接口) 54. 获取歌手详情 55. 获取歌手专辑 56. 获取歌手单曲 57. 获取歌手 MV 58. 获取视频 url 59. 获取视频相关信息 60. 获取视频详情 61. 新歌速递 62. 场景音乐列表 63. 场景音乐详情 64. 获取场景音乐讨论区 65. 获取场景音乐模块 Tag 66. 获取场景音乐歌单列表 67. 获取场景音乐视频列表 68. 获取场景音乐音乐列表 69. 每日推荐 70. 历史推荐 71. 风格推荐 72. 排行列表 73. 排行榜推荐列表 74. 排行榜往期列表 75. 排行榜信息 76. 排行榜歌曲列表 77. 歌曲评论 78. 歌曲评论-根据分类返回 79. 歌曲评论-根据热词返回 80. 楼层评论 81. 歌单评论 82. 专辑评论 ## License [The MIT License (MIT)](https://github.com/MakcRe/KuGouMusicApi/blob/main/LICENSE)
酷狗音乐 Node.js API service
api,apis,javascript,kugou,kugou-music,nodejs
2023-06-22T07:40:00Z
2024-05-19T04:08:22Z
null
3
2
60
1
46
79
null
MIT
JavaScript
tjtanjin/react-chatbotify
main
<p align="center"> <img width="200px" src="https://raw.githubusercontent.com/tjtanjin/react-chatbotify/main/assets/logo.png" /> <h1 align="center">React ChatBotify</h1> </p> <p align="center"> <a href="https://github.com/tjtanjin/react-chatbotify/actions/workflows/lint.yml"> <img src="https://github.com/tjtanjin/react-chatbotify/actions/workflows/lint.yml/badge.svg" /> </a> <a href="https://github.com/tjtanjin/react-chatbotify/actions/workflows/build.yml"> <img src="https://github.com/tjtanjin/react-chatbotify/actions/workflows/build.yml/badge.svg" /> </a> <a href="https://github.com/tjtanjin/react-chatbotify/actions/workflows/test.yml"> <img src="https://github.com/tjtanjin/react-chatbotify/actions/workflows/test.yml/badge.svg" /> </a> <img src="https://badge.fury.io/js/react-chatbotify.svg" /> </p> ## Table of Contents * [Introduction](#introduction) * [Features](#features) * [Technologies](#technologies) * [Quickstart](#quickstart) * [Documentation](#documentation) * [Team](#team) * [Contributing](#contributing) * [Support](#support) * [Attributions](#attributions) ### Introduction <p align="center"> <img height="400px" src="https://github.com/tjtanjin/react-chatbotify/assets/43908963/761fcbb3-858e-4a9c-846b-4fddaf218dbc" /> </p> React ChatBotify is an intuitive and versatile chatbot library tailored to streamline your development process while providing the flexibility to implement advanced features. It is crafted to meet a wide range of requirements, whether you're building a straightforward FAQ chatbot, an intricate conversational interface or even an integration with Large Language Models (LLMs). React ChatBotify aims to simplify the creation of chatbots by offering a user-friendly experience while accommodating the diverse needs of developers. With its extensive capabilities, you can easily customize and expand your chatbot's functionalities. From basic interactions to sophisticated conversational flows, React ChatBotify empowers you to build chatbots that meet your specific project goals. Head over to our [community showcases](https://github.com/tjtanjin/react-chatbotify/blob/main/SHOWCASES.md) and get inspired to start your own today! `npm install react-chatbotify --save` Note that this repository contains the code for the library. If you're looking for the repository for the React ChatBotify user guide, you may look [here](https://github.com/tjtanjin/react-chatbotify-docs). ### Features React ChatBotify offers a wide array of features designed to enhance your chatbot experience. Here are just a few of the key features: - **Dynamic Attributes:** Create interactive conversations by dynamically generating messages and defining multiple conversation paths based on user inputs. - **Custom Rendering of Components:** Seamlessly integrate your own custom components into the chatbot interface to boast your application's unique design and functionality. - **Stream Responses:** Integrate with LLM models and custom endpoints to stream (or even simulate) your bot responses for an elevated user experience. - **Timeouts and Auto-Transitions:** Set timeouts and automate transitions between chatbot paths, providing users with a guided flow and journey. - **Voice Input & Audio Output:** Enable voice input for users to interact with the chatbot through speech, and leverage audio output capabilities to provide spoken responses or prompts. - **Chat Notifications:** Keep users informed with real-time chat notifications, ensuring they never miss important updates or new messages. - **Checkbox & Options Support:** Utilize checkboxes and options within the chatbot interface, allowing users to select from a list of choices and easily make selections. - **Emoji Picker:** Enhance the chatbot's expression and engagement with users by incorporating emojis into messages, adding a touch of personality and emotion. - **File Attachments:** Seamlessly handle file attachments within the chatbot, enabling users to share and receive documents, images, or other relevant files during conversations. - **Mobile-Friendly Interface:** Provide smooth user experience across various devices with our mobile-friendly chatbot interface. These features, **along with many others**, empower developers to create highly interactive and personalized chatbot experiences tailored to their specific application requirements. ### Technologies Technologies used by React ChatBotify are as below: #### Done with: <p align="center"> <img height="150" width="150" src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/2300px-React-icon.svg.png" /> </p> <p align="center"> ReactJS </p> <p align="center"> <img height="150" width="150" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Typescript_logo_2020.svg/2048px-Typescript_logo_2020.svg.png" /> </p> <p align="center"> Typescript </p> #### Project Repository - https://github.com/tjtanjin/react-chatbotify ### Quickstart For a thorough walkthrough on getting started, you may refer to the [**Quickstart Guide**](https://react-chatbotify.tjtanjin.com/docs/introduction/quickstart/) on the [**Documentation Website**](https://react-chatbotify.tjtanjin.com/). ### Documentation A full documentation (along with a **live playground**) for the library can be found at the following link: - https://react-chatbotify.tjtanjin.com/ Examples on the website are also run on a live editor so feel free to explore to your heart's content! ### Team * [Tan Jin](https://github.com/tjtanjin) ### Contributing If you are looking to contribute to the project, you may find the [**Developer Guide**](https://github.com/tjtanjin/react-chatbotify/blob/main/docs/DeveloperGuide.md) useful. In general, the forking workflow is encouraged and you may open a pull request with clear descriptions on the changes and what they are intended to do (enhancement, bug fixes etc). Alternatively, you may simply raise bugs or suggestions by opening an [**issue**](https://github.com/tjtanjin/react-chatbotify/issues) or raising it up on [**discord**](https://discord.gg/6R4DK4G5Zh). Note: Templates have been created for pull requests and issues to guide you in the process. ### Support If there are any questions pertaining to the application itself (usage or implementation wise), you may create an [**issue**](https://github.com/tjtanjin/react-chatbotify/issues), raise it up on [**discord**](https://discord.gg/6R4DK4G5Zh), or drop me an email at: **cjtanjin@gmail.com.** ### Attributions #### Images Credits are to be given for the following images: - [Logo](https://www.craiyon.com/) - [Bot Avatar](https://www.craiyon.com/) #### Sound Credits are to be given for the notification sound: - [Notification Sound](https://pixabay.com/sound-effects/notifications-sound-127856/) #### Inspirations As I have used similar alternatives at some point in my developer journey, some inspirations have been taken from them and they ought to be credited here: - [Tidio](https://www.tidio.com/) - [React Simple Chatbot](https://github.com/LucasBassetti/react-simple-chatbot) Note: All other media content are hand-drawn unless otherwise stated, feel free to use them!
A modern React library for creating a flexible and extensible chatbot.
chatbot,npm,react,chat,typescript,react-chatbot,javascript
2023-06-18T11:10:19Z
2024-05-20T17:22:11Z
2024-05-19T10:25:10Z
8
33
235
6
34
71
null
MIT
TypeScript
Drako01/55290---JavaScript
main
<p align="center"> <img src="https://jobs.coderhouse.com/assets/logos_coderhouse.png" alt="CoderHouse" height="100"/> </p> # Bienvenidos a la Comisión #55290 <p align="center"> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="Javascript" width="100" height="100"/></a> <a href="https://www.w3.org/html/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="100" height="100"/></a> <a href="https://www.w3schools.com/css/" target="_blank"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="100" height="100"/></a> </p> --- ## Temas Incluidos ### 1er Fase con Entrega ```ssh 1. Conceptos generales: Sintaxis y variables 2. Control de flujos 3. Ciclos e iteraciones 4. Funciones ``` ### 2da Fase con Entrega ```ssh 5. Objetos 6. Arrays 7. Funciones de orden superior 8. DOM ``` ### 3er Fase con Entrega ```ssh 9. Eventos 10. Storage & JSON 11. Workshop 12. Operadores avanzados ``` ### 4ta Fase ```ssh 13. Librerías 14. Asincronía y promesas 15. Ajax & Fetch 16. Frameworks & NodeJS ``` ## Entrega Final: ### El Proyecto Integrador debe incluir todos los temas vistos en el Curso. --- ## Profesor: Alejandro Daniel Di Stefano
Repositorio para uso exclusivo de los Alumnos de la Comisión #55290 de CoderHouse
css3,es6,html5,javascript
2023-06-13T23:51:05Z
2023-06-22T20:51:58Z
null
1
0
6
0
0
68
null
null
null
laisfrigerio/cracking-the-coding-interview-js
main
# Cracking The Coding Interview with JS Soluções em JavaScript dos exercícios do livro "Cracking the Coding Interview" 6ª edição. - Dentro da pasta `solutions`, têm arquivos `.js` para cada exercício. - Dentro da pasta `solutions`, têm arquivos de testes `.test.js` para cada exercício - Para cada exercício, pode haver mais de uma solução ## Lista de exercícios por Capítulos ### Capítulo 1 - [x] [1.1 - Is Unique](./solutions/chapter-1/1.1-is-unique/) - [x] [1.2 - Check Permutation](./solutions/chapter-1/1.2-check-permutation/) - [x] [1.3 - URLify](./solutions/chapter-1/1.3-urlfy/) - [x] [1.4 - Palindrome Permutation](./solutions/chapter-1/1.4-palindrome-permutation/) - [x] [1.5 - One Away](./solutions/chapter-1/1.5-one-away/) - [x] [1.6 - String Compression](./solutions/chapter-1/1.6-string-compressiony/) - [ ] 1.7 - Rotate Matrix - [ ] 1.8 - Zero Matrix - [ ] 1.9 - String Rotation ... ## 🛠️ Tecnologias - nodejs `18.12.1` - jest `^29.5.0` - yarn `1.22.19` ## :gem: Execute os testes ``` yarn install yarn test ``` ## :woman: Autora [@laisfrigerio](https://instagram.com/laisfrigerio/) ## 📄 Licença Este projeto está licenciado sob a licença MIT - consulte o arquivo LICENSE.md para obter detalhes
Cracking the Coding Interview 6th Edition with JavaScript Solutions
algorithms-and-data-structures,coding,coding-interviews,cracking-the-coding-interview,data-structures,data-structures-and-algorithms,dsa,dsa-algorithm,javascript
2023-06-11T14:43:21Z
2023-07-03T00:33:54Z
null
1
23
23
0
0
64
null
MIT
JavaScript
webui-dev/pascal-webui
main
<div align="center"> <img src="https://raw.githubusercontent.com/webui-dev/webui-logo/main/webui_240.png" height="200"> # WebUI Pascal v2.4.0 [![Nightly Build](https://img.shields.io/badge/webui-dev%2Fwebui?style=for-the-badge&label=Nightly%20Build&labelColor=414868&logo=opensourcehardware&logoColor=C0CAF5)](https://github.com/webui-dev/webui/releases/tag/nightly) [![Last commit)](https://img.shields.io/github/last-commit/webui-dev/pascal-webui/main?style=for-the-badge&labelColor=414868&logo=github&logoColor=C0CAF5)](https://github.com/webui-dev/pascal-webui/commits/main) [![Issues](https://img.shields.io/github/issues/webui-dev/pascal-webui?style=for-the-badge&labelColor=414868&logo=serverfault&logoColor=C0CAF5)](https://github.com/webui-dev/pascal-webui/issues) [![Website](https://img.shields.io/website?label=webui.me&style=for-the-badge&url=https://google.com&labelColor=414868&logo=webtrees&logoColor=C0CAF5)](https://webui.me/) WebUI is not a web-server solution or a framework, but it allows you to use any web browser as a GUI, with Pascal in the backend and HTML5 in the frontend. All in a lightweight portable lib. <div align="center"> ![WebUI](https://github.com/webui-dev/pascal-webui/assets/21068718/f88cc1e0-42a3-4422-bf9a-beeff17cc5d6) </div> </div> ## Features - Fully Independent (*No need for any third-party runtimes*) - Lightweight (~250 KB for minimal example, ~350 KB for basic app (no LCL) - including WebUI lib) & Small memory footprint - Fast binary communication protocol between WebUI and the browser (*Instead of JSON*) - Multi-platform & Multi-Browser - Using private profile for safety - Original library written in Pure C ## Minimal Example ```pas program minimal; {$mode objfpc}{$H+} uses webui; var window: size_t; begin window := webui_new_window; webui_show(window, '<html>Hello World<script src="/webui.js"></script></html>'); webui_wait; end. ``` [More examples](https://github.com/webui-dev/pascal-webui/tree/main/examples) ## Text editor This [text editor](https://github.com/webui-dev/pascal-webui/tree/main/examples/Lazarus/text%20editor) is a lightweight and portable example written in Free Pascal and JavaScript using WebUI as the GUI. ![Screenshot](https://github.com/webui-dev/pascal-webui/assets/21068718/685a483b-0230-4365-8378-f7808ba0d55c) ## Documentation [Online documentation](https://webui.me/docs/#/c_api) ## Runtime Dependencies Comparison | | WebView | Qt | WebUI | | ------ | ------ | ------ | ------ | | Runtime Dependencies on Windows | *WebView2* | *QtCore, QtGui, QtWidgets* | ***A Web Browser*** | | Runtime Dependencies on Linux | *GTK3, WebKitGTK* | *QtCore, QtGui, QtWidgets* | ***A Web Browser*** | | Runtime Dependencies on macOS | *Cocoa, WebKit* | *QtCore, QtGui, QtWidgets* | ***A Web Browser*** | ## Supported Web Browsers | Browser | Windows | macOS | Linux | | ------ | ------ | ------ | ------ | | Mozilla Firefox | ✔️ | ✔️ | ✔️ | | Google Chrome | ✔️ | ✔️ | ✔️ | | Microsoft Edge | ✔️ | ✔️ | ✔️ | | Chromium | ✔️ | ✔️ | ✔️ | | Yandex | ✔️ | ✔️ | ✔️ | | Brave | ✔️ | ✔️ | ✔️ | | Vivaldi | ✔️ | ✔️ | ✔️ | | Epic | ✔️ | ✔️ | *not available* | | Apple Safari | *not available* | *coming soon* | *not available* | | Opera | *coming soon* | *coming soon* | *coming soon* | ## UI & The Web Technologies [Borislav Stanimirov](https://ibob.bg/) discusses using HTML5 in the web browser as GUI at the [C++ Conference 2019 (*YouTube*)](https://www.youtube.com/watch?v=bbbcZd4cuxg). <div align="center"> ![CppCon](https://github.com/webui-dev/pascal-webui/assets/21068718/dd5f33ef-1342-407e-8a06-af6287d8e6c6) </div> Web application UI design is not just about how a product looks but how it works. Using web technologies in your UI makes your product modern and professional, And a well-designed web application will help you make a solid first impression on potential customers. Great web application design also assists you in nurturing leads and increasing conversions. In addition, it makes navigating and using your web app easier for your users. ### Why Use Web Browsers? Today's web browsers have everything a modern UI needs. Web browsers are very sophisticated and optimized. Therefore, using it as a GUI will be an excellent choice. While old legacy GUI lib is complex and outdated, a WebView-based app is still an option. However, a WebView needs a huge SDK to build and many dependencies to run, and it can only provide some features like a real web browser. That is why WebUI uses real web browsers to give you full features of comprehensive web technologies while keeping your software lightweight and portable. ### How Does it Work? ![diagram](https://github.com/webui-dev/pascal-webui/assets/21068718/671299d2-05da-4ec9-b1af-28f3d915100c) Think of WebUI like a WebView controller, but instead of embedding the WebView controller in your program, which makes the final program big in size, and non-portable as it needs the WebView runtimes. Instead, by using WebUI, you use a tiny static/dynamic library to run any installed web browser and use it as GUI, which makes your program small, fast, and portable. **All it needs is a web browser**. ## License Licensed under the MIT License.
Use any web browser as GUI, with Pascal in the backend and HTML5 in the frontend.
browser,cross-platform,fpc,freepascal,gui,html,html5,javascript,pascal,ui
2023-06-10T14:41:20Z
2024-01-12T02:21:33Z
2023-10-30T12:40:06Z
5
5
99
0
8
49
null
MIT
Pascal
LottieFiles/relottie
main
# relottie ![CI](https://github.com/lottiefiles/relottie/workflows/Release/badge.svg) ![GitHub contributors](https://img.shields.io/github/contributors/LottieFiles/relottie) ![GitHub](https://img.shields.io/github/license/LottieFiles/relottie) **relottie** is a tool that transforms Lotties with plugins. These plugins can inspect and change. ## Feature highlights * [x] **[ASTs][syntax-tree]** (inspecting and changing content made easy) * [x] **[plugins][]** (plugins you can pick and choose from) ## Intro relottie is a ecosystem of plugins that work with the Lottie file format as structured data, specifically ASTs (abstract syntax trees). ASTs make it easy for programs to deal with Lottie files. We call those programs plugins. Plugins inspect and change trees. You can use the existing plugins or you can make your own. * to learn Lottie, see this [lottie-docs][] and [what-is-lottie][] * for more about us, see [lottiefiles][] * for help, see [contribute][] * for more about [unified][], see [unifiedjs.com][] ## Contents * [What is this?](#what-is-this) * [When should I use this?](#when-should-i-use-this) * [Plugins](#plugins) * [Examples](#examples) * [Syntax](#syntax) * [Syntax tree](#syntax-tree) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Setting up monorepo](#setting-up-monorepo) * [Contribute](#contribute) * [Community & Support](#community-&-support) * [Acknowledgments](#acknowledgments) * [License](#license) ## What is this? You can use plugins to change Lottie. **In**: ```javascript { "v": "5.5.2" } ``` **Plugin**: ```ts import {visit} from 'unist-util-visit' import type { Plugin, Node } from 'unified' import type { Root } from '@lottiefiles/last' const myRelottiePlugin: Plugin<[]> () { function transform (tree: Root, _file: VFile): void { visit(tree, (node) => { if (node.title === 'version') { node.title = "6.0.0" } }) } return transform } ``` **Out**: ```javascript { "v": "6.0.0" } ``` You can use relottie for many different things. **[unified][]** is the core project that transforms content with ASTs. **relottie** adds support for Lottie to unified. **[last][]** is the Lottie AST that relottie uses. This GitHub repository is a monorepo that contains the following packages: * [`last`][last] — Type definitions for Lottie Abstract Syntax Tree (last) * [`last-builder`][last-builder] — Composable functions to easily build syntax tree (last) structures * [`relottie`][relottie-pkg] — a unified processor with support for parsing Lottie input and serializing Lottie as output * [`relottie-parse`][relottie-parse] — plugin to take Lottie as input and turn it into a syntax tree [last][] * [`relottie-stringify`][relottie-stringify] — plugin to take a syntax tree (last) and turn it into Lottie as output * [`relottie-cli`][relottie-cli] — Command line interface to inspect and change Lottie files with relottie * [`relottie-extract-features`][relottie-extract-features] — plugin to extract Lottie features from the document and store them in vfile * [`relottie-metadata`][relottie-metadata] — plugin to extract Lottie metadata from the document and store them in `vfile.data` ## When should I use this? relottie focusses on ASTs and providing an interface for plugins to transform them. Depending on the input you have and output you want, you can use different parts of relottie. If the input is Lottie JSON file, you can use `relottie-parse` with [unified]. If the output is Lottie JSON file, you can use `relottie-stringify` with `unified`. If you need to transform LottieJSON to `.lottie`, you can [dotlottie.js][] ## Plugins relottie plugins deal with Lottie. Some popular examples are: * [relottie-style][] These plugins are exemplary because what they do and how they do it is quite different, respectively to extend Lottie syntax, inspect trees, change trees, and define other output formats. You can choose from the plugins that already exist. Here are three good ways to find plugins: * [List of LF plugins][list-of-plugins] — list of all plugins * [`relottie-plugin` topic][topic] — any tagged repo on GitHub Some plugins are maintained by us here in the [`@lottiefiles`][lottiefiles] organization while others are maintained by folks elsewhere. Anyone can make relottie plugins, so as always when choosing whether to include dependencies in your project, make sure to carefully assess the quality of relottie plugins too. ## Examples * be the first one ;) ## Syntax relottie follows [last][] definitions, [lottie-types][] and [lottie-docs][] title names (with a few changes) Some syntax extensions are supported through plugins. We use [momoa][] JSON parser for our parsing. See its documentation for more information. ## Syntax tree The syntax tree format used in relottie is [last][]. It represents Lottie constructs as JSON objects. **In**: ```javascript { "v": "6.0.0" } ``` **Out**: ```json { "type": "root", "title": "animation", "hasExpressions": false, "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 1, "column": 17, "offset": 16 } }, "children": [ { "type": "attribute", "key": { "type": "key", "position": { "start": { "line": 1, "column": 3, "offset": 2 }, "end": { "line": 1, "column": 6, "offset": 5 } }, "value": "v" }, "title": "version", "position": { "start": { "line": 1, "column": 3, "offset": 2 }, "end": { "line": 1, "column": 15, "offset": 14 } }, "children": [ { "type": "primitive", "value": "6.0.0", "position": { "start": { "line": 1, "column": 8, "offset": 7 }, "end": { "line": 1, "column": 15, "offset": 14 } }, "valueType": "string" } ] } ] } ``` ## Types The relottie organization and the unified as a whole is fully typed with [TypeScript][]. Types for last are available in [last][]. Also have a look at [lottie-types][]. For TypeScript to work, it is particularly important to type your plugins correctly. We strongly recommend using the `Plugin` type from [unified][] with its generics and to use the node types for the syntax trees provided by [last][]. ```ts import type { Root } from '@lottiefiles/last'; import type { Plugin } from 'unified'; export function myRelottiePluginAcceptingOptions(options): Plugin<[Options?], Root> { // `options` is `Options?`. return function (tree, file) { // `tree` is `Root`. } } ``` ## Compatibility As of now, that is Node.js 16.0+, and 18.0+ (other versions have not been tested yet) Our projects sometimes work with older versions, but this is not guaranteed. ## Security As last properties can have [expressions][], and improper use of **last** can open you up to cross-site scripting [cross-site scripting (XSS)][XSS]. Carefully assess each plugin and the risks involved in using them. ## Setting up Monorepo git clone https://github.com/LottieFiles/relottie.git cd relottie pnpm install ### Running in dev mode pnpm dev ### Running test suite pnpm test ### Add a changelog message We use [changeset][] pnpm changelog ### Building pnpm build ### Linting pnpm lint ## Contribute Any contributions are welcome. ## Community & Support * [Github issues][issues]. For bugs and errors you encounter using this player. * [Discord][lf-discord]. For hanging out with the community and sharing your awesome Lottie animations! ## Acknowledgments * [unified][] * [momoa][] * [lottie-docs][] The initial release of this project was authored by [**@aidosmf**][author] ## License [MIT](license) © [LottieFiles][lottiefiles] [author]: http://github.com/aidosmf [unified]: https://github.com/unifiedjs/unified [unifiedjs.com]: https://unifiedjs.com/ [build]: https://github.com/LottieFiles/relottie/actions [typescript]: https://www.typescriptlang.org [momoa]: https://github.com/humanwhocodes/momoa [list-of-plugins]: https://github.com/LottieFiles/relottie/tree/main/packages [changeset]: https://github.com/changesets/changesets [what-is-lottie]: https://lottiefiles.com/what-is-lottie [lottiefiles]: https://github.com/LottieFiles [topic]: https://github.com/topics/relottie-plugin [issues]: https://github.com/LottieFiles/relottie/issues [lottie-docs]: https://lottiefiles.github.io/lottie-docs/ [relottie]: https://github.com/LottieFiles/relottie [last]: https://github.com/LottieFiles/relottie/tree/main/packages/last [last-builder]: https://github.com/LottieFiles/relottie/tree/main/packages/last-builder [relottie-pkg]: https://github.com/LottieFiles/relottie/tree/main/packages/relottie [relottie-parse]: https://github.com/LottieFiles/relottie/tree/main/packages/relottie-parse [relottie-style]: https://www.npmjs.com/package/@lottiefiles/relottie-style [relottie-stringify]: https://github.com/LottieFiles/relottie/tree/main/packages/relottie-stringify [relottie-cli]: https://github.com/LottieFiles/relottie/tree/main/packages/relottie-cli [relottie-extract-features]: https://github.com/LottieFiles/relottie/tree/main/packages/relottie-extract-features [relottie-metadata]: https://github.com/LottieFiles/relottie/tree/main/packages/relottie-metadata [lottie-types]: https://www.npmjs.com/package/@lottiefiles/lottie-types [dotlottie.js]: https://github.com/dotlottie/dotlottie-js/ [expressions]: https://lottiefiles.github.io/lottie-docs/expressions/#expressions [lf-discord]: https://discord.com/invite/6K3fm7yE9v [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting [syntax]: #syntax [syntax-tree]: #syntax-tree [plugins]: #plugins [contribute]: #contribute
Lottie processor powered by plugins
ast,dotlottie,javascript,lottie,typescript,unified,abstract-syntax-tree,last,parser
2023-06-14T08:39:13Z
2024-05-04T10:07:46Z
2024-04-30T14:12:55Z
15
96
152
1
3
41
null
MIT
TypeScript
hyugogirubato/Frida-CodeShare
main
<div align="center"> <img src="https://github.com/hyugogirubato/Frida-CodeShare/blob/main/docs/images/icon.png" width="40%"> # Frida-CodeShare [![License](https://img.shields.io/github/license/hyugogirubato/Frida-CodeShare)](https://github.com/hyugogirubato/Frida-CodeShare/blob/main/LICENSE) [![Release](https://img.shields.io/github/release-date/hyugogirubato/Frida-CodeShare)](https://github.com/hyugogirubato/Frida-CodeShare/releases) </div> This repository contains a collection of Frida scripts for intercepting and modifying the behavior of Android apps at runtime. These scripts leverage the power of Frida, a dynamic instrumentation tool, to hook into the target app's Java and native code and perform various actions such as logging function calls, modifying function parameters, capturing network traffic, and more. ## Getting Started To use the Frida scripts in this repository, follow these steps: 1. **Prerequisites**: Make sure you have the following installed on your system: - Frida: The Frida framework should be installed on your device or emulator. You can find installation instructions at the [Frida website](https://frida.re/). - Python: Some of the scripts may require Python for additional functionality or setup. Make sure you have Python installed on your system. 2. **Clone the Repository**: Clone this repository to your local machine using the following command: ``` git clone https://github.com/hyugogirubato/Frida-CodeShare.git ``` 3. **Choose a Script**: Browse the repository and choose the Frida script that suits your needs. Each script is located in its own directory and is accompanied by a README file that provides usage instructions and additional details. 4. **Run the Script**: Follow the instructions in the script's README file to run it using Frida. Typically, you will need to specify the target package or process ID and the path to the script file. ## Disclaimer These scripts are intended for educational and research purposes only. Use them responsibly and at your own risk. The authors of this repository are not responsible for any misuse or damage caused by the use of these scripts. ### License This project is licensed under the [GPL v3 License](https://github.com/hyugogirubato/Frida-CodeShare/blob/main/LICENSE).
Frida scripts for intercepting and modifying the behavior of Android apps at runtime.
cryptography,frida,interceptor,java,javascript,native,pinning,android,linux,windows
2023-06-09T13:55:30Z
2023-10-08T16:27:01Z
2023-10-08T16:27:01Z
1
0
41
0
2
40
null
GPL-3.0
JavaScript
xenova/doodle-dash
main
<p align="center"> <img alt="doodle dash thumbnail" src="./blog/thumbnail-wide.png"> </p> --- # Doodle Dash Doodle Dash, an ML-powered web game that runs completely in your browser, thanks to Transformers.js! 🤯 You have 60 seconds to draw as many words as you can, while a neural network tries to guess what you're drawing in real time! Play [here](https://t.co/8A6gabz2mn)! To see how we made it, check out our [blog post](https://huggingface.co/blog/ml-web-games)! https://github.com/xenova/doodle-dash/assets/26504141/148c3528-49cf-4c6c-bad6-2aeff4bfa1f3
Doodle Dash, an ML-powered web game that runs completely in your browser, thanks to Transformers.js!
javascript,machine-learning
2023-06-27T12:23:08Z
2023-07-05T16:14:18Z
null
1
0
70
0
11
39
null
null
Jupyter Notebook
livrasand/Reviw
main
<div align="center"><a href="README.md"><img src="https://custom-icon-badges.demolab.com/badge/Español-white.svg?logo=mexico-flag&"></a>&nbsp;&nbsp;<a href="README-en.md"><img src="https://custom-icon-badges.demolab.com/badge/English-white.svg?logo=usa-flag"></a>&nbsp;&nbsp;<a href="https://github.com/livrasand/Reviw/issues/61"><img src="https://custom-icon-badges.demolab.com/badge/Traducir_esta_página-white.svg?logo=external-link"></a></div> <br> ![Reviw Logo](https://github.com/livrasand/Reviw/assets/104039397/3202a0b1-266c-4815-a4ba-35b470965e7a) > ##### Si consideras útil este proyecto, apóyalo haciendo "★ Star" en el repositorio. ¡Gracias! ¿Te imaginas crear JWPUBs con un lenguaje tan sencillo como HTML? Reviw te permite crear documentos JWPUB con facilidad. Basado en la **API JWLV**, Reviw te ofrece una interfaz de alto nivel que te permite visualizar tus documentos de forma idéntica a como lo hace JW Library. Reviw es una colección de recursos educativos y herramientas prácticas, que incluyen artículos detallados, tutoriales paso a paso y herramientas útiles para aquellos interesados en aprender a crear sus propios documentos JWPUB. Ahora, Reviw actúa como un convertidor confiable que transforma archivos HTML en BLOB, sirviendo como un intermediario eficiente para la creación de archivos JWPUB. Con un compromiso inquebrantable con la calidad y la ética, Reviw se dedica a proporcionar un soporte integral para los creadores de JWPUB, facilitando el proceso y asegurando la integridad y precisión de los documentos creados. Reviw es una herramienta gratuita, sin publicidad y de código abierto que está disponible para todos. **¿Qué esperas para probarla?** Visita la [wiki](https://github.com/livrasand/Reviw/wiki) para amprender a crear un JWPUB. --- **No acepto donaciones para Reviw.** En lugar de eso, preferiría que consideraras destinar tu apoyo económico a [Donar a los testigos de Jehová](https://donate.jw.org/), una causa que considero de gran importancia. Si [Donar a los testigos de Jehová](https://donate.jw.org/) no está disponible en tu región, te animo a hacer una donación a alguna de las organizaciones sin fines de lucro que respaldo, como el [Proyecto Tor](https://donate.torproject.org/) o [Tails](https://tails.net/), o proyectos de [mis repositorios](https://github.com/livrasand?tab=repositories) que admitan donaciones. **No promuevo ni respaldo la creación de productos, servicios o cualquier otra iniciativa relacionada con Reviw que tenga como objetivo generar ingresos, y desalentamos a los usuarios de Reviw a adquirir o participar en proyectos que busquen beneficios económicos a costa de la comunidad Reviw**. --- ## ¿Por qué Reviw? El propósito fundamental de Reviw es **tener control** sobre la creación de JWPUBs personalizados, **ser centralizado** y **revisar archivo por archivo** para evitar que los usuarios intenten interferir de manera no autorizada con los servicios de JW Library, modificar la aplicación JW Library de manera inapropiada o distribuir contenido que pueda ser perjudicial. Reviw se ha desarrollado con el fin de establecer **un sistema centralizado** con **revisión humana por parte de miembros Testigos de Jehová de reconocida fidelidad** y el respaldo de **inteligencia artificial**. Esta medida busca **prevenir la difusión de contenido inapropiado o potencialmente dañino**, como el contenido apostata, la distribución de sustancias controladas ilegales, armas, material pirateado, instrucciones para actividades ilegales, violaciones de derechos de autor, contenido perjudicial o cualquier tipo de contenido para adultos. **Control:** Reviw permite tener control sobre el contenido que se comparte en los servicios de JWPUB Catalog. Esto ayuda a proteger a los usuarios de contenido inapropiado o dañino. **Centralización:** Reviw es un sistema centralizado, lo que significa que todos los archivos son revisados por un equipo de Testigos de Jehová. Esto ayuda a garantizar que el proceso de revisión sea uniforme y eficiente. **Revisión archivo por archivo:** Reviw revisa cada archivo individualmente. Esto ayuda a garantizar que ningún archivo inapropiado o dañino se pase por alto. 🔐 **Reviw es una herramienta importante que ayuda a proteger a los usuarios de contenido inapropiado o dañino.** ## ¿Cómo funciona Reviw? Nuestros CDNs actúan como intermediarios que permiten cargar y entregar tus archivos HTML con nuestra API **JWLV**, Reviw utiliza estos CDNs para proporcionar una representación precisa de tus archivos HTML en un entorno similar al de JW Library, permitiéndote tener una idea precisa de cómo se verán tus proyectos antes de publicarlos. Esto facilita la revisión y la optimización de tu trabajo durante el proceso de desarrollo. ```html <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/livrasand/livrasand.github.io@main/JW-Library-Visualizer-API/4a57204c696272617279.css"> <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/livrasand/livrasand.github.io@main/JW-Library-Visualizer-API/4a57204c696272617279.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/livrasand/livrasand.github.io@main/JW-Library-Visualizer-API/496d6167656e6573.js"></script> ``` ## Comienza a programar Aprende a crear tu propio JWPUB en nuestra [Wiki](https://github.com/livrasand/Reviw/wiki), contiene mucha información, tómese su tiempo y lea atentamente estas instrucciones. **SIGA PASO A PASO ESA GUÍA PARA CREAR UN JWPUB**. ## ⚙️ Instalación Instala el empaquetado de Reviw para Sublime Text, para ello ejecuta Command Palette: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>. Escribe: ```html Package Control: Install Package ``` Cuando haya cargado Package Control, busque Reviw seguido de <kbd>Intro</kbd>. ```html Reviw ``` Esto instalará Reviw en Sublime Text.
Create JWPUBs files easily and quickly for JW Library. Reviw is a Plugin for Sublime Text. And a powerful collection of HTML components, packed with features.
jwpub,css,framework,html,javascript,jw-library,tutorial,config,jehovah,jehovahs-witness
2023-06-25T19:48:30Z
2024-05-21T14:01:55Z
2023-11-01T04:08:26Z
4
36
354
2
9
37
null
NOASSERTION
HTML
cognetwork-dev/Cobalt
main
<div align="center"> <img height="150px" src="https://raw.githubusercontent.com/cognetwork-dev/Cobalt/main/src/assets/logo.svg"> <h1>Cobalt</h1> <h3>A new minimal yet powerful proxy site built for users and developers.</h3> <p>View the censored web like never before with this new web proxy service in React supporting many sites. Third place winner for <a href="https://github.com/titaniumnetwork-dev">TN</a>'s 2023 Proxathon.</p> </div> <p align="center"> <a href="https://repl.it/github/cognetwork-dev/Cobalt"><img height="30px" src="https://raw.githubusercontent.com/FogNetwork/Tsunami/main/deploy/replit2.svg"><img></a> <a href="https://glitch.com/edit/#!/import/github/cognetwork-dev/Cobalt"><img height="30px" src="https://raw.githubusercontent.com/FogNetwork/Tsunami/main/deploy/glitch2.svg"><img></a> <a href="https://railway.app/new/template?template=https://github.com/cognetwork-dev/Cobalt"><img height="30px" src="https://raw.githubusercontent.com/FogNetwork/Tsunami/main/deploy/railway2.svg"><img></a> <a href="https://app.koyeb.com/deploy?type=git&repository=github.com/cognetwork-dev/Cobalt&branch=main&name=Cobalt"><img height="30px" src="https://raw.githubusercontent.com/FogNetwork/Tsunami/main/deploy/koyeb2.svg"><img></a> </p> ## Features - Simple clean design - Side panel for quick access to anything, anywhere - Extremely customizable - Massive library of themes - Star your favorite sites - View you browsing history - Extensions - Devtools (Eruda) ## Setup **Run** Run `npm start` to start a webserver and the Bare server. You may deploy Cobalt by using an external bare server and a static file host. Cobalt must be built before attempting to start. **Build** Run `npm run build` to build the app for production to the `build` folder. **Development** Run `npm run dev` to run the app in development mode. **Deploy** Click a button at the top of this page and follow the directions for an easy way to host Cobalt. ## Configuration **Obfuscation** File: [/src/consts.js](https://github.com/cognetwork-dev/Cobalt/blob/main/src/consts.js) `const obfuscation = true | false;` - Choose to obfuscate text **GitHub and Discord** File: [/src/consts.js](https://github.com/cognetwork-dev/Cobalt/blob/main/src/consts.js) `const github = "string";` - Update the Github links `const discord = "string";` - Update the Discord link **Bare Server** File: [/public/uv/uv.config.js](https://github.com/cognetwork-dev/Cobalt/blob/main/public/uv/uv.config.js) `bare: url,` - Ultraviolet bare server ## Goal My goal for Cobalt was to make a proxy site that is very simple and easy to use, with only a side panel instead of pages, which you could access on any site. Along with having it be simple and easy to use, I also wanted it to have many configuration options and an extension system where the community could build unique tools to help you better use the web. I will continue to work on Cobalt, and I hope to achieve everything I want in this project. Overall it turned out very well, and if I were to choose a web proxy to use, I would select Cobalt! ## To Do - [ ] Reading mode extension - [ ] Popup for how to use Cobalt on the first load - [ ] Keyboard shortcuts (reload, back, forward, favorite) - [ ] Have real components and not everything in one file - [ ] Blocklist with custom blocked page - [ ] Syntax highlighting for view-source: (make it work with the theme) - [ ] Make Monaco Editor use style - [ ] Update iframe on custom style change - [ ] Section to change headers sent to the site on the proxy (eg. user-agent) - [ ] Share button - [ ] Dashboard with widgets - [ ] Make Ultraviolet take less space - [ ] URL option for cloaking - [ ] Update iframe on custom style change - [ ] Suggestions for home page - [ ] Games ## License Cobalt uses the MIT license.
A new minimal yet powerful proxy site, built for both users and developers.
cobalt,javascript,nodejs,proxy,titanium-network,tomphttp,ultraviolet,unblock,unblocked,unblocked-games
2023-06-17T22:31:10Z
2023-10-06T03:44:56Z
null
2
2
80
5
130
36
null
MIT
TypeScript
timf34/Substack2Markdown
main
# Substack2Markdown Substack2Markdown is a Python tool for scraping free and premium Substack posts and saving them as Markdown files. It will save paid for content as long as you're subscribed to that substack. Most "save for later" apps (such as Pocket) don't save these posts, but with this script you can now browse and sort through these posts in a user-friendly HTML interface. ![Substack2Markdown Interface](./assets/images/screenshot.png) Once you run the script, it will create a folder named after the substack in `/substack_md_files`, and then begin to scrape the substack URL, converting the blog posts into markdown files. Once all the posts have been saved, it will generate an HTML file in `/substack_html_pages` directory that allows you to browse the posts. You can either hardcode the substack URL and the number of posts you'd like to save into the top of the file, or specify them as command line arguments. ## Features - Converts Substack posts into Markdown files. - Generates an HTML file to browse Markdown files. - Supports free and premium content (with subscription). - The HTML interface allows sorting essays by date or likes. ## Installation Clone the repo and install the dependencies: ```bash git clone https://github.com/yourusername/substack_scraper.git cd substack_scraper # # Optinally create a virtual environment # python -m venv venv # # Activate the virtual environment # .\venv\Scripts\activate # Windows # source venv/bin/activate # Linux pip install -r requirements.txt ``` For the premium scraper, update the `config.py` in the root directory with your Substack email and password: ```python EMAIL = "your-email@domain.com" PASSWORD = "your-password" ``` You'll also need Microsoft Edge installed for the Selenium webdriver. ## Usage Specify the Substack URL and the directory to save the posts to: You can hardcode your desired Substack URL and the number of posts you'd like to save into the top of the file and run: ```bash python substack_scraper.py ``` For free Substack sites: ```bash python substack_scraper.py --url https://example.substack.com --directory /path/to/save/posts ``` For premium Substack sites: ```bash python substack_scraper.py --url https://example.substack.com --directory /path/to/save/posts --premium ``` To scrape a specific number of posts: ```bash python substack_scraper.py --url https://example.substack.com --directory /path/to/save/posts --number 5 ``` ## Viewing Markdown Files in Browser To read the Markdown files in your browser, install the [Markdown Viewer](https://chromewebstore.google.com/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk) browser extension.
Script to scrape free and premium Substack posts, saving them as Markdown files. Also generates HTML interfaces to allow you to browse and sort the markdown files for each author.
substack-scraper-python,python,scraper,selenium,substack,markdown,html,javascript,ui
2023-06-29T23:32:00Z
2024-04-27T22:17:37Z
2024-01-28T04:10:21Z
2
1
85
3
8
36
null
MIT
Python
freshgum-bubbles/typedi
develop
# [TypeDI<sup>++</sup>](https://typedi.js.org) [![MIT License](https://img.shields.io/github/license/freshgum-bubbles/typedi)][pkg-license-file] [![npm (scoped)](https://img.shields.io/npm/v/@freshgum/typedi)][pkg-npm] [![Website](https://img.shields.io/website/https/64a0c6b5de74517c4c7bdb77--singular-praline-356e00.netlify.app.svg?logo=BookStack&label=Documentation&labelColor=177C28)][docs-site] Elegant dependency injection in TypeScript and JavaScript. --- <!-- prettier-ignore --> > [!WARNING] > From 0.4.0, support for Node versions under v15.3.0 has been removed, as the package has transitioned to ES Modules. > [Support for CommonJS has been removed](https://github.com/freshgum-bubbles/typedi/issues/166#issuecomment-2101653010). > > <sup>See [Why does the package not support Node versions under v15.3.0?][pkg-faq-node-15-3-0]</sup> <!-- prettier-ignore --> > [!NOTE] > [Experimental support for Bun has also been introduced](https://github.com/freshgum-bubbles/typedi/commit/f2ec73a6fe1598122cf64f7097a77910fab13560). Feel free to test and report any issues! ## Features - [`Optional`, `SkipSelf`, `Self`, `Many`][docs-site-constraints] and more, just like Angular! - 100% functional injection, without any runtime reflection (no more `reflect-metadata`!) - **10kB bundle size[^1] (3.8k gzip'd[^9]), and no dependencies[^2].** - Simplify testing across your entire app, with a simple suite of injection tools to get you started[^3]. - Rigorously tested, type-safe API[^4]. ## Get Started To start, you'll want to install the NPM package as part of your project. ```sh $ npm install @freshgum/typedi ``` After that, you should be good to go. Read the [documentation][docs-site] to get started! ## Quick Example ```ts import { Service, Container, Token } from '@freshgum/typedi'; // Make a service that logs a message to the console. type LogFunction = (...args: any[]) => void; const LOG_FUNCTION = new Token<LogFunction>(); @Service([LOG_FUNCTION]) class LogService { constructor(private logFn: LogFunction) {} log(message: string) { this.logFn(message); } } // Then, use our logging service in our root service, // which will log "hello world!" to the console. @Service([LogService]) class RootService { // Store the instance of the logger inside the class. constructor(private logger: LogService) {} run() { this.logger.log('hello world!'); } } // Set the logging function... Container.set(LOG_FUNCTION, console.log); // Now, run our service! Container.get(RootService).run(); ``` ## Runtime Support This DI implementation doesn't require any sort of precompilation / bundler steps, aside from the usual one provided by your TypeScript compiler. ## Project Goals Some goals of the project include: 1. **To keep things simple**: Containers are essentially type-safe `Map` instances, with smarts for resolving dependencies, managing container hierarchies, resolving constraints, and some additional functionality. 2. **Avoid reinventing the wheel**: I could bundle an endless amount of code in this package, but I'd rather not -- instead, let's allow this project to focus on one thing and execute it well, as opposed to doing hundreds of things badly. 3. **Have a minimal presence in bundles**: As it stands, the production builds of this project are around 10kB. Other libraries tend to be much larger, which typically leads to a lot of unused functionality and slower loading times on constrained network connections. 4. **Extensibility**: The container, and all other parts of the package, should be extendable by the consumer, instead of forcing everyone into a pre-defined workflow. However, steps are taken to ensure that the consumer is guided into making The Right Decision<sup>(tm)</sup> when not doing so would be harder to manage. 5. **To allow for opaque implementations**: The package should avoid using global state where possible (aside from the default container, of course), to prevent libraries using the package from conflicting with end-user code. 6. **Avoid breaking end-user code**: As the package is sub-v1, this isn't as much of a priority right now; however, very few breaking changes are introduced, and the changes that _are_ made are typically made for good reasons (and are documented in the changelog.). Unnecessarily breaking end-user code is pointless, frustrating, and causes work for everyone. 7. **Make it easy to create well-defined, stable interfaces**: Currently, this is done through simply using service classes. Instances of said classes can then be attained and used as regular instances. 8. **Avoid magical syntax, in favour of easy, simple syntax**: Avoid using "magic"[^7] when doing so would be unnecessary, and would obfuscate what the code does to anyone not familiar with this container implementation. 9. **Encompass isomorphism.**: Some other DI implementations access Node-specific APIs (e.g. the filesystem); we don't want to do that here. Instead of tying the library to a specific runtime, or set of libraries, **this implementation aims to be compatible across different bundlers, ecosystems, runners, and more**. However, we can't explicitly guarantee compatibility with runtimes we don't personally use; if you think we've missed something, however, please open an issue. 10. **Do one thing, and do it well**. Regarding filesystems, we've _specifically_ made a note of avoiding doing anything like that here; it's fragile, hard to debug, and generally becomes an annoyance as a project scales, files are moved, and paths have to be continually updated. Instead of that, regular `import` statements are used; this dramatically simplifies any required refactoring work, and general maintenance of consumer code. This container was initially made for my own use in code, though I will happily take suggestions, issues and feature requests to improve it. ## Project Non-Goals _These will be added if any features are requested that are not compatible with the project goals._ ## "Why was this created?" It's mainly a more modern, simpler version of the original [TypeDI project](https://github.com/typestack/typedi), with more features, easier integration, and better error reporting. The naming isn't ideal, and it'll most likely be changed in the future[^5]. ## Maintenance <img src="./assets/this-is-fine-meme.png" width="150px" /> Yes. I regularly use it as part of my packages (and so do others!)[^6]. I didn't put in all this effort just to abandon the project. However, bear in mind that, as the goal of this package is to do one thing well, there may not be updates for periods if they are not explicitly required[^8], or if the addition of further functionality would go against the project goals. However, I will happily review any MRs made against the source tree. If you wish to suggest a feature, I would prefer it if you could open an issue first to discuss whether the feature is appropriate, and whether its implementation is feasible. ## License Released under [MIT](./LICENSE) by [@freshgum](https://github.com/freshgum-bubbles). Forked from [typestack's implementation](https://github.com/typestack/typedi), therefore this project contains code published by [upstream TypeDI contributors](https://github.com/typestack/typedi/blob/develop/LICENSE). [pkg-faq-node-15-3-0]: ./FAQ.md#why-does-the-package-not-support-node-versions-under-v1530 [docs-site]: https://typedi.js.org [docs-site-constraints]: https://typedi.js.org/docs/guide/services/resolution-constraints [pkg-vcs]: https://github.com/freshgum-bubbles/typedi [pkg-npm]: https://npmjs.org/@freshgum/typedi <!-- Direct file link to ensure compatibility across local / NPM / GitHub views. --> [pkg-license-file]: ./LICENSE <!-- All these footnotes make the README look like one of Apple's promotional pages... P.S. Future maintainers: these footnotes are in order of *addition*, not appearance throughout the document. The ordering doesn't really matter anyway, as GitHub automatically sorts them in order of appearance (or so it seems). --> [^1]: **Tested on 23/11/2023**. [A lot of work](https://github.com/search?q=repo%3Afreshgum-bubbles%2Ftypedi+bundle+size&type=commits) is made to reduce the size of the bundle _(a lot of work has also been inlined into other, non-related commits)_. Note that bundle size tests are performed by copying the minified `typedi.min.mjs` file into [ByteSizeMatters](https://freshgum-bubbles.github.io/bytesizematters/) -- there are most likely better ways to test this. Investigation on reducing bundle size is then performed by formatting the minified file with Prettier, and assessing the bundle for unnecessary code / possible refactors; this is done iteratively until I am unable to find any further code size optimizations (which would not negatively affect performance / result in breaking changes). An example of a trick used to reduce the bundle size is name mangling: the [Rollup configuration file](./rollup.config.mjs) contains code to minify certain members of internal classes (such as `VisitorCollection`). [^2]: No _runtime_ dependencies are included. The only dependency of this package is [type-fest](https://github.com/sindresorhus/type-fest) (which only provides TypeScript types which are used internally). This dependency has been [version-locked](https://github.com/freshgum-bubbles/typedi/blob/develop/package.json) to ensure any breaches of that package's security does not impact anyone using this package. Any updates are checked and verified to ensure they do not contain malicious code. [^3]: This mainly refers to the package's standard container-based interface, which makes testing easy (as you can replace services and values at any time). Further work is being done on a more featureful testing suite, which would be able to simplify the overall testing process. [^4]: I haven't counted each one, but I'd say that the package exports ~40 types (as of writing: 23/11/2023); a lot of the safety is provided through typing, as opposed to unnecessary runtime checks, which affect performance and code size. [^5]: In the future, I'll most likely look at renaming this package. That'll come naturally as part of a wider project. You'll probably notice that I avoid explicitly using this package's name in a lot of places; that will make it easier to update. The naming scheme is... unfortunate, and in retrospect I should have named it differently to avoid confusion with the original project. [^6]: One example of such a project is [ListenBrainz Discord RPC](https://github.com/freshgum-bubbles/listenbrainz-discord-rpc), which makes use of this package to structure its functionality into modular services. There are some other examples on GitHub's _Dependents_ view, too. [^7]: An example of "magic", in this context, would be integration with the filesystem to read a configuration file in a proprietary format, and then using that to configure services -- while that might make more sense for Java developers, such features don't (in my experience) scale well in JavaScript. Also, we'd have to write a ton of editor integrations! `</ramble>` [^8]: If the library is ever feature-complete, **it'll still be maintained** -- compatibility with the latest engines will still be tested. However, as stated prior, features would not be added for the sake of adding features. Therefore, if this package ever _becomes_ feature-complete (and is placed into maintenance mode), **there's no need to ask if it's abandoned.** If I ever become unable to continue maintaining the package, it shall be placed into archival (and the NPM package will become deprecated); in that case, please fork it and continue my efforts. All power to you! [^9]: Tested via `pnpm run build; cd build/bundles; for file in *.mjs; do printf "$file\t$(cat $file | wc -c | xargs printf "%'d\n")\t$(gzip -9c $file | wc -c | xargs printf "%'d\n")\t$(brotli -cZ $file | wc -c | xargs printf "%'d\n")\n"; done | tee` _(credit: [mrienstra on Stack Overflow](https://stackoverflow.com/a/53870869))_
Elegant Dependency Injection in TypeScript and JavaScript.
dependency-injection,typescript,typescript-decorators,typescript-library,javascript,javascript-library,typescript-definitions,typedi
2023-06-11T18:46:01Z
2024-05-21T11:07:17Z
null
26
128
2,139
18
3
33
null
MIT
TypeScript
konstantinmuenster/lexical-examples
main
<img src="cover.png" width="520px" alt="lexical-examples" /> # `lexical-examples` #### The missing examples library for [lexical.dev](https://lexical.dev/). Lexical has only been released quite recently. It was built with a composability mindset, similar to React. This allows you to do all sorts of interesting patterns. This repository should exemplify these patterns and hopefully be a helpful resource for developers getting their heads around Lexical. ### [🕹️ Playground](https://lexical-examples-demo.vercel.app/) ### [🗂 Example directory](https://github.com/konstantinmuenster/lexical-examples/tree/main/examples) Every example is reduced to the bare minimum and can be executed on its own. I only ceated a few utility packages to share common functionalities and UI elements. ## Development Running a specific example locally: ```bash # Clone the repository git clone https://github.com/konstantinmuenster/lexical-examples.git cd lexical-examples # Install dependencies yarn # Run the shared packages and a specified example in development # (swap out `lexical-nested-editor` if you want to run another example) yarn dev --filter='./shared/*' --filter=lexical-nested-editor ``` ## About <a href="https://www.buymeacoffee.com/kmuenster" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a> Konstantin Münster – [konstantin.digital](https://konstantin.digital)
The missing examples library for lexical.dev
javascript,lexical,reactjs,rich-text,text,text-editor,wysiwyg
2023-06-26T18:16:17Z
2023-07-03T16:12:08Z
null
1
0
22
0
0
32
null
null
TypeScript
socialtribexyz/Nectar-GPT
main
<h1 align="center">Hi 👋, I'm Matt</h1> <h3 align="center">A passionate fullstack developer from Los Angeles, CA</h3> - 🔭 This project is an AI assistant Chrome Extension named [NectarGPT](https://nectarhub.xyz/), powered by ChatGPT. - 🧡 ProductHunt: [NectarGPT is now live on Product Hunt!](https://www.producthunt.com/posts/nectar-gpt) - 📫 How to reach me: Instagram - [@realmattreid](https://www.instagram.com/realmattreid) or [@officialsphrex](https://www.instagram.com/officialsphrex). - [blog](https://blog.nectarhub.xyz/blog) <h3 align="left">download now!👇 experience NectarGPT+: ChatGPT on steroids Your All-in-One AI Assistant today!</h3> <p align="left"> <a href="https://dashboard.nectarhub.xyz/" target="_blank"> <img align="center" src="https://i.imgur.com/1YN7xSF.png" alt="NectarGPT AI assistant powered by openai" height="30" width="30" /> </a> </p> <h3 align="left">Connect with me:</h3> <p align="left"> <a href="https://blog.nectarhub.xyz/blog" target="_blank"> <img align="center" src="https://img.icons8.com/fluent/48/000000/twitter.png" alt="@officialsphrex" height="30" width="30" /> </a> </p> <h3 align="left">Languages and Tools:</h3> <p align="left"> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="JavaScript" width="40" height="40"/> </a> </p> <h2>Screenshots:</h2> <p align="center"> <img src="https://imgur.com/g7asn8t.png" alt="supercharge google search with nectargpt" width="500" /> <img src="https://i.imgur.com/zmGN3YX.png" alt="NectarGPT" width="500" /> <img src="https://i.imgur.com/iPSXASQ.png" alt="NectarGPT" width="500" /> <img src="https://i.imgur.com/mZj0uip.png" alt="supercharge google search with nectargpt" width="500" /> </p> <h2>Installation:</h2> <h3>Google Chrome:</h3> After downloading the zip & opening the folder, follow these steps: 1. Download the zip file and extract its contents. 2. Open your Google Chrome browser and go to `chrome://extensions/`. 3. Enable the developer mode by clicking the toggle switch at the top right of the page. 4. Click on the "Load unpacked" button and select the folder where you extracted the downloaded files. <h3>Mozilla Firefox:</h3> After downloading the zip & opening the folder, follow these steps: 1. Download the zip file and extract its contents. 2. Open your Mozilla Firefox browser and go to `about:addons`. 3. Click on the gear icon in the top right corner and select "Debug Add-ons". 4. Click on the "Load Temporary Add-on" button and select the manifest.json file from the extracted folder. <h3>Microsoft Edge:</h3> After downloading the zip & opening the folder, follow these steps: 1. Download the zip file and extract its contents. 2. Open your Microsoft Edge browser and go to `edge://extensions/`. 3. Enable the developer mode by clicking the toggle switch at the bottom left of the page. 4. Click on the "Load unpacked" button and select the folder where you extracted the downloaded files. Nectar is a conversational AI-powered Chrome extension that allows you to interact with an AI chatbot directly from your browser. Get instant answers to your questions, complete tasks, and have fun! Powered by GPT-2.
An experimental open-source attempt to make GPT-4 fully autonomous. Nectar-GPT is an innovative Chrome extension that lets you harness the power of AI to fully automate any task. With Nectar, you can easily automate any task based on prompts such as coding, writing product description, social media posts and more.
ai,artificial-intelligence,astro,autonomous-agents,browser-extension,chatgpt,chrome-extension,firefox-addon,gpt,gpt-4
2023-06-09T07:33:12Z
2023-10-30T20:35:01Z
null
1
0
43
0
3
31
null
null
null
processing/p5.sound.js
main
# p5.sound.js This repository was started during the 2023 p5.js sound fellowship. Please read the [announcement](https://medium.com/@ProcessingOrg/announcing-the-2023-p5-sound-fellow-aar%C3%B3n-montoya-moraga-7613450902f6) for more details. This repository will soon replace the previous version of the p5.sound library, which is currently hosted at [https://github.com/processing/p5.js-sound](https://github.com/processing/p5.js-sound). p5.sound Fellow 2023: aarón montoya-moraga(@[montoyamoraga](https://github.com/montoyamoraga)), p5.Sound Fellow Mentor 2023: Kristin Galvin (@[blechdom](https://github.com/blechdom)) ## Scope of the project This project is an update of the p5.sound.js library, with the following goals: - Code stability and readability - Updated and fewer dependencies - Only keeping the most used features - Deprecating the least used features ## Usage To use this library, make sure you have p5.js installed. Visit the [p5.js website](https://p5js.org/) for more information and installation instructions. Please let us know if you find any bugs or issues! ## Comparison with the previous version of the library ### Base classes | Name | Previous name | Dependencies | Tone.js dependencies | | :----------- | :------------ | :----------- | :------------------- | | audioContext | - | none | none | ### Oscillators | Name | Previous name | Dependencies | Tone.js dependencies | | :--------- | :------------ | :----------- | :------------------- | | Oscillator | - | audioContext | Add, Multiply, Scale | | SinOsc | - | Oscillator | | | TriOsc | - | Oscillator | | | SawOsc | - | Oscillator | | | Noise | - | Oscillator | | ### Effects | Name of class | Previous name | Dependencies | Tone.js dependencies | | :------------ | :------------ | :----------- | :------------------- | | BiquadFilter | Filter | Effect | TODO | | Delay | - | Effect | TODO | ### Utilities | Name of class | Previous name | Dependencies | Tone.js dependencies | | :------------ | :------------ | :----------- | :------------------- | | AnalyzerFFT | FFT | audioContext | none | | Gain | FFT | audioContext | none | | Envelope | FFT | audioContext | none | ### Currently broken / in progress | Name of class | Previous name | Dependencies | Tone.js dependencies | | :------------ | :------------ | :------------ | :------------------- | | AudioIn | - | audioWorklet/ | TODO | | SoundFile | - | audioWorklet/ | TODO | ## Deprecations | Name of class | Reason of deprecation | | :------------- | :--------------------------------------------------------- | | Convolver | Efforts focused on simpler effects | | MonoSynth | Efforts focused on developing dependencies like Oscillator | | Polysynth | Built on top of MonoSynth, already deprecate | | Part | Musical class, and out of scope for p5.sound | | Phrase | Musical class, and out of scope for p5.sound | | Score | Musical class, and out of scope for p5.sound | | SoundLoop | Efforts focused on developing dependency SoundFile | | userStartAudio | Bad practice | ## Dependencies After a fruitful discussion with the Tone.js team, we are keeping Tone.js as a dependency and updating this to the latest version 14.x.x. ## Build instructions To install the dependencies for building, please run this command. ```bash npm install ``` To build the library, please run this command. ```bash npm run build ```
new build of p5.sound.js library
art,creative-coding,design,education,html,javascript,learning,p5js,processing,sound
2023-06-16T18:02:56Z
2024-02-26T05:09:56Z
2024-02-09T16:28:15Z
19
104
395
13
6
29
null
LGPL-2.1
JavaScript
programming-dot-dev/rss-bot
main
<div align="center"> ![GitHub tag (latest SemVer)](https://img.shields.io/github/release/programming-dot-dev/rss-bot.svg?style=for-the-badge) [![License](https://img.shields.io/github/license/programming-dot-dev/rss-bot.svg?style=for-the-badge)](LICENSE) ![GitHub stars](https://img.shields.io/github/stars/programming-dot-dev/rss-bot.svg?style=for-the-badge) </div> <div align="center"> <img src="https://github.com/PangoraWeb/link-bot/assets/73616169/6bdf131b-d311-4b2e-b0c8-1bf2e3464f0a" width=200px height=200px></img> <h3 align="center"><a href="">RSS Bot</a></h3> <p align="center"> A bot for Lemmy and Sublinks that watches rss feeds and posts new posts from them in communities. </p> </div> ## About This is a bot that watches rss feeds and posts new posts from them in communities ## Prerequisites - You need to have installed node.js or Docker in order to run the bot ## Setup with Node.js (Option 1) 1. Clone the repository 2. Create an account in the instance you want the bot to have as its home (just make a regular user) 3. Create a file called .env in the bot folder and give it values in this format with the data in the quotes (dont add the slashes or the part after the slashes) ``` LEMMY_INSTANCE="" // The instance the bot account is in LEMMY_USERNAME="" // The bot username LEMMY_PASSWORD="" // The bot password ``` 4. Change the data in config.yaml based on what you want set. Set the communities and feeds you want here 5. Open a terminal in the bot folder and run `npm install` to install dependendies and then `node main.js` to run the bot (whenever you want to start the bot again you can just do ctrl+c to interrupt the process and node main.js to start the bot) I recommend installing something like [forever.js](https://www.npmjs.com/package/forever) which will make it start back up again if it errors at some point If you run into issues feel free to dm me on Matrix [here](https://matrix.to/#/@ategon:matrix.org) ## Setup with Docker (Option 2) 1. Clone the repository 2. Create an account in the instance you want the bot to have as its home (just make a regular user) 3. Create a file called .env in the bot folder and give it values in this format with the data in the quotes (dont add the slashes or the part after the slashes) ``` LEMMY_INSTANCE="" // The instance the bot account is in LEMMY_USERNAME="" // The bot username LEMMY_PASSWORD="" // The bot password ``` 4. Change the data in config.yaml based on what you want set. Set the communities and feeds you want here 5. In the project directory build the docker image by running `docker build -t <your name>/<desired_image_name> .` and then launch a new container with `docker run <your name>/<desired_image_name>` # Other Bots [To be added]
A lemmy/sublinks bot that watches rss feeds and posts new posts from them in communities
fediverse,fediverse-bot,javascript,lemmy,lemmy-bot,sublinks,sublinks-bot,programming-dot-dev
2023-06-21T15:30:28Z
2024-02-01T15:46:09Z
2023-12-20T05:57:37Z
6
9
79
11
7
29
null
AGPL-3.0
JavaScript
bellingcat/uniform-timezone
main
# Uniform Timezone Extension Tries to bring standardization into social media posts' date-time values. > Why 1? Working with standard timezones (such as UTC) is useful when cross-referencing dates from distinct online platforms. > > Why 2? Some platforms actively hide the real date/time of a post (eg: tiktok, youtube, ...). This extension converts and decodes, where possible, complete upload/post date-time values into standard timezones (like UTC or your machine's local timezone) and allows the conversion to any other timezone, besides exporting/copying all values. Install on [brave/chrome](https://chrome.google.com/webstore/detail/uniform-timezone-extensio/fhpdgikedeljapdckiegnjiendkhphlg). <p align="center"> <img src="media/screenshot-webstore.png" alt="extension preview" width="400px"/> <img src="media/screenshot-extension.png" alt="extension preview" width="400px"/> </p> ### Currently supported platforms | Platform | Status | inspired by | | --------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | | Twitter/X | ✅ | | | Tiktok | ✅* | [tiktok-timestamp](https://bellingcat.github.io/tiktok-timestamp/) | | Discord | ✅* | | | Instagram | ✅ | | | Bluesky | ✅* | works only for english translation of the platform, hard to expand | | Wayback Machine | ✅ | | | Linkedin | TODO | come help! [Linkedin-post-timestamp-extractor](https://ollie-boyd.github.io/Linkedin-post-timestamp-extractor/) | | Youtube | TODO | come help! it requires the official API (see [amnesty youtube dataviewer](https://citizenevidence.amnestyusa.org/)) / and possibly file metadata | | Facebook | TODO | come help! | | GitHub | TODO | come help! | | Vkontakte | TODO | is it possible? come help! | | More | ... | please suggest more via [issues](https://github.com/bellingcat/uniform-timezone/issues) | - ✅ works on all known cases - ✅* works on most cases with exceptions - TODO: come help! look at the issues or open a new one. If you want to start working on something use the issues to let the community know. ### Twitter ✅ How to use? 1. Hover over any time element on the page. 2. Also works on tweets archived on web.archive.org. ### Tiktok ✅* How to use? Timestamps handled by this script: * Individual `/video/` pages -> hover over username * User page video thumbnails -> hover over username/date * `/explore` feed page -> hover over username/date * `/foryou` feed page -> hover over username/date *. Also works on tiktoks archived on web.archive.org. Timestamps not handled by this script: * "you may like" thumbnails -> is it possible to do it for the "you may like" section on the right side of a video page? there is no id in the html but perhaps the click event listener could somehow be intercepted/mocked. Timestamps not handled by this script: 1. video thumbnails on the right pane AKA "You may like". (can you find a way to do it?) ### Discord ✅* How to use? Hover over any time element on the page. Timestamps handled by this script: * messages (in all channel types) Timestamps not handled by this script: * message edits * forum thread overview * Not enabled on the wayback machine. ### Instagram ✅ How to use? Hover over any time element on the page. * All timestamps should be properly parsed. * Not all post urls are read (possible improvement). * Not enabled on the wayback machine. ### Blusky ✅* How to use? Hover over any time element on the page. * Only works for the english language translation of bsky.app * Not enabled on the wayback machine. --- #### See below if you want to contribute and check the [open issues](https://github.com/bellingcat/uniform-timezone/issues). <details><summary><h1>Development & Contributing</h1></summary> ### 🛠 Build locally 1. Checkout the copied repository to your local machine eg. with `git clone https://github.com/my-username/my-awesome-extension/` 1. Run `npm install` to install all required dependencies 1. Run `npm run build` The build step will create the `distribution` folder, this folder will contain the generated extension. ### 🏃 Run the extension (optional) Using [web-ext](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/) is recommended for automatic reloading and running in a dedicated browser instance. Alternatively you can load the extension manually (see below). 1. Run `npm run watch` to watch for file changes and build continuously 2. Then either [load the extension manually in Chrome](https://www.smashingmagazine.com/2017/04/browser-extension-edge-chrome-firefox-opera-brave-vivaldi/#google-chrome-opera-vivaldi) or [Firefox](https://www.smashingmagazine.com/2017/04/browser-extension-edge-chrome-firefox-opera-brave-vivaldi/#mozilla-firefox) by uploading unpacked extension (you need to manuall click the update button when making changes) 3. OR use [web-ext](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/) for autoreloading 1. run `npm install --global web-ext` (only only for the first time) 2. In another terminal, run `web-ext run -t chromium` 4. Check that the extension is loaded by going to any of the implemented platforms ### Add a new timezone fixer To add a new fixer you need: 1. edit [manifest.json](source/manifest.json) `content_scripts` and `web_accessible_resources` to include wildcards for the platform and reference a new content-script file 2. JS logic in the content-script file: see the example for [twitter](source/js/timezone-fixers/twitter.js). Feel free to add additional CSS if needed. 3. If the platform is archivable on archive.org try to add your fixer there as well (see the example for twitter in manifest.json) 4. Test and make a PR with screenshots/notes on implementation if needed ### Publishing (WIP) It's possible to automatically publish to both the Chrome Web Store and Mozilla Addons at once by adding these secrets on GitHub Actions: 1. `CLIENT_ID`, `CLIENT_SECRET`, and `REFRESH_TOKEN` from [Google APIs][link-cws-keys]. 2. `WEB_EXT_API_KEY`, and `WEB_EXT_API_SECRET` from [AMO][link-amo-keys]. Also include `EXTENSION_ID` in the secrets ([how to find it](https://stackoverflow.com/a/8946415/288906)) and add Mozilla’s [`gecko.id`](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings) to `manifest.json`. The GitHub Actions workflow will: 1. Build the extension 2. Create a version number based on the current UTC date time, like [`19.6.16`](https://github.com/fregante/daily-version-action) and sets it in the manifest.json 3. Deploy it to both stores #### Auto-publishing (WIP) Thanks to the included [GitHub Action Workflows](.github/workflows), if you set up those secrets in the repo's Settings, the deployment will automatically happen: - on a schedule, by default [every week](.github/workflows/release.yml) (but only if there are any new commits in the last tag) - manually, by clicking ["Run workflow"](https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/) in the Actions tab. </details>
Extension to standardize dates and times to the same timezone across social media websites.
chrome-extension,converter,javascript,open-source-research,timezone
2023-06-21T17:09:20Z
2024-01-10T16:35:40Z
2023-12-05T16:43:11Z
3
5
66
5
4
29
null
MIT
JavaScript
mcban34/Js-Road-Map
main
## Önemli Kural Lütfen yöneticiler dışında yeni bir konu başlığı eklemeyin, yeni bir konu başlığı eklemek isterseniz ekstralar klasörü altında dilediğiniz konu başlığını anlatabilirsiniz. ## Amaç Bu ortak proje, JavaScript öğrenmeye yeni başlayan veya becerilerini geliştirmek isteyen öğrenciler için bir yol haritası sunmayı amaçlamaktadır. Her bir öğrenci, konu başlıkları altında örnekler oluşturarak projeye katkıda bulunacaktır. Bu challenge, aşağıdaki nedenlerle öğrencilere büyük faydalar sağlayacaktır: 1. **Öğrenmeyi derinleştirir:** Her öğrenci, konuları araştırma ve örnekler oluşturma sürecinde JavaScript becerilerini daha da geliştirecektir. Bu, pratik yapma ve uygulama becerilerini güçlendirmelerini sağlar. 2. **Bilgi paylaşımını teşvik eder:** Ortak bir repository'de çalışmak, öğrencilerin birbirleriyle etkileşimde bulunmalarını ve bilgi paylaşmalarını teşvik eder. Her bir öğrencinin örneklerini diğerleriyle paylaşması, farklı yaklaşımların ve çözümlerin keşfedilmesini sağlar. 3. **Topluluk duygusunu geliştirir:** Bir projede birlikte çalışmak, öğrenciler arasında güçlü bir topluluk duygusu oluşturur. Birbirlerine destek olma, geri bildirim sağlama ve birlikte başarılı bir proje oluşturma süreci, öğrenciler arasında dayanışma ve işbirliği duygularını güçlendirir. 4. **Gerçek hayatta uygulamaya hazırlar:** Bu challenge, öğrencilerin gerçek dünya projelerindeki çalışma akışını simüle eder. Ortak bir repository üzerinde çalışmak, takım çalışması becerilerini, sürüm kontrolü kullanımını ve kod incelemesi yapmayı öğrenmelerini sağlar. ## Nasıl Katkıda Bulunulur? 1. **Fork (Çatal Alma):** Projenin sağ üst köşesindeki "Fork" düğmesine tıklayarak projeyi kendi GitHub hesabınıza çatal alın. 2. **Klonlama (Clone):** Çatal aldığınız projeyi bilgisayarınıza klonlayın. 3. **Konu Başlıkları:** Klonladığınız projenin içerisinde, konu başlıkları için klasörler bulunmaktadır. İlgilendiğiniz bir konu başlığı altında yeni örnekler ekleyin. 4. **Commit Push:** Yaptığınız değişiklikleri commit edin ve kendi forkladığınız projeye push yapın. 5. **Pull Request (Çekme İsteği):** GitHub üzerinden, değişikliklerinizi ana projeye göndermek için bir pull request oluşturun. Bu şekilde değişiklikleriniz ana projeye entegre edilmek üzere incelenecektir. ## Katkıda Bulunanlar | Kullanıcı Adı | GitHub Linki | | --- | --- | | mcban34 | [GitHub](https://github.com/mcban34) | | Developer-Emre | [GitHub](https://github.com/Developer-Emre) | | Tugcekaner | [GitHub](https://github.com/Tugcekaner) | | Seco035 | [GitHub](https://github.com/Seco035) | | Tugbatan | [GitHub](https://github.com/Tugbatan) | | mertekm | [GitHub](https://github.com/mertekm) | | SamTe5 | [GitHub](https://github.com/SamTe5) | | AlperenBasali | [GitHub](https://github.com/AlperenBasali) | | BelizBapir | [GitHub](https://github.com/BelizBapir) | | BerkKural | [GitHub](https://github.com/BerkKural) | | akmanzb | [GitHub](https://github.com/akmanzb) | | deryaaltinn | [GitHub](https://github.com/deryaaltinn) | | lbeyaban | [GitHub](https://github.com/lbeyaban) |
Javascript Yol Haritası
javascript,javascript-vanilla,js,roadmap
2023-06-15T12:05:58Z
2023-07-19T13:40:12Z
null
13
42
158
0
22
28
null
null
JavaScript
Alok-2002/Netflix_Home_Page_Using_HTML_And_CSS
main
# Netflix_Home_Page_Using_HTML_And_CSS This repository contains the code for building a Netflix-inspired home page using HTML and CSS. The project aims to recreate the visual design and layout of the Netflix home page, providing a starting point for creating similar interfaces or learning web development techniques. ## Preview ![image](https://github.com/Alok-2002/Netflix_Home_Page_Using_HTML_And_CSS/assets/93814546/4959b8ef-266f-4194-8709-b90223d69b2e) ## Features - Responsive design: The web page adapts to different screen sizes, ensuring a consistent user experience on desktop and mobile devices. - Interactive components: The page includes interactive elements such as buttons, dropdown menus, and hover effects. - Dynamic content: Placeholder content is used to mimic Netflix's movie and TV show recommendations. - CSS styling: The stylesheets provide a sleek and modern look, resembling the Netflix branding. ## Getting Started To get started with this project, follow these steps: 1. Clone the repository: ```bash git clone https://github.com/alok-2002/Netflix_Home_Page_Using_HTML_And_CSS.git ``` 2. Open the project in your preferred code editor. 3. Launch the `index.html` file in a web browser to view the Netflix home page. 4. Feel free to modify the code and customize the page according to your preferences. You can update the content, change the colors, or add new features. ## Contributing Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. ## License This project is licensed under the [MIT License](LICENSE). Feel free to use the code for personal or commercial purposes. ## Acknowledgements - The design and inspiration for this project come from the official Netflix website. - Special thanks to the open-source community for providing helpful resources and tutorials on web development. ## Contact If you have any questions, suggestions, or feedback, you can reach out to the project maintainer: - Your Name : [Alok Sharma](https://linkedin.com/in/alok-sharma2002-) - Email: [sharmaalok02gwl@gmail.com](mailto:sharmaalok02gwl@gmail.com) --- Enjoy exploring the code and creating your own Netflix-like home pages!
This repository contains the code for building a Netflix-inspired home page using HTML and CSS. The project aims to recreate the visual design and layout of the Netflix home page, providing a starting point for creating similar interfaces or learning web development techniques.
css,html,javascript,netflix,netflix-clone,netflix-landing-page,netflix-landing-page-clone,netflix-home-page,front-end-development,project-showcase
2023-06-12T18:54:03Z
2024-05-16T06:30:39Z
null
2
1
23
0
15
27
null
MIT
HTML
escabora/color-log
main
[![Version](https://img.shields.io/npm/v/color-log-package.svg)](https://www.npmjs.com/package/color-log-package) [![Downloads Total](https://img.shields.io/npm/dt/color-log-package.svg)](https://www.npmjs.com/package/color-log-package) [![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/escabora/color-log-package/blob/main/LICENSE.md) [![CodeFactor](https://www.codefactor.io/repository/github/escabora/color-log/badge)](https://www.codefactor.io/repository/github/escabora/color-log) # Color Log Package The creation of this package is to help identify precious logs in applications ## Installation ```javascript yarn add color-log-package //- or npm install color-log-package ``` ## Usage There are two ways to use this package. The first way to use our aliases is to be fast and responsive. ```javascript import log from 'color-log-package' const data = { key: 'test' } log('Success', data) log('Warning', data) log('Error', data) ``` ### Output:<br /> ![default](/imgs/default.png) <br /><br /><br /> The second you can define the color, the styles and the message that will be displayed. Just passing an array with the styles you want ```javascript import log from 'color-log-package' const data = { key: 'test' } const setupColor = ['BgBlue', 'Bright', 'FgWhite']; log('Test Custom Log', data, setupColor); ``` ### Output:<br /> ![custom](/imgs/custom.png)<br /><br /> Use our list below to find out what color and style parameters you can use: | parameter | output | |-------------- |-------- | | `Reset` | ![Reset](/imgs/Reset.png) | | `Bright` | ![Bright](/imgs/Bright.png) | | `Dim` | ![Dim](/imgs/Dim.png) | | `Underscore` | ![Underscore](/imgs/Underscore.png) | | `Blink` | ![Blink](/imgs/Blink.png) | | `Reverse` | ![Reverse](/imgs/Reverse.png) | | `Hidden` | ![Hidden](/imgs/Hidden.png) | | `FgBlack` | ![FgBlack](/imgs/FgBlack.png) | | `FgRed` | ![FgRed](/imgs/FgRed.png) | | `FgGreen` | ![FgGreen](/imgs/FgGreen.png) | | `FgYellow` | ![FgYellow](/imgs/FgYellow.png) | | `FgBlue` | ![FgBlue](/imgs/FgBlue.png) | | `FgMagenta` | ![FgBlue](/imgs/FgBlue.png) | | `FgCyan` | ![FgCyan](/imgs/FgCyan.png) | | `FgWhite` | ![FgWhite](/imgs/FgWhite.png) | | `FgGray` | ![FgGray](/imgs/FgGray.png) | | `BgBlack` | ![BgBlack](/imgs/BgBlack.png) | | `BgGreen` | ![BgGreen](/imgs/BgGreen.png) | | `BgYellow` | ![BgYellow](/imgs/BgYellow.png) | | `BgBlue` | ![BgBlue](/imgs/BgBlue.png) | | `BgMagenta` | ![BgMagenta](/imgs/BgMagenta.png) | | `BgCyan` | ![BgCyan](/imgs/BgCyan.png) | | `BgWhite` | ![BgWhite](/imgs/BgWhite.png) | | `BgGray` | ![BgGray](/imgs/BgGray.png) | ## License The code is available under the [MIT License](LICENSE.md).
🖍 Package to style the logs of your codes and terminals
cli,color,console-log,javascript,log,terminal
2023-06-11T21:40:45Z
2023-06-12T01:07:54Z
null
1
0
17
0
2
27
null
null
TypeScript
Batuhanaydnn/Flask-Reddit-Dashboard
master
# Flask Reddit Dashboard Flask Reddit Dashboard is a web application that provides a user-friendly interface to display and filter Reddit posts. It allows users to register, login, and view posts from the subreddit 'netsec'. The application utilizes the Flask framework, SQLAlchemy for database management, and the Python Reddit API Wrapper (praw) to interact with the Reddit API. ## Features - User Registration: Users can create an account by providing their name, email, and password. The registration data is stored securely in a SQLite database. - User Login: Registered users can log in to their accounts using their email and password. The application verifies the user's credentials against the stored data in the database. - User Dashboard: After logging in, users are directed to their personalized dashboard. The dashboard displays both the filtered posts from the 'netsec' subreddit and all the posts available in the database. Users can filter the posts based on a provided text filter. - Reddit API Integration: The application connects to the Reddit API using praw. It crawls the 'netsec' subreddit for new posts and adds them to the database. The application also retrieves post information such as title, content, upvotes, comment count, and media links. - RESTful API Endpoints: The application provides several RESTful API endpoints to access post data. Users can retrieve all posts, filter posts based on selected parameters, and filter posts based on upvotes. - Notes: You may not be able to access the site structure directly because some files are private. (see. .gitignore) ## Technologies Used - Flask: A micro web framework for Python used to develop the web application. - SQLAlchemy: A Python SQL toolkit and Object-Relational Mapping (ORM) library used for database management. - praw: A Python wrapper for the Reddit API, allowing interaction with Reddit's features and data. - SQLite: A lightweight database engine used to store user and post data. ## Installation To run the Flask Reddit Dashboard locally, follow these steps: 1. Clone the repository: `git clone https://github.com/yourusername/flask-reddit-dashboard.git` 2. Install the required dependencies: `pip install -r requirements.txt` 3. Set up the database by running the following commands: 4. Run the application: `python app.py` 5. Open your web browser and access the application at `http://localhost:5000` ### or ## Docker Installation 1. Build the Docker image by running the following command in the terminal, while being in the same directory as the Dockerfile ``` docker build -t myflaskapp . ``` 2. Run the Docker container with the following command ``` docker run -p 5000:5000 myflaskapp # This will start the Flask application inside the Docker container and map port 5000 of the container to port 5000 of your local machine. ``` 3. Access your Flask application by visiting http://localhost:5000 in your web browser. ## API Documentation The Flask Reddit Dashboard provides the following API endpoints: - `GET /api/allposts/`: Retrieves all posts in the database. - `GET /api/selectedposts/?name=<parameter>&value=<value>`: Retrieves posts based on a selected parameter (e.g., title, content). - `GET /api/upvotes/?value=<value>`: Retrieves posts with upvotes greater than the specified value. - `GET /api/upvotes/?value=<value>`: Retrieves posts with upvotes greater than the specified value. - `GET /api/login`: Login via API. - `GET /api/register`: Register via API. For detailed information on using these API endpoints, please refer to the API documentation. ## Contributions Contributions to the Flask Reddit Dashboard project are welcome! If you find any issues or have ideas for improvements, please open an issue or submit a pull request on the GitHub repository. ## License This project is licensed under the MIT License. See the [LICENSE](https://github.com/Batuhanaydnn/flask-reddit-dashboard/blob/main/LICENSE) file for more details. ## Acknowledgements The Flask Reddit Dashboard project acknowledges the usage of the following third-party libraries and APIs: - Flask: [https://flask.palletsprojects.com](https://flask.palletsprojects.com) - SQLAlchemy: [https://www.sqlalchemy.org](https://www.sqlalchemy.org) - praw: [https://praw.readthedocs.io](https://praw.readthedocs.io) - Reddit API: [https://www.reddit.com/dev/api/](https://www.reddit.com/dev/api/) - wkhtmltopdf: [https://wkhtmltopdf.org/downloads.html](https://wkhtmltopdf.org/downloads.html) ## Class Diagram ### User Model Class Diagram ``` +----------------+ | User | +----------------+ | - id: Integer | | - name: String | | - email: String | | - password: String | | - created_at: DateTime | +----------------+ | __repr__() | +----------------+ ``` ### Post Model Class Diagram ``` +----------------+ | Post | +----------------+ | - id: Integer | | - title: String | | - content: Text | | - created_at: DateTime | | - user_id: Integer | | - upvotes: Integer | | - comment_count: Integer | | - video_link: String | | - image_link: String | +----------------+ | __repr__() | +----------------+ ``` ## Explanation of the Code ``` 1. The code imports necessary modules and libraries, including Flask, SQLAlchemy, datetime, and praw (Python Reddit API Wrapper). 2. The Flask application is created, and the secret key and database configuration are set up. 3. Two models are defined using SQLAlchemy: User and Post. These models represent the tables in the database. 4. Several routes are defined using the `@app.route` decorator to handle different HTTP requests. - The '/' route represents the home page. - The '/register' route handles registration of new users. - The '/login' route handles user login. - The '/dashboard' route represents the user dashboard, where posts are displayed. - The '/api/allposts/' route returns all posts as JSON. - The '/api/selectedposts/' route returns posts based on a selected parameter. - The '/api/upvotes' route returns posts with upvotes greater than a specified value. - The '/logout' route logs out the user by removing the user_id from the session. 5. The `home()` function renders the home.html template. 6. The `register()` function handles user registration by adding a new user to the database. 7. The `login()` function handles user login by checking the email and password against the database. 8. The `dashboard()` function displays the user dashboard, which includes posts. It retrieves posts from the database and filters them based on the provided filter text. It also interacts with the Reddit API to crawl new posts and add them to the database. 9. The `api_all_posts()` function retrieves all posts from the database and returns them as JSON. 10. The `api_selected_posts()` function retrieves posts based on a selected parameter (name and value) and returns them as JSON. 11. The `api_upvotes()` function retrieves posts with upvotes greater than a specified value and returns them as JSON. 12. The `logout()` function removes the user_id from the session to log out the user. 13. The `if __name__ == '__main__':` block creates the database tables using `db.create_all()` and starts the Flask application. 14. With the download-post endpoint, it allows you to download all the content on the dashboard in pdf format. WARNING: If you have too much content, you may encounter error messages because I haven't written pagination yet. 15. The /api/register function you can register via api with 16. The /api/login function you can login via api with ``` ## 🌟 Welcome to Batuhan's Coding Wonderland! 🚀 If you've stumbled upon this enchanting corner of the coding universe, get ready for an extraordinary adventure! 🎩✨ 👋 Greetings, fellow travelers! I'm Muhammed Batuhan Aydın, your guide through this whimsical world of code. As a passionate developer and explorer of digital realms, I invite you to join me on an exhilarating journey through the realms of technology and innovation. 🌌💻 Within these virtual landscapes, we'll traverse the valleys of Python, scale the mountains of Flask, and dive deep into the mysterious depths of databases. Together, we'll unravel the secrets of web development and create amazing applications that bring dreams to life. 🌐🔧 But this is not just another mundane coding experience. Along the way, we'll sprinkle our journey with a touch of magic and fun! Expect surprises, hidden easter eggs, and interactive challenges that will test your coding prowess and spark joy in your heart. 🎉✨ Oh, and did I mention that we have a secret language? ✨✨ The language of creativity, innovation, and problem-solving. Together, we'll speak this language fluently and conjure remarkable solutions to any challenge that crosses our path. So, fasten your seatbelts and prepare to be enchanted! 🌟🔮 Let's embark on this extraordinary adventure, where learning becomes an exhilarating quest and every line of code reveals a new chapter in our story. Remember, in Batuhan's Coding Wonderland, there are no limits to what we can achieve. Let's dream big, code boldly, and create wonders that leave a lasting mark on this digital realm. 🚀💡 🌈 Are you ready to embrace the magic of coding? Then join me, and let's set forth into this incredible journey together! Follow me on Twitter [@Telumak](https://twitter.com/Telumak) and connect with me on LinkedIn [Batuhan Aydın](https://www.linkedin.com/in/batuhan-aydinn/) to stay updated with the latest adventures. May the code be with you! 🌟💻✨ Kind Regards Muhammed Batuhan Aydın Note: I guess you'll get me on internship now and I'm too lazy to use the blueprint structure, so I'm sorry about that, I'll update it after a 3-day project. Last Note: Bak bu türkçe abi canlıya almaya çok üşendim gerekliyse yaparım. Ben kaçtım bye
It is the project that allows instant tracking of the posts of the desired subreddit on Reddit,
flask,javascript,python,python3,reddit,reddit-api,reddit-app
2023-06-19T19:47:10Z
2023-07-10T12:04:33Z
null
1
0
46
0
0
26
null
NOASSERTION
Python
chi-0828/profile-site
react_version
# profile-site ![image](src/img/showcase.png) [![GitHub repository](https://img.shields.io/badge/GitHub-chi--0828%2Fprofile--site-blue.svg)](https://github.com/chi-0828/profile-site) ![GitHub top language](https://img.shields.io/github/languages/top/chi-0828/profile-site?color=blue&logo=Ionic&logoColor=white) ![GitHub stars](https://img.shields.io/github/stars/chi-0828/profile-site?color=success&logo=github) ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/w/chi-0828/profile-site) ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/chi-0828/profile-site) [![MIT License](https://img.shields.io/npm/l/express.svg?maxAge=2592000)](LICENSE) <br> [![npm version](https://img.shields.io/badge/npm-9.5.1-yellow)](https://docs.npmjs.com/) [![node version](https://img.shields.io/badge/node-18.16.1-yellow)](https://nodejs.org/en) <br> profile-site is a template of MacOS terminal-style personal profile website - star :star: this project if you enjoy this template ## [Update log](#update) ## [Try it out](#usage) ## Demo > #### Demo website link > [see the demo website](https://chi-0828.github.io/profile-site/) ## Demo screenshot #### Some demo images ASCII art can be generated on an online tool, e.g., [patorjk](https://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20) ![image](src/img/demo.png) ![image](src/img/demo2.png) ## Usage download the source ``` shell git clone https://github.com/chi-0828/profile-site.git ``` run npm ``` shell cd profile-site npm install npm run start ``` customize your website <br> modify the title of `public/index.html`, change `User` to your name ``` html <head> <meta charset="UTF-8"> <!-- some codes --> <title>User</title> <!-- Put your name here --> <!-- some codes --> </head> ``` `src/img/me5.png` is your personal image, `src/customization/*.json` is your personal information ``` shell cd src/customization # change the introduction in *.json to your own information # change the images in img/* to your own photo and your school/company logo ``` example-1: customize `Experience.json` ``` json { "companies" : [ { "logo" : "path related to src", "name" : "your company name", "position_time" : "your job title, when", "description" : "what you do" }, { "logo" : "./img/patere-removebg-preview.png", "name" : "XXXX Co.", "position_time" : "Software Engineering Intern, Aug. 2021 - Jun. 2022", "description" : "Computer vision and deep learning project, e.g., implementing an object detection application for patient assistance" } ] } ``` example-2: customize `Introduction.json` ``` json { "intro" : "write your portfolio here", "github" : "your GitHub", "googlescholar" : "your google scholar (or your Gmail)", "linkedin" : "your LinkedIn", "orcid" : "your orcid (or any other social account, e.g., FB, IG)" } ``` if you don't have npm on your PC, I recommend you download it or use the HTML version (the HTML version is no longer maintained) ``` shell git clone --branch html https://github.com/chi-0828/profile-site.git ``` if you want to deploy the site on your GitHub page ``` shell git clone https://github.com/chi-0828/profile-site.git cd profile-site vim package.json ``` configure `package.json` ``` json { "//": "name is your project name", "name": "profile-site", "version": "0.1.0", "//": "change 'your-account' to your GitHub account and 'profile-site' to repository", "homepage": "https://your-account.github.io/profile-site", "..." : "..." } ``` ``` shell npm run deploy ``` There will be a new branch `gh-pages` on your repository; you can host the branch to be the GitHub page in `setting` <br> [see the tutorial](https://github.com/gitname/react-gh-pages) # Update ### 2323/06/28 | Add new tab "Project customize `Project.json` to show your projects ![image](src/img/demo3.png) ## TODO The project is under-going - add the animation of terminal-style text printing - ~~add a new tab for "Project"~~ - ~~change the source code to React project (done)~~
The profile-site is a personal website template, which is macos terminal style. The project is built by React, and provides user to easily customize the website.
personal-homepage,personal-website,profile-website,terminal-style-website,website-template,css,html,github-pages,learn,javascript
2023-06-09T09:00:45Z
2023-09-05T15:11:27Z
null
2
5
78
0
2
24
null
MIT
CSS
Curtis-Thomas/free-api-list-with-react
main
# Free API List with React ![Image Alt Text](img/ReadMeImg.png) [![React](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB)](https://reactjs.org/) [![Material UI](https://img.shields.io/badge/Material%20UI-007FFF?style=for-the-badge&logo=mui&logoColor=white)](https://material-ui.com/) Welcome to the Free API List with React project! This open source project aims to provide a comprehensive list of free APIs along with tools to test and explore them. The project is built using React, and it allows users to discover and learn about various APIs available for different purposes. ## Features ![Image Alt Text](img/Initial_page.png) ### **API Listing** Explore a diverse selection of APIs spanning various types and applications, providing a comprehensive array of valuable services for your projects. - Enjoy a user-friendly interface designed for effortless comprehension and usability, making it simple to navigate and explore the available APIs. - Benefit from a categorized listing that streamlines the process of discovering the ideal API for your specific needs. - APIs are classified based on application difficulty levels, ranging from beginner-friendly complexities to challenging applications, suitable even for experienced developers. ### **Easy access to APIs Documentation** Aiming to simplify the process of finding the documentation for a desired API, FREE API List provides the documentation right at the beginning of each API page, right above its description. - Access the documentation with a single link that will direct you to the official API page. - Obtain detailed information about each API more easily, including endpoints, request parameters, and response formats. ### **API Testing** ![Image Alt Text](img/api_testing.png) Experience a streamlined testing interface that enables the execution of fundamental functionalities for each API. - Effortless invocation of GET, POST, PUT, and DELETE functions. - View responses in the JSON format provided by the API itself. - Accessible Base URLs and Endpoints simplify and expedite the functionality testing process. ## Live Demo Explore the live demo of the Free API List with React project: [Free API List](https://freeapilist.com/) ## Contributing Contributions are welcome and greatly appreciated! If you would like to contribute to the project by adding new APIs, improving documentatio or enchancing the testing tools, please follow the guidelines in the [Contributing](CONTRIBUTING.md) document. ## License This project is licensed under the [MIT License](LICENSE). ## Contact If you have any questions, suggestions, or feedback, please feel free to reach out to the project maintainer. --- Thank you for your interest in the Free API List with React project. We hope you find it useful and contribute to its growth and improvement!
Open Source API List and Testing Tools
react,apis,community,contributions-welcome,documentation,front-end,open-source,testing-tools,web-development,api
2023-06-09T22:55:14Z
2024-04-03T06:49:09Z
2023-06-13T09:36:08Z
28
70
436
1
37
23
null
MIT
JavaScript
milanmdev/bsky.rss
main
# bsky.rss A configurable RSS poster for Bluesky > [!IMPORTANT] > Version 2 introduces many new features as well as changes to the configuration of the app. Consult the [migration guide](documentation/v1-to-v2.md) for more information. # Setup ## Docker Copy this `docker-compose.yml` file to your Docker host and edit the environment variables: ```yml version: "3" services: bsky-rss: restart: always image: ghcr.io/milanmdev/bsky.rss environment: - APP_PASSWORD= - INSTANCE_URL= - FETCH_URL= - IDENTIFIER= volumes: - /your/data/directory:/build/data ``` You will need to create a mount for `/build/data` to a directory on your host machine. This is where the `config.json` file will be stored. Refer to the [Environment Variables & Configuration File](#environment-variables--configuration-file) section for more information on the environment variables and how to set up the configuration file. ## Manual 1. Clone the repository ```bash git clone github.com/milanmdev/bsky.rss ``` 2. Install the dependencies ```bash yarn install ``` 3. Create a `.env` file in the root directory of the project and refer to the [Environment Variables & Configuration File](#environment-variables--configuration-file) section to configure the environment variables and the configuration file. 4. Run the bot ```bash yarn start ``` # Environment Variables & Configuration File ## Environment Variables Here's an outline of the environment variables: - `APP_PASSWORD`: The password of the account that will be posting the RSS feed (you can use an account password, but it's recommended to use an app password) - `INSTANCE_URL`: The URL of your Bluesky instance (if using the official one, use "https://bsky.social") - `FETCH_URL`: The URL of the RSS feed you want to fetch & post from (e.g. "http://rss.cnn.com/rss/cnn_latest.rss") - `IDENTIFIER`: The identifier for the account to post from (this can be the email address or the username of the account) ## Configuration File - If you set up the RSS poster using **Docker**, create the `config.json` file in your data directory that you mounted in the compose file. - If you set up the RSS poster **manually**, rename the `config.example.json` file in the `data` directory to `config.json`. Here's an example of the `config.json` file: ```json { "string": "$title - $link", "publishEmbed": true, "embedType": "card", "languages": ["en"], "ogUserAgent": "", "truncate": true, "runInterval": 60, "dateField": "", "imageField": "", "imageAlt": "$title", "forceDescriptionEmbed": false, "removeDuplicate": false, "descriptionClearHTML": false, "titleClearHTML": false } ``` - `string`: The string to post to Bluesky. You can use the following variables in the string: - `$title`: The title of the RSS post - `$link`: The link to the RSS post - `$description`: The description of the RSS post - `publishEmbed`: Whether to publish the post as an embed or not. If set to `true`, the post will be published as an embed with the title, description (if available), and link to the RSS post. - `embedType`: Type of embed. If set to `card`, the post will be published with an Open Graph/link card. If set to `image` an image will be uploaded. - `languages`: The languages to set the posts to. This can be an array of `ISO 639-1` language codes. If not set, it will default to `en`. - `ogUserAgent`: The user agent to use when fetching the Open Graph data of the URL provided by the RSS post. By default, this is set to `bsky.rss/1.0 (Open Graph Scraper)`. - `truncate`: Whether or not to truncate the body of the post if it is over 300 characters. By default, this is set to `true`. - `runInterval`: The interval (in seconds) to run the RSS poster. By default (and recommended), this is set to `60` seconds. - `dateField`: The field to use for the date of the RSS post. This can be any field that is available in the RSS feed. If not set, it will default to pubDate and/or date. - `imageField`: The field to use for fetching the image of the RSS post. This can be any field that is available in the RSS feed. If not set, the poster will fetch the Open Graph data of the URL provided by the RSS post and use the image from there. - `imageAlt`: Alt text for the uploaded image if the `embedType` is set to `image`. Can be any variable (+ string) used in the `string` configuration (e.g. `$title`). - `forceDescriptionEmbed`: Force the description of the embed to be the description of the RSS post (as opposed to using Open Graph data). - `removeDuplicate`: Instead of using the last date to track which items need to be published, use a text-based database to track duplicate items. - `descriptionClearHTML`: Remove HTML from the description of the Open Graph description and RSS-provided description (to make it more readable). - `titleClearHTML`: Remove HTML from the title of the post (to make it more readable). A `docker-compose.yml` file can be found in the root directory as `docker-compose.example.yml`, which you can use to set up the RSS poster using Docker. # License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
A configurable RSS poster for Bluesky
bluesky,hacktoberfest,rss,javascript,typescript
2023-06-26T05:49:37Z
2024-05-23T15:55:14Z
null
3
125
338
3
8
22
null
MIT
TypeScript
srbhr/website-for-resume-matcher
main
# Resume Matcher Website This repository contains code for the Landing Page for Resume Matcher. ### [www.resumematcher.fyi](https://www.resumematcher.fyi/) PR's welcomed. Check resume matcher here: [LINK](https://github.com/srbhr/Resume-Matcher) Created in [Astro](https://astro.build), with the help of [Astrowind](https://github.com/onwidget/astrowind). ## Building ### Using Gitpod By using [Gitpod.io](https://www.gitpod.io), you can automatically build the website and skip the steps below in one single click. [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/srbhr/website-for-resume-matcher) ### Locally 1. Fork the repository [here](https://github.com/srbhr/website-for-resume-matcher/fork). 2. Clone the repository to your local machine. ```bash git clone https://github.com/<YOUR-USERNAME>/website-for-resume-matcher.git ``` 3. Install NPM dependencies. ```bash npm ci ``` 4. Build the website. ```bash npm run build ``` 5. Start the development server. ```bash npm run dev ``` 6. Open the website in your browser: <http://localhost:4321>. 7. You're done! 🎉 The website should be available on your machine.
Resume Matcher Website
astro,astrojs,data-science,data-visualization,javascript,landing-page,machine-learning,natural-language-processing,python,react
2023-06-23T07:41:17Z
2023-10-22T10:30:16Z
null
3
17
37
1
8
22
null
MIT
Astro
hyzyla/pdfium
main
# @hyzyla/pdfium 📃 [Documentation](https://pdfium.js.org/docs/intro) Node.js wrapper for the PDFium library: - ⬇️ [pdfium](https://pdfium.googlesource.com/pdfium/) - source code of the PDFium library, developed by Google and used in Chrome. - ⬇️ [pdfium-lib](https://github.com/paulocoutinhox/pdfium-lib) - project to compile PDFium library to multiple platforms, including WebAssembly. - 📍 [@hyzyla/pdfium](https://github.com/hyzyla/pdfium) - (you are here) Node.js wrapper for the WebAssembly build of PDFium library. # Features - 📦 Zero dependencies - PDFium library is compiled to WebAssembly and bundled with the package. - 🚀 Fast - PDFium can be faster than PDF.js, because it's originally written in C++ and compiled to WebAssembly, while PDF.js is entirely written in JavaScript. - 🔒 Type-safe - TypeScript definitions are included. ## Installation ```sh # yarn add @hyzyla/pdfium # pnpm install @hyzyla/pdfium npm install @hyzyla/pdfium ``` ## Usage ```ts import { PDFiumLibrary } from "@hyzyla/pdfium"; import { promises as fs } from 'fs'; async main() { const buff = await fs.readFile('test2.pdf') // Initialize the library, you can do this once for the whole application // and reuse the library instance. const library = await PDFiumLibrary.init();; // Load the document from the buffer // You can also pass "password" as the second argument if the document is encrypted. const document = await library.loadDocument(buff); // Iterate over the pages, render them to PNG images and // save to the output folder for (const page of document.pages()) { console.log(`${i + 1} - rendering...`); // Render PDF page to PNG image const image = await page({ scale: 3, // 3x scale (91 DPI is the default) render: 'sharp', // use "sharp" for converting bitmap to PNG }); // Save the PNG image to the output folder await fs.writeFile(`output/${i + 1}.png`, image.data); } // Do not forget to destroy the document and the library // when you are done. document.destroy(); library.destroy(); } main(); ``` ## Deploy 1. Bump version in `package.json` 2. Create a new release in GitHub 3. Check status of the [GitHub Actions](https://github.com/hyzyla/pdfium/actions)
Node.js wrapper for the PDFium library
javascript,nodejs,pdf
2023-06-09T15:14:36Z
2024-02-03T11:35:44Z
2023-09-03T15:53:44Z
1
4
79
1
2
21
null
MIT
TypeScript
project-nos/decorators
master
![NOS decorators](.github/banner.svg) # NOS decorators [![github workflow tests](https://img.shields.io/github/actions/workflow/status/project-nos/decorators/tests.yml?branch=master&label=tests&style=flat-square)](https://github.com/project-nos/decorators/actions/workflows/tests.yml) [![mit license](https://img.shields.io/github/license/project-nos/decorators?style=flat-square)](https://github.com/project-nos/decorators/blob/master/LICENSE) [![npm](https://img.shields.io/npm/v/@project-nos/decorators?style=flat-square)](https://www.npmjs.com/package/@project-nos/decorators) [![npm bundle size](https://img.shields.io/bundlephobia/min/@project-nos/decorators?style=flat-square)](https://bundlephobia.com/package/@project-nos/decorators) ### A library to help you build Web Components fast and easy. You no longer have to write all the boilerplate code needed to bring your components to life. Under the hood this library uses decorators to automatically bind attributes, actions and targets to your Web Components. There is no better way to get a feel for what NOS decorators is and what it can do, than by seeing it for yourself: Imagine you create a hello-world component which generates following html: ```html <hello-world some-number="123" some-boolean some-string="baz" some-array="[4,5,6]" some-object="{"foo":"bar"}"> <button hello-world-action="click#foo" hello-world-target="bar">…</button> <div hello-world-targets="bazs">...</div> <div hello-world-targets="bazs">...</div> </hello-world> ``` You no longer need to query for elements on your own, listen for events or create `getters` for attributes. Everything you have to do is to add the corresponding decorators to your class and properties. ```typescript import { actionable, attributable, attribute, targetable, target, targets } from '@project-nos/decorators'; @actionable() @attributable() @targetable() class HelloWorld extends HTMLElement { @attribute({ type: Number }) accessor someNumber: number @attribute({ type: Boolean }) accessor someBoolean: boolean; @attribute({ type: String }) accessor someString: string; @attribute({ type: Array }) accessor someArray: []; @attribute({ type: Object }) accessor someObject: object; @target() accessor bar: HTMLButtonElement; @targets() accessor bazs: HTMLDivElement[]; foo(event: Event) { //... } } ``` *** ## Documentation For full documentation, visit our [Wiki](https://github.com/project-nos/decorators/wiki). ## License Copyright (c) [Andreas Penz](https://github.com/andreaspenz). Licensed unter the [MIT License](https://github.com/project-nos/decorators/blob/master/LICENSE).
NOS decorators is a library to help you develop Web Components fast and easy.
custom-elements,decorators,javascript,typescript,web-components
2023-06-17T16:40:26Z
2023-11-27T09:25:25Z
2023-11-27T09:25:25Z
3
18
75
0
2
19
null
MIT
TypeScript
lauthieb/variables-converter-figma-plugin
main
# variables-converter-figma-plugin [![Variables converter thumbnail that shows its UI](./resources/images/variables-converter-cover-art.png)](https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter) ## Try it! To try this plugin in production, just [go to its Figma Community page](https://www.figma.com/community/plugin/1256000104406722117/Variables-Converter), install it & enjoy! ## Install Below are the steps to get your plugin running. You can also find instructions at: https://www.figma.com/plugin-docs/plugin-quickstart-guide/ This plugin template uses Typescript and NPM, two standard tools in creating JavaScript applications. First, download Node.js which comes with NPM. This will allow you to install TypeScript and other libraries. You can find the download link here: https://nodejs.org/en/download/ Then, install dependencies: ```sh npm install ``` ## Develop To develop, we encourage you to use the watch mode by lauching: ```sh npm run build:watch ``` Then, go to Figma, open a design file, activate the "Dev Mode", go to "Plugins" tab, select "Development" in the dropdown, click on the "+ button" and "Import plugin from manifest". You just need to target the `manifest.json` file at the root of this project. Finally, click on "Run" button aside "Variables Converter". ## Build To build the plugin for production, just launch: ```sh npm run build:watch ``` ## Recommended configuration We recommend writing TypeScript code using Visual Studio code: 1. Download Visual Studio Code if you haven't already: https://code.visualstudio.com/. 2. Open this directory in Visual Studio Code. 3. Compile TypeScript to JavaScript: Run the "Terminal > Run Build Task..." menu item, then select "npm: build:watch". You will have to do this again every time you reopen Visual Studio Code. That's it! Visual Studio Code will regenerate the JavaScript file every time you save. ## License Copyright 2023 Laurent Thiebault. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Figma Plugin that generates CSS, JavaScript, Compose & SwiftUI variables from your Figma variables
convert,css,dev,devmode,figma,figma-design,figma-plugin,javascript,js,mode
2023-06-29T22:39:36Z
2024-05-02T22:25:52Z
null
2
2
11
3
7
19
null
Apache-2.0
HTML
snowball-tech/fractal
main
# Fractal - Snowball's design system <!-- prettier-ignore-start --> | [`design-tokens`](./packages/design-tokens) | [`fractal`](./packages/fractal) | | - | - | | [![design-tokens](https://img.shields.io/npm/v/@snowball-tech/design-tokens)](https://www.npmjs.com/package/@snowball-tech/design-tokens) | [![fractal](https://img.shields.io/npm/v/@snowball-tech/fractal)](https://www.npmjs.com/package/@snowball-tech/fractal) | | ![design-tokens-dependants](https://img.shields.io/librariesio/dependents/npm/@snowball-tech/design-tokens) | ![fractal-dependants](https://img.shields.io/librariesio/dependents/npm/@snowball-tech/fractal) | | ![design-tokens-downloads](https://img.shields.io/npm/dt/@snowball-tech/design-tokens) | ![fractal-downloads](https://img.shields.io/npm/dt/@snowball-tech/fractal) | | ![design-tokens-score](https://img.shields.io/npms-io/final-score/@snowball-tech/design-tokens) | ![fractal-score](https://img.shields.io/npms-io/final-score/@snowball-tech/fractal) | | Quality on `main` branch | Security on `main` branch | Release on `main` branch | Chromatic on `main` branch | | - | - | - | - | | ![Quality](https://github.com/snowball-tech/fractal/actions/workflows/quality.yml/badge.svg?branch=main&event=push) | ![Security](https://github.com/snowball-tech/fractal/actions/workflows/security.yml/badge.svg?branch=main&event=push) | ![Release](https://github.com/snowball-tech/fractal/actions/workflows/release.yml/badge.svg?branch=main&event=push) | ![Chromatic](https://github.com/snowball-tech/fractal/actions/workflows/storybook.yml/badge.svg?branch=main&event=push) | <!-- prettier-ignore-end --> The open-source mono-repository for the design reference, components libraries and documentations of Fractal, Snowball's design system. ## Setup Before anything, start by cloning the repository: ```bash git clone git@github.com:snowball-tech/fractal.git ``` > If you haven't setup any SSH key to your GitHub account, you will need to do > so. Check out the documentation on > [how to connect with SSH](https://docs.github.com/en/authentication/connecting-to-github-with-ssh). > Alternatively, you can also use HTTPS to clone the repository _(but this is > not recommended)_: > > ```bash > git clone https://github.com/snowball-tech/fractal.git > ``` > Note that you can also use the [GitHub CLI](https://cli.github.com/) to clone > the repository: > > ```bash > gh repo clone snowball-tech/fractal > ``` When cloned, go into the repository directory: ```bash cd fractal ``` ### Pre-requisites Before setting up this repository and start using it/contributing to it, you'll need to make sure you have some tools installed on your machine. <details> <summary>Click here to see the details</summary> ### **MacOS only** <details> <summary>Click for more information</summary> If you are on MacOS, you will need some extra things to make the steps below easier. 1. **Homebrew** First of all, you will need [HomeBrew](https://brew.sh/): ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` > You can always check the [official documentation](https://brew.sh) if you have > any question or issue 4. **Shell** You are probably using Zsh as your default shell. Some steps below are updating the `.zshrc` file in your home directory. So we have to make sure this file exists: ```bash touch ~/.zshrc ``` If you are using Bash as your default shell, run: ```bash touch ~/.bash_profile ``` > These commands may give you an error if the files already existed. > You can ignore it. </details> ### **NodeJS** To be able to work with this repository, you will have to have a working version of NodeJS. You can simply install the latest version of the 18.x.x or LTS 20.x.x build. To do so, it's recommended to use a Node Version Manager like [NVM](https://github.com/nvm-sh/nvm) or [N](https://github.com/tj/n) #### **NVM** ```bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash ``` > Note that you may check on the > [official installation documentation](https://github.com/nvm-sh/nvm#install--update-script) > if a newer version is available. > You can always check the > [official documentation](https://github.com/nvm-sh/nvm#node-version-manager---) > if you have any question or issue Then restart your terminal _(on MacOS you have to completely quit the Terminal application before restarting it)_. Then you can make NVM automatically select the appropriate NodeJS version for the repository: ```bash nvm use ``` #### **N** ```bash curl -L https://bit.ly/n-install | bash ``` Then restart your terminal _(on MacOS you have to completely quit the Terminal application before restarting it)_. > Alternatively, on MacOS you can also run: > > ```bash > brew install n > ``` > > And then restart your terminal by completely quitting the Terminal application > and restarting it. > You can always check the > [official installation documentation](https://github.com/mklement0/n-install#n-install-mdash-introduction) > and the [official documentation](https://github.com/tj/n#n--interactively-manage-your-nodejs-versions) > if you have any question or issue Then you can make N automatically select the appropriate NodeJS version for the repository: ```bash n auto ``` ### **Yarn** This mono-repository is base on Yarn Workspaces. So you'll have to have [Yarn](https://yarnpkg.com/) on its 4.x.x version. When having NodeJS installed, simply run: ```bash corepack enable corepack prepare yarn@stable --activate ``` > You can always check the > [official installation documentation](https://yarnpkg.com/getting-started/install) > if you have any question or issue Then make sure you have the latest 4.x.x version installed: ```bash yarn --version ``` This should output a 4.x.x version _(e.g. "4.2.2")_. </details> ## Installation There is an automated setup process that will handle all the steps for you (dependencies, configuration, ...): ```bash yarn setup ``` ### There you go You are now ready to start working on Fractal. ## Usage & Development > It's recommended to regularly update the dependencies and the environment on > your local copy of the repository: > > ```bash > yarn setup > ``` This repository is a mono-repository. This means that it contains multiple packages and applications all together in a single Git repository. Each of these packages and applications contains their own documentation in their own `README.md` file. > See the [dedicated `TOOLING.md` documentation](./docs/TOOLING.md) for more > information about the mono-repository management with Yarn workspaces. ### File structure This repository is organized around two major directories: ```text fractal |-- apps |-- packages |-- ... ``` #### Applications Applications are located in the [apps](./apps) directory. This directory contains applications made to be published publicly as documentation support for the whole design system. There are currently \*no applications in Fractal repository. #### Packages Packages are located in the [packages](./packages) directory. This directory contains packages made to be published in a **public** NPM repository (<https://www.npmjs.com>) and used in other packages and/or apps. There are currently **2** packages available in Fractal: - **[design-tokens](./packages/design-tokens)**: the list of design tokens defining the design system and to be used in all the apps _(web, mobile, ...)_ and packages throughout the organization; - **[fractal](./packages/fractal)**: the React component library, made of components, styles, icons, ... based on Radix-UI and PandaCSS and to be used in web (React) applications. It also contains the Storybook documentation that is uploaded to Chromatic and the main documentation webiste. ### TypeScript See [the dedicated `CONVENTIONS.md`](./docs/CONVENTIONS.md) and [`TOOLING.md`](./docs/TOOLING.md) documentations. ### Linting & Formatting See [the dedicated `CONVENTIONS.md`](./docs/CONVENTIONS.md) and [`TOOLING.md`](./docs/TOOLING.md) documentations. ### Dependencies > Always remember to add dependency if you **really** need it to avoid > cluttering the packages and degrading the performance both in the developers > and users side. **It is your duty** as a member of the Snowball's engineering team to help mainting the dependencies up to date. This means that you are expected and should help reviewing, testing and merging dependencies updates PRs on a regular basis. > The best way to do so is to regularly check the > [Renovate dashboard](https://github.com/snowball-tech/fractal/issues/1) and > [the list of Pull Requests](https://github.com/snowball-tech/fractal/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc+label%3Adev-deps%2Cdeps), > for example every morning at the beginning of your day. Also, see the [dedicated `TOOLING.md` documentation](./docs/TOOLING.md) for more information. ### Environment variables See [the dedicated `TOOLING.md` documentation](./docs/TOOLING.md). ## Tooling See [the dedicated `TOOLING.md` documentation](./docs/TOOLING.md). ## Contributing See [the dedicated `CONTRIBUTING.md` documentation](./CONTRIBUTING.md). ### Conventions See [the dedicated `CONVENTIONS.md` documentation](./docs/CONVENTIONS.md). ## Help and feedback If you have any questions or feedback, feel free to reach out to us using this repository [issues](https://github.com/snowball-tech/fractal/issues) or [discussions](https://github.com/snowball-tech/fractal/discussions). You can also use the internal #engineering Slack channel if you are a member of the Snowball tech team. You can also check [the dedicated `TROUBLESHOOTING.md` documentation](./docs/TROUBLESHOOTING.md) for frequently asked question and troubleshooting.
The open-source mono-repository for the design reference, components libraries and documentations of Fractal, Snowball's design system.
design-system,design-tokens,figma,javascript,lodash,mono-repository,react,snowball,storybook,style-dictionary
2023-06-19T07:33:04Z
2024-05-23T12:36:38Z
2024-05-23T12:36:38Z
3
216
1,263
1
0
19
null
MIT
TypeScript
abhisheks008/Cognizant-Java-FSE-Handson-2023
main
# Java FSE Internship at Cognizant, 2023 ![image](https://github.com/abhisheks008/Cognizant-Java-FSE-Hands-ons-2023/assets/68724349/c6f75761-b2c6-466d-8cba-6b4f1d2122c6) The Java FSE training program is divided into four stages, with a total duration of 16 weeks. Here is the breakdown of the weeks allocated to each stage: - Stage 1 - 5 weeks - Stage 2 - 4 weeks - Stage 3 - 3 weeks - Stage 4 - 4 weeks During the training, interns will progress through these stages, with each stage focusing on specific topics and skill development. It is important to note that the duration of each stage may vary depending on the training program and organizational requirements.
This repository contains all the latest solutions of Java FSE domain from the Internship and CSD training by Cognizant Technology Solutions. All the solutions are updated for the year 2023.
bootstrap4,cognizant,csd,css3,fse,hands-on,html5,internship,java,javascript
2023-06-25T14:43:09Z
2023-06-26T16:31:21Z
null
1
1
323
0
8
19
null
MIT
Java
sonyarianto/sveltekit-monaco-editor
main
# sveltekit-monaco-editor Simple and quick demo about how to use Monaco Editor in SvelteKit. ## Why? Why not? I am boring looking all sample Monaco Editor in React. I want to see how it works in SvelteKit. ## How to use? Clone this repo and run `npm install` to install all dependencies including Monaco Editor. Then run `npm run dev` to start the dev server. ## Use case - [x] Use Monaco Editor in SvelteKit. - [x] As educational material for SvelteKit. - [x] Good as starter template, since several batteries included (Tailwind CSS etc). ## Demo https://sveltekit-monaco-editor.vercel.app ## References - https://dev.to/lawrencecchen/monaco-editor-svelte-kit-572 - https://www.codelantis.com/blog/sveltekit-monaco-editor - https://github.com/microsoft/monaco-editor/blob/main/samples/browser-esm-vite-react/src/main.tsx (I like this) - and many others ## License MIT Maintained by Sony Arianto Kurniawan <<sony@sony-ak.com>> and contributors.
Simple and quick demo about how to integrate Monaco Editor in SvelteKit. Boring to see all samples mostly on React!
javascript,monaco-editor,svelte,sveltekit
2023-06-27T18:42:10Z
2023-12-03T13:19:37Z
null
1
0
33
0
0
19
null
MIT
Svelte
SeanPesce/JSRETK
main
# JavaScript Reverse Engineering Toolkit (JSRETK) **Author: Sean Pesce** ## Overview NodeJS scripts for analyzing (minified/obfuscated) JavaScript. All tools support processing of local files, remote files via HTTP(S) URL, or data from standard input. These tools are still under heavy development, so ideas and contributions are welcome. ## Requirements & Installation System packages: * `curl` * [`nodejs`](https://nodejs.org) (18.3+) Node modules: * [`escodegen`](https://github.com/estools/escodegen) * [`esprima`](https://github.com/jquery/esprima) * [`estraverse`](https://github.com/estools/estraverse) **Note:** These tools ship with an updated version of [`esrefactor`](https://github.com/ariya/esrefactor) by [Nick LaRosa](https://github.com/cakesmith). [Nick's version](https://github.com/cakesmith/esrefactor) fixes some major issues with the version of the library in NPM (see the pull request [here](https://github.com/ariya/esrefactor/pull/9)). The PR version could also be installed directly with `npm install ariya/esrefactor#pull/9/head`, but I've included it here for convenience. ## Tools ### `jsretk-strings` This script extracts string literals from JavaScript code, with similar results to running `strings` against a compiled binary executable. It also supports options to extract JavaScript comments and RegEx literals. ``` $ node jsretk-strings.js --help Usage: node jsretk-strings.js [OPTIONS] <JS_FILE_1> [[JS_FILE_2] ...] Options: [-h|--help] Print usage and exit [-P|--stdin] Pipe data from stdin [-c|--comments] Include JavaScript comments in output [-C|--comments-only] Find ONLY JavaScript comments (no string/RegEx literals; overrides "-c") [-r|--regex] Include Regular Expression (RegEx) literals in output [-R|--regex-only] Find ONLY RegEx literals (no comments/string literals; overrides "-r") [-T|--templates-only] Find ONLY template strings (no static string/RegEx literals or comments) [-m|--min] Find strings of this length or longer (inclusive) [-M|--max] Find strings of this length or shorter (inclusive) [-x|--match-regex] <ex> Find strings that match the given Regular Expression [-k|--insecure] Don't verify TLS/SSL certificates for connections when fetching remotely-hosted JS files [-p|--curl-path] <path> Non-standard path/name for the curl command [-B|--max-buffer] <n> Maximum size (in bytes) for remotely-fetched JS files (default: 50MB) [-E|--encoding] <enc> Text encoding for local input/output files (default: "utf8") [-i|--interactive] Enter interactive NodeJS prompt after completion ``` ### `jsretk-unminify` **WARNING:** This script is unstable and non-performant in its current state. This script attempts to un-minify JavaScript code by: * Detecting and renaming minified variables to have unique names across the entire file (uniquify) * Using various heuristics to make some variable names more informative * Formatting the code for readability Note that the current implementation can take an extremely long time to perform uniquification, so use of the `-v|--verbose` flag is highly recommended for monitoring progress. For some codebases (e.g., some React Native deployments), the experimental `-L|--per-line` flag can reduce completion time exponentially. ``` $ node jsretk-unminify.js --help Usage: node jsretk-unminify.js [OPTIONS] <JS_FILE_1> [[JS_FILE_2] ...] Options: [-h|--help] Print usage and exit [-P|--stdin] Pipe data from stdin [-v|--verbose] Enable verbose output [-o|--output-dir] <dir> Output directory (default: "jsretk-out") [-O|--overwrite] If output file(s) exist, automatically overwrite [-t|--tab] Use tab characters ("\t") instead of spaces for indenting formatted code [-I|--indent] <n> Number of spaces (or tabs) used for indenting formatted code (default: 4 spaces or 1 tab) [-r|--rename-len] <n> Rename variables if names are shorter than or equal to this value (default: 2 characters) [-R|--no-rename] Don't rename variables to unique names [-F|--no-format] Don't format the code for readability [-C|--char-iter] Iterate over characters instead of tokens during refactoring. Significantly slower; may produce slightly different output [-s|--smart-rename] (EXPERIMENTAL) Use various heuristics to attempt to generate more informative variable names [-L|--per-line] (EXPERIMENTAL) Attempt to refactor code line by line (rather than the whole file at once). Useful for some react-native deployments, but fails on many (most?) codebases [-k|--insecure] Don't verify TLS/SSL certificates for connections when fetching remotely-hosted JS files [-p|--curl-path] <path> Non-standard path/name for the curl command [-B|--max-buffer] <n> Maximum size (in bytes) for remotely-fetched JS files (default: 50MB) [-E|--encoding] <enc> Text encoding for local input/output files (default: "utf8") [-i|--interactive] Enter interactive NodeJS prompt after completion ``` --------------------------------------------- For inquiries and/or information about me, visit my **[personal website](https://SeanPesce.github.io)**.
JavaScript Reverse Engineering Toolkit (JSRETK) - Experimental tools for analyzing (minified/obfuscated) JavaScript
ast,javascript,js,minified,reverse-engineering,reversing,static-analysis,strings,abstract-syntax-tree,esprima
2023-06-17T03:08:21Z
2023-11-20T12:35:03Z
null
1
0
12
0
2
19
null
GPL-2.0
JavaScript
PB2204/Flappy-Bird-Game
main
# Flappy-Bird-Game This Is A Very Beautiful Version Of Flappy Bird Game , Made By Using HTML, CSS &amp; JavaScript Only... # Live Demo https://pb2204.github.io/Flappy-Bird-Game/ # GitHub App Link https://github.com/apps/flappy-bird-game-desktop-version
This Is A Very Beautiful Version Of Flappy Bird Game , Made By Using HTML, CSS & JavaScript Only...
css,game,game-development,games,html,javascript,webdevelopment
2023-06-25T06:36:52Z
2023-06-25T07:01:57Z
null
1
0
3
0
0
18
null
MIT
JavaScript
erikfinkel/Spoly-nft-erc721-polygon
main
## 💀SKULLA NFT MINT DAPP - on <mark>Polygon</mark> ![cover](./cover.jpg) --- > Polygon, React, Tailwind, SCSS, ERC 721 [Visit Skulla](https://skullapolygon.netlify.app/ "Visit Skulla!") -> Polygon blockchain based NFT mint Dapp `yarn` `yarn dev-server` # ERC721 NFT ## Main features - extremely high gas efficiency (users are going to pay lower gas fees compared to traditional collections) - whitelist support with customizable list size (using a Merkle Tree for verification) - automated contract verification through block explorers (e.g. Etherscan) - simple CLI commands that guide you through all the sale steps (whitelist, pre-sale, public sale) - built as a Hardhat project with TypeScript support for a better development experience - includes a fully-featured minting DAPP (React + TypeScript + tailwind + Webpack) - full support for contract interaction through block explorers (e.g. Etherscan), for all the users that do not trust custom DAPPs (including the `whitelistMint(...)` function) - customizable minting DAPP (from basic branding to complete customization) ## commands yarn deploy --network truffle \ yarn verify 0xf8bf55a6bf9d3149984994c4430 \ yarn whitelist-open --network truffle \ yarn whitelist-close --network truffle \ yarn presale-open --network truffle \ yarn reveal --network truffle --- #nft #websiteMint #blockChain, #Polygon #PolygonNFTmint, #MetaMask
Erc 721 NFT minting dapp website on Polygon chain
blockchain,javascript,polygon,react,smart-contracts,solidity,erc721,nft,tailwindcss,typescript
2023-06-11T11:25:40Z
2023-06-11T11:30:07Z
null
1
0
1
0
0
18
null
null
TypeScript
YoonHCho/Meta-Back-End-Developer
main
# Meta Back-End Developer Professional Certificate Coursera [Meta Back-End Developer Professional Certificate](https://www.coursera.org/professional-certificates/meta-back-end-developer), contains all of the assignments from the 9 courses. ## Courses Course 1: [Introduction to Back-End Development](https://www.coursera.org/learn/introduction-to-back-end-development?specialization=meta-back-end-developer) Course 2: [Programming in Python](https://www.coursera.org/learn/programming-in-python?specialization=meta-back-end-developer) Course 3: [Version Control](https://www.coursera.org/learn/introduction-to-version-control?specialization=meta-back-end-developer) Course 4: [Introduction to Databases for Back-End Development](https://www.coursera.org/learn/intro-to-databases-back-end-development?specialization=meta-back-end-developer) Course 5: [Django Web Framework ](https://www.coursera.org/learn/django-web-framework?specialization=meta-back-end-developer) Course 6: [APIs](https://www.coursera.org/learn/apis?specialization=meta-back-end-developer) Course 7: [The Full Stack](https://www.coursera.org/learn/the-full-stack?specialization=meta-back-end-developer) Course 8: [Back-End Developer Capstone ](https://www.coursera.org/learn/back-end-developer-capstone?specialization=meta-back-end-developer) Course 9: [Coding Interview Preparation](https://www.coursera.org/learn/coding-interview-preparation?specialization=meta-back-end-developer)
Professional Certificate, consisting of a 9-course series, is designed by the software engineering experts at Meta to prepare individuals for a career as a back-end developer
algorithms,api,css,database,django,html,javascript,mysql,python3,rest-api
2023-06-19T19:36:53Z
2023-07-26T23:22:12Z
null
1
44
89
0
5
18
null
null
Python
the-PrafulDesai/Watchtower-Online-Book-Website
main
# Watchtower-Online-Book-Website Watchtower is a front-end project aimed at creating an immersive and user-friendly online book store experience. This project focuses on delivering a captivating user interface design and intuitive navigation to enhance the browsing and shopping journey for book enthusiasts. -> Features 1) Seamless User Interface: Watchtower offers a visually appealing and responsive user interface, ensuring a smooth and enjoyable browsing experience across various devices. 2) Book Catalog: Browse an extensive catalog of books, categorized by genre, author, and popularity, making it easier for users to find their desired titles. 3) Search Functionality: Utilize the search feature to quickly find specific books or authors based on keywords, allowing users to narrow down their search and discover new reading material. 4) Book Details: Each book listing provides comprehensive details, including the title, author, description, cover image, and customer reviews, enabling users to make informed decisions about their purchases. 5) Shopping Cart: Add books to the shopping cart, review the selected items, and proceed to checkout, making the buying process convenient and hassle-free. 6) User Accounts: Create a personalized user account, save favorite books, and track order history, providing a personalized experience for returning users. -> Technologies Used 1) HTML5, CSS3, and JavaScript for front-end development, Git for version control and collaboration -> Getting Started To get a local copy of the Watchtower project up and running on your machine, follow these steps: 1) Clone the repository: git clone https://github.com/the-PrafulDesai/Watchtower-Online-Book-Store.git 2) Navigate to the project directory: cd watchtower 3) Open the index.html file in your preferred web browser to access the Watchtower online book store. ->Contributing Contributions to Watchtower are welcome and encouraged! If you'd like to contribute, please follow these guidelines: 1) Fork the repository. 2) Create a new branch for your feature or bug fix: git checkout -b my-new-feature 3) Make your changes and ensure they are properly tested. 4) Commit your changes: git commit -m 'Add some feature' 5) Push the branch to your forked repository: git push origin my-new-feature 6) Submit a pull request detailing your changes for review. ->License Watchtower is open-source software licensed under the MIT License. Feel free to use, modify, and distribute this project according to the terms of the license. ->Acknowledgements We would like to express our gratitude to the developers and contributors of the libraries, frameworks, and resources used in the creation of Watchtower. Your work has greatly contributed to the success of this project. If you have any questions, suggestions, or encounter any issues, please feel free to contact us or submit an issue in the repository. We hope you enjoy using Watchtower as much as we enjoyed developing it!
Watchtower is a front-end project aimed at creating an immersive and user-friendly online book store experience. This project focuses on delivering a captivating user interface design and intuitive navigation to enhance the browsing and shopping journey for book enthusiasts.
css,html,javascript,ui,web
2023-06-13T12:15:51Z
2023-06-13T12:17:33Z
null
1
0
3
0
1
18
null
MIT
HTML
faisal-shohag/leetcode_api
master
null
A working node js api. Specially with submission calendar.
leetcode,leetcode-api,cp,cyclic,express,fetch-api,javascript,node-js
2023-06-16T23:12:49Z
2024-01-15T21:19:55Z
null
2
1
13
0
8
18
null
null
JavaScript
1FarZ1/React_projects
main
# React_projects ### 18 Projects i built on my way to Master ReactJs ## Projects - Backroads - birthday - reviews - tours - accordeon - menu - tabs - slider - lorem - color-generator - grocery-bud - navbar - sidebar-modal - stripe-submenus - cart - cocktails - comfy-sloth - jobester - Github users ## what i learned in those projects - React Basics - React Components - React Props - React State - React best practices - React folder structure - React Router - React Hooks - React Context API - React Redux - React Suspense - React Lazy ## How to run the projects - Clone the repo - cd into the project folder - run `npm install` - run `npm run dev` ## what dependencies i used in those projects - react - react-dom - react-router-dom - react-icons - nano-id - auth0-js - react-scripts - a lot of utils packages in javascript ## contribution - if you have any idea to improve the projects or you want to add a new project, feel free to open an issue or a pull request ## License - MIT ## Author - Fares Bekkouche
18 Projects i built on my way to Master ReactJs
clean-code,front-end,javascript,reactjs,typescript,web-development
2023-06-17T03:50:37Z
2023-12-09T13:22:12Z
null
1
0
56
0
0
17
null
null
TypeScript
OpenQuickJS/quickjs
main
# QuickJS > A community-driven QuickJS fork. ### Optimizations In addition to the relevant features and optimizations in the [TODO](https://github.com/openwebf/quickjs/blob/master/TODO) file, the more important optimizations are: - [x] Column number - [ ] Basic Debugger API - [x] Poly IC - [x] Self Poly IC - [x] Prototype Poly IC - [x] Replace malloc To [mimalloc](https://github.com/microsoft/mimalloc) - [ ] Improve The Performance Of GC In our plan, we first complete the above optimizations and then gradually add the remaining parts. ### Develop #### Clone ```bash git clone --recurse-submodules https://github.com/openquickjs/quickjs.git ``` #### Install Build Tools ```bash brew install cmake ninja # macOS sudo apt install cmake ninja-build # Ubuntu ``` The Windows build environment is not yet officially supported. #### Build ```shell bash scripts/build.sh # build quickjs qjs bash scripts/test.sh # run test262 tests ``` You can find `libquickjs.a` in `lib` folder and `qjs` / `run-test262` in `bin` folder. 1. If you're using Visual Studio Code, you can use the `CMake Tools` extension to build the program. 2. If you're using CLion, you can open the project directly to build the program. Using VSCode or CLion for regular development is recommended. #### Debug Install Debug Tools if you need. ```bash brew install lldb # macOS sudo apt install lldb # Ubuntu ``` If you're using VSCode, you can use the `C/C++` and `Code LLDB` extension to debug. ### Tests ```bash Average memory statistics for 75250 tests: NAME COUNT SIZE memory allocated 1011 124975 (123.6 per block) memory used 967 117030 (0 overhead, 8.2 average slack) atoms 532 26858 (50.5 per atom) objects 172 12425 (72.2 per object) properties 876 15798 (5.1 per object) shapes 60 13809 (230.2 per shape) bytecode functions 13 1685 bytecode 13 931 (71.6 per function) C functions 100 arrays 1 fast arrays 1 elements 1 16 (1.0 per fast array) Result: 515/75250 errors, 1392 excluded, 7972 skipped, 515 new ``` ### Benchmark > - Apple M1 Pro > - macOS Monterey 12.2.1 > - Clang 13.0.0 arm64-apple-darwin21.3.0 | | bellard/quickjs (2788d71) | openwebf/quickjs (latest) | | ------------- | ---------- | ---------- | | Richards | 1188 | 1457 | | Crypto | 1443 | 1527 | | RayTrace | 744 | 1995 | | NavierStokes | 2775 | 2979 | | DeltaBlue | 1100 | 1595 | | Total score | 1312 | 1840 (+40.2%) | | File Size(KB) | 1.3M | 1.4M |
A community-driven QuickJS fork. Issues and Pull Requests are welcome.
herm,javascript,javascript-engine,javascript-engines,javascriptcore,quickjs,v8,virtual,vm
2023-06-12T07:28:09Z
2023-06-30T02:40:32Z
null
1
0
71
9
2
17
null
NOASSERTION
C
Afordin/aforshow
master
# AforShow Landing Page ¡Bienvenido al proyecto AforShow! Este repositorio contiene el código fuente de la landing page del AforShow, un emocionante evento de programación organizado por la comunidad de Afor Digital. El AforShow es un evento especial en el que miembros de la comunidad pueden postularse para dar charlas o talleres en el canal de Twitch de Afor Digital. Es una oportunidad única para compartir conocimientos, aprender de otros programadores talentosos y fortalecer nuestra comunidad. ## Características - **Postulaciones**: Los participantes pueden enviar sus propuestas para charlas o talleres y compartir sus ideas con la comunidad. - **Programación de eventos**: Una vez que se han seleccionado las propuestas, la landing page muestra la programación completa del AforShow, incluyendo los horarios y temas de las charlas o talleres. - **Información del evento**: Los usuarios pueden encontrar detalles relevantes sobre el AforShow, como la fecha, hora y lugar de transmisión en Twitch. - **Enlaces a Twitch**: La landing page proporciona enlaces directos al canal de Twitch de Afor Digital, para que los espectadores puedan acceder fácilmente a las transmisiones en vivo. Aquí tienes un ejemplo de un código Markdown para proporcionar una guía de "Getting Started" para ejecutar una aplicación de Astro desde un repositorio de GitHub: ## Getting started Esta guía te ayudará a comenzar a ejecutar una aplicación de Astro desde un repositorio de GitHub en tu entorno local. ## Prerrequisitos Antes de comenzar, asegúrate de tener instalado lo siguiente: - Node.js: [Descargar e instalar Node.js](https://nodejs.org) - Git: [Descargar e instalar Git](https://git-scm.com/downloads) ## Pasos a seguir 1. Clona el repositorio de GitHub en tu máquina local utilizando el siguiente comando en la terminal: ```bash git clone <URL_DEL_REPOSITORIO> ``` Reemplaza `<URL_DEL_REPOSITORIO>` con la URL del repositorio de GitHub que contiene la aplicación de Astro. 2. Accede al directorio del repositorio clonado: ```bash cd <DIRECTORIO_DEL_REPOSITORIO> ``` Reemplaza `<DIRECTORIO_DEL_REPOSITORIO>` con el nombre del directorio del repositorio clonado en tu máquina. 3. Instala las dependencias del proyecto ejecutando el siguiente comando: ```bash npm install ``` 4. Inicia la aplicación de Astro ejecutando el siguiente comando: ```bash cp .example.env .env ``` Copie el example.env en .env y rellene las variables de entorno 5. Inicia la aplicación de Astro ejecutando el siguiente comando: ```bash npm run dev ``` Esto iniciará la aplicación y podrás acceder a ella desde tu navegador en la dirección [http://localhost:3000](http://localhost:3000). ¡Felicitaciones! Ahora estás ejecutando la web de AforShow de Astro desde el repositorio de GitHub en tu entorno local. ## Personalización y ajustes adicionales Si deseas personalizar o realizar ajustes adicionales en la aplicación de Astro, puedes explorar y editar los archivos del repositorio clonado. Asegúrate de consultar la documentación proporcionada en el repositorio para obtener más detalles sobre cómo realizar modificaciones específicas. ## Recursos adicionales - [Documentación oficial de Astro](https://astro.build/) - [Repositorio de GitHub](<URL_DEL_REPOSITORIO>) Asegúrate de reemplazar `<URL_DEL_REPOSITORIO>` con la URL real del repositorio de GitHub que contiene la aplicación de Astro. También, puedes agregar enlaces y recursos adicionales relevantes en la sección de "Recursos adicionales". Recuerda que este es solo un ejemplo y debes adaptarlo según tus necesidades y la estructura de tu aplicación de Astro. ## Contribución ¡Agradecemos tus contribuciones a este proyecto! Si deseas colaborar, por favor sigue los pasos a continuación: 1. Haz un fork de este repositorio y clónalo en tu máquina local. 2. Crea una rama nueva para tu contribución. 3. Realiza los cambios y mejoras deseadas en el código. 4. Asegúrate de que las pruebas pasen correctamente. 5. Envía un pull request para que podamos revisar tus cambios. ## Contacto Si tienes alguna pregunta, sugerencia o simplemente quieres ponerte en contacto con nosotros, puedes hacerlo a través de los siguientes canales: - **Discord**: Únete al canal de AforShow en [Discord](https://discord.gg/ETwN8E7E) y podrás escribir tus consultas en el canal correspondiente. - **Twitch**: Durante las transmisiones en vivo en el canal de Twitch de Afor Digital ([afor_digital](https://www.twitch.tv/afor_digital)), podrás interactuar directamente y enviar tus mensajes en el chat en vivo. ¡Esperamos verte en el AforShow y disfrutar de un evento increíble juntos! ## 🚀 Project Structure Inside of your Astro project, you'll see the following folders and files: ``` / ├── public/ ├── src/ │ └── components/ │ └── Header.astro │ └── pages/ │ └── index.astro └── package.json ``` Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. Any static assets, like images, can be placed in the `public/` directory. ## 🧞 Commands All commands are run from the root of the project, from a terminal: | Command | Action | | :------------------------ | :----------------------------------------------- | | `npm install` | Installs dependencies | | `npm run dev` | Starts local dev server at `localhost:3000` | | `npm run build` | Build your production site to `./dist/` | | `npm run preview` | Preview your build locally, before deploying | | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | | `npm run astro -- --help` | Get help using the Astro CLI |
Repo de la landing page del #AforShow: ¡Impulsa tu desarrollo digital! Construido con Node.js, JavaScript, TypeScript, JSX, CSS3, Astro y HTML2Canvas. Diseño moderno con Tailwind CSS. Implementación fluida en Vercel. Gestión de usuarios con Supabase y autenticación Supabase-Auth. #Afordigital
astro,nodejs,tailwindcss,html2canvas,typescript,vercel,css3,javascript,jsx,supabase
2023-06-24T00:25:12Z
2023-07-21T17:48:21Z
null
20
52
251
0
8
17
null
null
TypeScript
jacobsimon/prompting
main
# prompting [![npm version](http://img.shields.io/npm/v/prompting.svg)](https://npmjs.org/package/prompting) > *A batteries-included, model-agnostic prompt engineering library for Node.js and TypeScript.* Build dynamic, reusable prompts that output structured data that's ready to use in your application or API. Compatible with all text-based generative language models such as OpenAI GPT. ## Features * Intuitive, flexible `Prompt` builder * Reusable prompt templates with variables * Validated output in JSON or CSV * Model-agnostic, extensible generation API * Serializable to database and files ## Installation To install `prompting`, use npm: ```bash npm install prompting ``` ## Examples ### Simple text prompt ```typescript import {Prompt} from 'prompting'; const prompt = Prompt().text('What is your favorite animal?') console.log(prompt.toString(); // 'What is your favorite animal?' ``` ### Using template variables and default values ```typescript import {Prompt} from 'prompting'; const prompt = Prompt() .text('What is your favorite {{topic}}?') .defaults({topic: 'animal'}); prompt.toString(); // 'What is your favorite animal?' prompt.vars({topic: 'color'}).toString(); // 'What is your favorite color?' ``` ### Generating prompt responses The library also contains a flexible `Generator` class for generating responses to a `Prompt`. For convenience, the `Generator.prompt()` method creates a new prompt that is bound to the `Generator` instance and can be invoked by calling `generate()`. Here's an example using the `OpenAIGenerator`: ```typescript import {OpenAIGenerator} from 'prompting'; const gpt = new OpenAIGenerator({apiKey: 'my_api_key'}); const prompt = gpt.prompt().text('What is your favorite {{topic}}?'); const result = await prompt.generate({topic: 'color'}); ``` The `generate` method returns a Promise that resolves to the model's response for the prompt. ### Structured JSON data with validation To output a structured object and validate the result automatically, construct your prompt using the `schema` method. The `Prompt` class leverages the power of JSON Schema and the battle-tested validation library [`ajv`](https://ajv.js.org/) to validate the response. ```typescript const prompt = Prompt() .text('List {{num}} books by the author {{author}}.') .defaults({num: 3}) .schema({ type: 'array', items: { type: 'object', properties: { title: {type: 'string'}, year: {type: 'string'}, }, required: ['title', 'year'], }, }); const result = await prompt.generate({author: 'George Orwell'}); ``` The `generate` method returns a Promise that resolves to the model's response if it matches the schema, or rejects with a validation error if the model's response doesn't match the schema. ## TypeScript Support The library supports strongly typed prompts, arguments, and return types when used with TypeScript. The `Prompt` class supports generics to specify the expected arguments and return type. Here's an example: ```typescript import {Prompt} from 'prompting'; type BookVars = {author: string}; type Book = {title: string, year: string}; const prompt = Prompt<BookVars, Book>() .text('What is the most popular book by {{author}}?') .schema({ type: 'object', properties: { title: {type: 'string'}, year: {type: 'string'}, }, required: ['title', 'year'], }); const result: Book = await prompt.generate({author: 'George Orwell'}); ``` In this example, the `generate` method takes an argument of type `BookVars` and returns a Promise that resolves to a `Book` object, or rejects with a validation error if the model fails to generate a valid response. ## Prompt API | Method | Description | Usage | --- | --- | --- | `Prompt(options?: PromptOptions)` | Creates a new instance of the Prompt class. | Prompt() | `text(template: string)` | Sets the text template for the prompt. | prompt.text('What is your favorite {{topic}}?') | `defaults(defaults: object)` | Sets default values for the variables in the text template. | prompt.defaults({topic: 'animal'}) | `schema(schema: object)` | Sets the JSON schema for validating the generated result. | prompt.schema({type: 'string'}) | `generate(vars?: object)` | Generates the final prompt text by replacing variables in the template, then executes the generator to get the AI response. | prompt.generate({color: 'red'}) | `vars(vars: object)` | Returns a copy of the Prompt with variables preset but does not generate the result, e.g. in order to call `toString` | prompt.vars({topic: 'animal'}) | `using(generator: Generator)` | Sets the generator for the prompt so that `generate` can be called. | prompt.using(generator) | `toString()` | Returns the final prompt text by replacing variables in the template. | prompt.toString() | `toJSON()` | Returns the prompt as a JSON object, useful for serializing to a file or database. | prompt.toJSON() ### PromptOptions | Property | Type | Description | --- | --- | --- | `text` | string | The text template for the prompt. | `defaults` | object | Default values for the variables in the text template. | `schema` | object | The JSON schema for validating the generated result. | `generator` | Generator | The generator instance to use for executing the prompt. ## Contributing Contributions to `prompting` are welcome! To contribute, please fork the repository and make your changes, then submit a pull request.
A batteries-included, model-agnostic prompt engineering library for Node.js and TypeScript.
ai,gpt,llm,prompt-engineering,javascript,typescript
2023-06-11T00:15:48Z
2023-06-12T17:58:14Z
2023-06-12T17:58:14Z
1
2
10
0
0
17
null
MIT
TypeScript
Pony-House/Client
dev
<center> <img align="center" src="https://github.com/Pony-House/Client/blob/dev/gallery/krita/banner/github.jpg?raw=true" height="380"> <br/> <p> <a rel="me" href="https://equestria.social/@JasminDreasond"><img src="https://img.shields.io/badge/Equestria-Social-2b90d9.svg?style=for-the-badge" alt="Equestria Social" /></a> <a href="https://www.patreon.com/JasminDreasond"><img src="https://img.shields.io/badge/donate-patreon-F96854.svg?logo=patreon&style=for-the-badge" alt="Patreon" /></a> <a href="https://ud.me/jasmindreasond.x"><img src="https://img.shields.io/badge/-Wallet-ecf0f1?style=for-the-badge&logo=Ethereum&logoColor=black" alt="Wallet" /></a> <a href="https://ko-fi.com/jasmindreasond"><img src="https://img.shields.io/badge/donate-ko%20fi-29ABE0.svg?logo=ko-fi&style=for-the-badge" alt="Ko-Fi" /></a> <a href="https://twitter.com/JasminDreasond"><img src="https://img.shields.io/twitter/follow/JasminDreasond?color=00acee&style=for-the-badge&logo=twitter" alt="Twitter" /></a> </p> </center> # Pony House A Cinny fork Matrix client, focused on being a completely customizable open source superapp with everything you need to be happy in your online life with your friends. <img align="center" src="https://github.com/Pony-House/Client/blob/dev/docs/assets/preview-1.png?raw=true" height="380"> ## Motivation I am someone who is definitely tired of seeing censorship spread across the internet. As I write this message on May 01 2023, it has been one of the most difficult days to have privacy, especially in Brazil due to the current political scenario. I see the Matrix project as one of the best alternatives to maintain at least try to keep communities and groups of friends on the internet. So my goal is to make this fork as good as possible so that not only can I be happy, but also all the people who are having a similar situation to me. ## Getting started Web app is available at https://client.pony.house/ and gets updated on each new release. To host Pony House on your own, download the app from [GitHub release](https://github.com/Pony-House/Client/releases/latest). You can serve the application with a webserver of your choice by simply copying `dist/` directory to the webroot. To set default Homeserver on login and register page, place a customized [`.env`](.env) in webroot of your choice. If you want to use devtools in production mode in the destkop version before the application is opened, type `--devtools` after the file path. ## Custom App Style Would you like to customize your login page to your website? Then you can check out some values available in the `config/custom-css.scss` file. Replace this value to change the appID: `pony-house-matrix` Replace some values in the file: `electron-builder.json5` App title in `electron/main/index.ts`. If you would like to edit the version checker url, you can edit the `src/client/state/cons.js` file. If you would like to edit the homeservers list, you can edit the `.env` file. If you want to put a custom name or welcome message for the app, edit the .env file. (This will only affect the application within react.) If you want to change some more information about the application's HTML, you'll be looking for the `index.html` file. If you are trying to edit application image files, you are looking for the `public/img/` folder. If you want to modify the manifest file, it is present in `public/manifest.json`. Things more related to the mobile version of the application I recommend you use the <a href="https://marketplace.visualstudio.com/items?itemName=ionic.ionic" target="_blank">Ionic extension</a> from Visual Studio Code. ## Auto select custom domain Example: https://client.pony.house/#matrix.org When the page loads, the application will automatically try to load the selected custom homeserver. This is useful if you want to refer a friend directly using your homeserver url. ## Mod and patch support You can freely develop mods for users to install on the Pony House. The application will also support you to build a version of Pony House with pre-installed mods. For more information see the folder `/mods`. ## Local development > We recommend using a version manager as versions change very quickly. You will likely need to switch between multiple Node.js versions based on the needs of different projects you're working on. [NVM on windows](https://github.com/coreybutler/nvm-windows#installation--upgrades) on Windows and [nvm](https://github.com/nvm-sh/nvm) on Linux/macOS are pretty good choices. Also recommended nodejs version Hydrogen LTS (v18). If you don't have nodejs, please install this: https://nodejs.org/ If you don't have yarn installed on your computer, it is recommended that you install it: ```sh npm install yarn -g ``` Execute the following commands to start a development server (or a Ionic environment): ```sh yarn # Installs all dependencies yarn start # Serve a development version ``` To build the web app: ```sh yarn build # Compiles the app into the dist/ directory ``` If the first option fails, please try this one: ```sh yarn build:8gb # Compiles the app into the dist/ directory ``` ### Electron (Desktop) > While you're using the app's dev mode, it's normal for the app to show that it's disconnected for a few seconds before fully loading the page. Notifications may not mute OS sound in application dev mode. The same thing can happen for notification click events to fail only in dev mode. The application has only been tested on the linux platform. But that won't stop you from trying to deploy to Windows or Mac. Execute the following commands to start a development server (or a Ionic environment): ```sh yarn # Installs all dependencies yarn electron:start # Serve a development version ``` To build the desktop app: ```sh yarn electron:build # Compiles the app into the release/ directory ``` ### AppData If you need to manage client files on your desktop version. You can find specific storage files in the directory below: %AppData%/pony-house-matrix/tinyMatrixData/ ## FAQ ### Is my data shared with third parties? Nope. This repository creator is not sharing data with third parties. This makes the project solely dependent on the community if any new glitch is discovered. The only peoples capable of collecting data are the homeserver owners and third-party stuff. ### Why is the list of homeservers empty by default instead of having default homeservers like matrix.org? This helps new matrix users not get lost when they are being guided to use a specific new homeserver. ### My website that is hosting this client was blocked from access by browser extensions. This client sends notification permission requests at the exact moment the page is loaded. Some security extensions may consider this a privacy violation. Sometimes this type of thing doesn't happen on the Pony House domain because I (JasminDreasond) always try to contact the staff of these extensions so the domain can be added to the whitelist. ### Can I completely disable IPFS and Web3? Yep. To disable it via the client, you need to go to the settings tabs. To permanently deactivate the features, you need to modify the `.env` file so you can deploy a client without access to the features. ### My browser keeps opening crypto wallet randomly It looks like you are using a browser that has a native crypto wallet. This is not an extension installed in your browser, I'm referring to something in your browser itself. (Example: Brave and Opera) And even with crypto features turned off, for some mysterious reason your browser still thinks it's a good idea to send you a ad to try force you to use the browser crypto wallet. If you want to disable this, research how to disable your browser's native crypto wallet. ### This client has web3 functionalities. Is this matrix client a crypto wallet? Nope. Pony House has access to crypto wallet APIs that are installed in your browser or on your computer. And this function can be turned off in the settings. ### Does the client support the purchase and sale of NFTs? Nope. But you can install mods from third-party creators that code this type of feature. ### What is my guarantee about using crypto resources on Pony House? Pony House's crypto resources are developed to be as secure as possible from trusted sources. Normally limited to personal uses between users only. (This is a CHAT SOFTWARE, not a crypto marketplace) When installing third-party mods involving web3, you are assuming that everything is at your own risk between you and the third-party developer. (including any accident of loss of funds due to lack of care on the part of both the user and the third-party developer)
The open source house, your house, the house for all matrix ponies
javascript,matrix,matrix-client,react,website,pony,pony-house,brony,brony-fandom
2023-06-16T01:43:56Z
2024-05-23T03:53:09Z
2024-05-18T01:01:04Z
2
530
3,310
10
10
17
null
AGPL-3.0
JavaScript
sarathrajan922/voyago
main
null
This web application, developed using the MERN (MongoDB, Express.js, React.js, Node.js) stack, empowers travelers to explore and connect with a vibrant traveling community. With three distinct user interfaces...
axios,clean-architecture,cloudinary,express,javascript,jwt,mongodb,moongose,multer,nodejs
2023-06-22T09:05:30Z
2023-10-28T18:08:02Z
null
1
66
217
0
0
17
null
null
TypeScript
ClaudiaRojasSoto/Api_dishes
develop
# JavaScriptCapstone <a name="readme-top"></a> # 📗 Table of Contents - [JavaScriptCapstone](#javascriptcapstone) - [📗 Table of Contents](#-table-of-contents) - [📖 JavaScriptCapstone ](#-javascriptcapstone-) - [🛠 Built With ](#-built-with-) - [Tech Stack ](#tech-stack-) - [Key Features ](#key-features-) - [💻 Getting Started ](#-getting-started-) - [Project Structure](#project-structure) - [Setup](#setup) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [👥 Authors ](#-authors-) - [🔭 Future Features ](#-future-features-) - [🤝 Contributing ](#-contributing-) - [⭐️ Show your support ](#️-show-your-support-) - [🙏 Acknowledgments ](#-acknowledgments-) - [📝 License ](#-license-) # 📖 JavaScriptCapstone <a name="about-project"></a> > This is the JavaScript Capstone project, where we built a web application based on an external API. The project is a webapp that revolves around a selected API, providing data about a topic of our choice. > [Here](https://youtu.be/Hi2MclqUOjU) is the link to the video presentation ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>HTML</summary> <ul> <li>This project use <a href="https://github.com/microverseinc/curriculum-html-css/blob/main/html5.md">HTML.</a></li> </ul> </details> <details> <summary>CSS</summary> <ul> <li>The <a href="https://github.com/microverseinc/curriculum-html-css/blob/main/html5.md">CSS</a> is used to provide the design in the whole page.</li> </ul> </details> <details> <summary>Linters</summary> <ul> <li>The <a href="https://github.com/microverseinc/linters-config">Linters</a> are tools that help us to check and solve the errors in the code</li> This project count with three linters: <ul> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ul> </ul> </details> <details> <summary>Webpack</summary> <ul> <li>HTML Webpack Plugin</li> <li>Webpack Style/CSS Loader</li> <li>Local dev Server</li> </ul> </details> <details> <summary>API's</summary> <ul> <li>The <a href="https://www.themealdb.com/api.php">Themealdb API</a> is for obtain the food items.</li> <li>The <a href="https://microverse.notion.site/Involvement-API-869e60b5ad104603aa6db59e08150270">Innvolvement API</a> is a Microverse API that allows the control of likes and comments.</li> </ul> </details> <br> ### Key Features <a name="key-features"></a> - **Webpack Configuration** - **HTML Generation** - **CSS Styling** - **Development Server** - **Code Quality** - **Modular Structure** - **ES6 Syntax** - **JavaScript Functionality** - **Gitflow** - **Send and receive data from API** - **Jest testing** - **API's** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 💻 Getting Started <a name="getting-started"></a> > To get a local copy up and running, follow these steps. > This project requires Node.js and npm installed on your machine. -Node.js -npm > -Clone this repository to your local machine using: > git clone https://github.com/andream2429/JavaScriptCapstone.git > -Navigate to the project folder: > cd Leaderboard > -Install the project dependencies: > npm install > o start the development server, run the following command: > npm start ### Project Structure > The project follows the following folder and file structure: > /src: Contains the source files of the application. > /src/index.js: Main entry point of the JavaScript application. > /src/style.css: CSS file for the application styles. > /src/index.html: Base HTML file of the application. > /dist: Contains the generated production files. > webpack.config.js: Webpack configuration file. ### Setup > Clone this repository to your desired folder: https://github.com/andream2429/JavaScriptCapstone.git ### Install > Install this project with: install WebLint and ESLint ### Usage > To run the project, execute the following command: just need a web Browser ### Run tests > To run tests, run the following command: you just need a simple web browser to run this project for a test ## 👥 Authors <a name="authors"></a> 👤 **Andrea Manuel** - GitHub: [@AndreaM2429](https://github.com/AndreaM2429) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/andrea-manuel-2b075026a/) 👤 **Claudia Rojas** - GitHub: [@githubhandle](https://github.com/ClaudiaRojasSoto) - LinkedIn: [LinkedIn](https://www.linkedin.com/in/claudia-soto-260504208/) <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🔭 Future Features <a name="future-features"></a> - **[User Authentication]** <p align="right">(<a href="#readme-top">back to top</a>)</p> ## 🤝 Contributing <a name="contributing"></a> > Contributions, issues, and feature requests are welcome! > Feel free to check the [issues page](https://github.com/AndreaM2429/JavaScriptCapstone/issues). <p align="right">(<a href="#readme-top">back to top</a>)</p> ## ⭐️ Show your support <a name="support"></a> > If you like this project show support by following this account <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> > - Microverse for providing the opportunity to learn Git and GitHub in a collaborative environment. > - GitHub Docs for providing a wealth of information on Git and GitHub. <p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE --> ## 📝 License <a name="license"></a> > This project is [MIT](./LICENSE). <p align="right">(<a href="#readme-top">back to top</a>)</p>
This repo is a clone of the original group work for this Capstone Project.
jest-tests,webpack,css,fetch-api,javascript
2023-06-29T16:05:20Z
2024-01-05T02:22:04Z
null
2
0
96
0
0
17
null
MIT
JavaScript
DrDejaVuNG/super
main
<p align="center" height="100"> <img src="https://github.com/DrDejaVuNG/super/blob/main/screenshots/logo.png?raw=true" height="120" alt="Super" /> </p> <p align="center"> <a href="https://pub.dev/packages/flutter_super"><img src="https://img.shields.io/pub/v/flutter_super.svg?logo=dart&label=pub&color=blue" alt="Pub"></a> <a href="https://pub.dev/packages/flutter_super/score"><img src="https://img.shields.io/pub/points/flutter_super?logo=dart" alt="Pub points"></a> <a href="https://pub.dev/packages/very_good_analysis"><img src="https://img.shields.io/badge/style-very_good_analysis-B22C89.svg" alt="verygoodanalysis"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/github/license/DrDejaVuNG/flutter_super" alt="License: MIT"></a> <img src="https://github.com/DrDejaVuNG/super/blob/main/packages/flutter_super/coverage_badge.svg" alt="Coverage" /> </p> --- Super is a state management framework that aims to simplify and streamline the development of reactive and scalable applications. --- ## Features - Reactive state management. - Simple dependency injection. - Intuitive testing and much more. --- ## Table of Contents - [Features](#features) - [Table of Contents](#table-of-contents) - [Packages](#packages) - [Quick Samples](#quick-samples) - [Flutter](#flutter) - [React](#react) - [Maintainers](#maintainers) - [Credits](#credits) --- ## Packages | Package | PM | | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | | [dart_super](https://github.com/DrDejaVuNG/super/tree/main/packages/dart_super) | [![pub](https://img.shields.io/pub/v/dart_super.svg)](https://pub.dev/packages/dart_super) | | [flutter_super](https://github.com/DrDejaVuNG/super/tree/main/packages/flutter_super) | [![pub](https://img.shields.io/pub/v/flutter_super.svg)](https://pub.dev/packages/flutter_super) | | [js_super](https://github.com/DrDejaVuNG/super/tree/main/packages/js-super) | [![npm](https://img.shields.io/npm/v/ts-super.svg)](https://www.npmjs.com/package/ts-super) | | [react_super](https://github.com/DrDejaVuNG/super/tree/main/packages/react-super) | [![npm](https://img.shields.io/npm/v/react-ts-super.svg)](https://www.npmjs.com/package/react-ts-super) | | [super_test](https://github.com/DrDejaVuNG/super_test) | [![pub](https://img.shields.io/pub/v/super_test.svg)](https://pub.dev/packages/super_test) | <br> ## Quick Samples ### Flutter ![](https://raw.githubusercontent.com/DrDejaVuNG/images/main/images/flutter_super/counter_app.png) <br> ### React ![](https://raw.githubusercontent.com/DrDejaVuNG/images/main/images/react_super/counter_app.png) <br> ## Maintainers - [Seyon Anko](https://github.com/DrDejaVuNG) <br> ## Credits All credits to God Almighty who guided me through the project.
Reactive state management framework for scalable applications.
dart,flutter,state-management,super,flutter-super,flutter-package,library,mobile,cross-platform,web
2023-06-16T23:44:24Z
2024-04-18T18:44:31Z
null
1
1
71
0
2
16
null
MIT
Dart
sidverma32/frontend-preparation-kit
main
<h1 align="center">Frontend Preparation Kit</h1> <h4 align="center">Unlocking the Path to Frontend Excellence: Your Comprehensive Guide and Handpicked Collection of Cutting-edge Frontend Resources."</h3> <div align="center"> <img src="./public/javascript.gif" height="300px" /> <p> <a name="stars"><img src="https://img.shields.io/github/stars/sidverma32/frontend-preparation-kit?style=for-the-badge"></a> <a name="forks"><img src="https://img.shields.io/github/forks/sidverma32/frontend-preparation-kit?logoColor=green&style=for-the-badge"></a> <a name="contributions"><img src="https://img.shields.io/github/contributors/sidverma32/frontend-preparation-kit?logoColor=green&style=for-the-badge"></a> <a name="license"><img src="https://img.shields.io/github/license/sidverma32/frontend-preparation-kit?style=for-the-badge"></a> </p> Show your support by giving a ⭐&nbsp;&nbsp;to this repo </div> --- <div align="center"> <h4><a href="./public/2023_FE_roadmap.pdf">2023 Frontend Dev Interview checklist & Roadmap</a></h4> <h4><a href="./public/role-guide.md">Frontend Role Guide</a> to know about different frontend roles and their criterion</h4> <h4><a href="./public/interview-guide.md">Frontend Interview Guide</a> to know about different frontend interview rounds</h4> <h4><a href="./public/frontend_projects.pdf">Frontend projects for Practice & interviews</a> (beginners to intermediates)</h4> <h4><a href="./public/faq.md">FAQs</a> to clarify common doubts</h4> </div> <br> ## Checkout below all Frontend Interview Series ### :white_check_mark: [Javascript](./public/js.md) [60+ Questions with solution] ## Checkout all Frontend Preparation Materials <strong>***Roadmaps***</strong> - 📍&nbsp;&nbsp;[Road Map (Beginner Version)](https://roadmap.sh/frontend?r=frontend-beginner) - 📍&nbsp;&nbsp;[Road Map (Advanced Version)](https://roadmap.sh/frontend) <br> <strong>***Important articles to read before your interview***</strong> - 📍&nbsp;&nbsp;[ThatJsDude](http://www.thatjsdude.com/interview/index.html) - 📍&nbsp;&nbsp;[Cracking the front-end interview](https://medium.freecodecamp.org/cracking-the-front-end-interview-9a34cd46237) <br> <strong>*** Frontend CheatSheet ***</strong> [*** Frontend Interview CheatSheet ***](https://itnext.io/frontend-interview-cheatsheet-that-helped-me-to-get-offer-on-amazon-and-linkedin-cba9584e33c7) <br> <strong>***HTML***</strong> - 📗&nbsp;&nbsp;[MDN HTML](https://developer.mozilla.org/en-US/docs/Web/HTML) - 📗&nbsp;&nbsp;[W3 Schools](https://www.w3schools.com/html/) - 📗&nbsp;&nbsp;[HTML Tutorial](https://www.scaler.com/topics/html/) <br> <strong>***CSS***</strong> - 📗&nbsp;&nbsp;[MDN CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) - 📗&nbsp;&nbsp;[Web Dev](https://web.dev/learn/css/) - 🎥&nbsp;&nbsp;[CSS Complete Guide - Udemy](https://www.udemy.com/course/css-the-complete-guide-incl-flexbox-grid-sass/) - 📘&nbsp;&nbsp;[CSS for JS developers](https://css-for-js.dev/) <br> <strong>***Advanced CSS***</strong> - 📘&nbsp;&nbsp;[Debugging CSS](https://debuggingcss.com/) - 🎥&nbsp;&nbsp;[CSS Demystified](https://cssdemystified.com/) <br> <strong>***JavaScript***</strong> - 📗&nbsp;&nbsp;[Eloquent JavaScript](https://eloquentjavascript.net/) - 📗&nbsp;&nbsp;[JavaScript Info](https://javascript.info/) - 📗&nbsp;&nbsp;[MDN JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) - 📗&nbsp;&nbsp;[JavaScript Tutorial](https://www.javascripttutorial.net/) - 📘&nbsp;&nbsp;[JavaScript for Impatient Programmers](https://exploringjs.com/impatient-js/toc.html) - 📘&nbsp;&nbsp;[Just Javascript](https://justjavascript.com/) - 🎥&nbsp;&nbsp;[Complete JavaScript](https://www.udemy.com/course/the-complete-javascript-course/) - 🎥&nbsp;&nbsp;[Javascript Complete Guide](https://www.udemy.com/course/javascript-the-complete-guide-2020-beginner-advanced/) <br> <strong>***Advanced JavaScript***</strong> - 📗&nbsp;&nbsp;[You don't know JS](https://github.com/getify/You-Dont-Know-JS) - 📗&nbsp;&nbsp;[Secrets of the JavaScript Ninja](https://www.manning.com/books/secrets-of-the-javascript-ninja-second-edition) - 📘&nbsp;&nbsp;[Deep JavaScript](https://exploringjs.com/deep-js/toc.html) - 📘&nbsp;&nbsp;[Professional JavaScript for Web developers](https://www.oreilly.com/library/view/professional-javascript-for/9781119366447/) - 🎥&nbsp;&nbsp;[Deep JavaScript Foundations](https://frontendmasters.com/courses/deep-javascript-v3/) - 🎥&nbsp;&nbsp;[JavaScript Hard Parts](https://frontendmasters.com/courses/javascript-hard-parts-v2/) - 🎥&nbsp;&nbsp;[JavaScript: Understanding the Weird Parts](https://www.udemy.com/course/understand-javascript/) <br> <strong>***TypeScript***</strong> - 📗&nbsp;&nbsp;[TypeScript Deepdive](https://basarat.gitbook.io/typescript/) - 📗&nbsp;&nbsp;[Tackling TypeScript](https://exploringjs.com/tackling-ts/index.html) - 📗&nbsp;&nbsp;[TypeScript Tutorial](https://www.typescripttutorial.net/) - 📗&nbsp;&nbsp;[TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html) - 📘&nbsp;&nbsp;[Programming TypeScript](https://www.oreilly.com/library/view/programming-typescript/9781492037644/) - 🎥&nbsp;&nbsp;[Understanding typescript](https://www.udemy.com/course/understanding-typescript/) - 🎥&nbsp;&nbsp;[TypeScript Course by ui.dev](https://ui.dev/typescript/) <br> <strong>***React***</strong> - 📗&nbsp;&nbsp;[React Dev](https://react.dev/) - 🎥&nbsp;&nbsp;[React - The Complete Guide](https://www.udemy.com/course/react-the-complete-guide-incl-redux/) - 🎥&nbsp;&nbsp;[Epic React](https://epicreact.dev/) - 🎥&nbsp;&nbsp;[Scrimba - Learn React for free interactively](https://scrimba.com/learn/learnreact) <br> <strong>***React Repos***</strong> - 📁&nbsp;&nbsp;[React TypeScript Cheatsheet](https://github.com/typescript-cheatsheets/react) - 📁&nbsp;&nbsp;[Entire React code base explanation by visual block](https://github.com/Bogdan-Lyashenko/Under-the-hood-ReactJS) - 📁&nbsp;&nbsp;[Bulletproof React](https://github.com/alan2207/bulletproof-react) <br> <strong>***Other frameworks***</strong> - 🎥&nbsp;&nbsp;[NextJS](https://www.udemy.com/course/nextjs-react-the-complete-guide/) - 🎥&nbsp;&nbsp;[Angular](https://www.udemy.com/course/the-complete-guide-to-angular-2/) - 🎥&nbsp;&nbsp;[Vue2:Complete guide](https://www.udemy.com/course/vuejs-2-the-complete-guide/) - 🎥&nbsp;&nbsp;[Vue3:Official guide](https://vuejs.org/guide/introduction.html) - 🎥&nbsp;&nbsp;[Sveltejs: Complete Guide](https://www.udemy.com/course/sveltejs-the-complete-guide/) <br> <strong>***HTTP***</strong> - 📗&nbsp;&nbsp;[MDN HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) - 📘&nbsp;&nbsp;[HTTP2 in Action](https://livebook.manning.com/book/http2-in-action/about-this-book/) <br> <strong>***Git***</strong> - 📗&nbsp;&nbsp;[Become a git guru](https://www.atlassian.com/git/tutorials) - 📗&nbsp;&nbsp;[Pro Git](https://git-scm.com/book/en/v2) - 📗&nbsp;&nbsp;[Git Explorer](https://gitexplorer.com/) - 📁&nbsp;&nbsp;[Practical Git Guide](https://github.com/sadanandpai/git-guide) <br> <strong>Web Performance & Optimization</strong> - 📗&nbsp;&nbsp;[MDN Performance](https://developer.mozilla.org/en-US/docs/Learn/Performance) - 📗&nbsp;&nbsp;[Web Dev Performance](https://web.dev/learn/#performance) - 📗&nbsp;&nbsp;[Google Dev - Performance](https://developers.google.com/web/fundamentals/performance/get-started) - 📗&nbsp;&nbsp;[Smashing Magezine - Performance](https://www.smashingmagazine.com/guides/performance/) - 🎥&nbsp;&nbsp;[Web Performance Fundamentals](https://frontendmasters.com/courses/web-perf/) <br> <strong>Web Security</strong> - 🎥&nbsp;&nbsp;[Web Security](https://frontendmasters.com/courses/web-security/) <br> <strong>****Accessibility***</strong> - 🎥&nbsp;&nbsp;[Accessibility in JavaScript Applications](https://frontendmasters.com/courses/javascript-accessibility/) - 🎥&nbsp;&nbsp;[Develop Accessible Web Apps with React](https://egghead.io/courses/develop-accessible-web-apps-with-react) <br> <strong>JS Design Patterns</strong> - 📗&nbsp;&nbsp;[Modern Web App Design Patterns](https://www.patterns.dev/) - 📗&nbsp;&nbsp;[JS Design Patterns](https://addyosmani.com/resources/essentialjsdesignpatterns/book/) - 📁&nbsp;&nbsp;[Design Patterns for Humans](https://github.com/kamranahmedse/design-patterns-for-humans) <br> <strong>JS Best practices</strong> - 📘&nbsp;&nbsp;[Refactoring JavaScript](https://refactoringjs.com/files/refactoring-javascript.pdf) - 🎥&nbsp;&nbsp;[Writing Clean Code](https://www.udemy.com/course/writing-clean-code/) - 📘&nbsp;&nbsp;[The art of unit testing](https://www.manning.com/books/the-art-of-unit-testing-third-edition) <br> <strong>Functional JavaScript</strong> - 📗&nbsp;&nbsp;[Mostly adequate Guide](https://mostly-adequate.gitbook.io/mostly-adequate-guide/) - 📗&nbsp;&nbsp;[Functional Light JavaScript](https://aguru.gitbooks.io/functional-light-javascript/content/) - 🎥&nbsp;&nbsp;[Functional JavaScript](https://frontendmasters.com/courses/functional-javascript-v3/) <br> <strong>Frontend youtube channels</strong> - 🎥&nbsp;&nbsp;[Traversy Media](https://www.youtube.com/c/TraversyMedia) - 🎥&nbsp;&nbsp;[Clever Programmer](https://www.youtube.com/c/CleverProgrammer) - 🎥&nbsp;&nbsp;[Net Ninja](https://www.youtube.com/c/TheNetNinja) - 🎥&nbsp;&nbsp;[Web Dev Simplified](https://www.youtube.com/c/WebDevSimplified) - 🎥&nbsp;&nbsp;[Academind](https://www.youtube.com/c/Academind) - 🎥&nbsp;&nbsp;[Dev Ed](https://www.youtube.com/c/DevEd) - 🎥&nbsp;&nbsp;[Kevin Powell](https://www.youtube.com/kepowob) - 🎥&nbsp;&nbsp;[Codevolution](https://www.youtube.com/c/Codevolution) - 🎥&nbsp;&nbsp;[JavaScript Mastery](https://www.youtube.com/@javascriptmastery) <br> <strong>Interview Prep Resources</strong> - 📁&nbsp;&nbsp;[Front End Interview Handbook](https://github.com/yangshun/front-end-interview-handbook) - 📁&nbsp;&nbsp;[JavaScript Interview Questions](https://github.com/sudheerj/javascript-interview-questions) - 📁&nbsp;&nbsp;[JavaScript Code Challenges](https://github.com/sadanandpai/javascript-code-challenges) - 📁&nbsp;&nbsp;[React Interview Questions](https://github.com/sudheerj/reactjs-interview-questions) - 📁&nbsp;&nbsp;[Tech Interview Handbook](https://github.com/yangshun/tech-interview-handbook) - 📁&nbsp;&nbsp;[JavaScript Questions MCQ](https://github.com/lydiahallie/javascript-questions) - 📁&nbsp;&nbsp;[FreeCodeCamp Interview Prep](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/curriculum/challenges/english/10-coding-interview-prep) - 📗&nbsp;&nbsp;[Interview Ant](https://www.interviewant.com/) - 📁&nbsp;&nbsp;[Frontend Mini Challenges](https://github.com/sadanandpai/frontend-mini-challenges) - 📁&nbsp;&nbsp;[The DOM Challenge](https://github.com/devkodeio/the-dom-challenge) <br> <strong>Interview Prep channels</strong> - 🎥&nbsp;&nbsp;[Namaste JavaScript](https://www.youtube.com/watch?v=pN6jk0uUrD8&list=PLlasXeu85E9cQ32gLCvAvr9vNaUccPVNP) - 🎥&nbsp;&nbsp;[Chirag Goel](https://www.youtube.com/c/engineerchirag) - 🎥&nbsp;&nbsp;[Devtools Tech Frontend Interview Series](https://www.youtube.com/watch?v=qMkUziVZvzs&list=PL4ruoTJ8LTT96O258zzjRwdiNxzDoas-G&index=2) - 🎥&nbsp;&nbsp;[RoadsideCoder](https://www.youtube.com/@RoadsideCoder) - 🎥&nbsp;&nbsp;[Front-End Engineer](https://www.youtube.com/c/FrontEndEngineer) - 🎥&nbsp;&nbsp;[JS Cafe](https://www.youtube.com/@js_cafe) - 🎥&nbsp;&nbsp;[Uncommon Geeks](https://www.youtube.com/watch?v=qcixpy3HQ9s&list=PLmcRO0ZwQv4QMslGJQg7N8AzaHkC5pJ4t) <br> <strong>Coding challenges</strong> - 🚉&nbsp;&nbsp;[Big Frontend Dev](https://bigfrontend.dev/) - 🚉&nbsp;&nbsp;[Great Frontend Dev](https://www.greatfrontend.com?fpr=sadanand83) - 🚉&nbsp;&nbsp;[Frontend Mentor](https://www.frontendmentor.io/) - 🚉&nbsp;&nbsp;[JS Challenger](https://www.jschallenger.com/) - 🚉&nbsp;&nbsp;[Devtools Tech](https://www.devtools.tech/?ref=frontend-learning-kit) - 🚉&nbsp;&nbsp;[Learners Bucket](https://practice.learnersbucket.com/) - 🚉&nbsp;&nbsp;[Exercism](https://exercism.org/tracks/javascript) - 🚉&nbsp;&nbsp;[FrontendPro](https://www.frontendpro.dev/) --- <strong>DSA resources</strong> - 📘&nbsp;&nbsp;[Grokking Algorithms](https://www.manning.com/books/grokking-algorithms) - 📘&nbsp;&nbsp;[The Algorithm Design Manual](https://www.amazon.com/gp/product/3030542556/) - 📘&nbsp;&nbsp;[Cracking Coding Interview](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850) - 📁&nbsp;&nbsp;[Javascript Algo](https://github.com/trekhleb/javascript-algorithms) - 🎥&nbsp;&nbsp;[DataStructues Algorithms](https://frontendmasters.com/courses/data-structures-algorithms/) - 🎥&nbsp;&nbsp;[Practical Algorithms](https://frontendmasters.com/courses/practical-algorithms/) - 🎥&nbsp;&nbsp;[JavaScript Algorithms fundamentals](https://pro.academind.com/p/javascript-algorithms-the-fundamentals) <br> <strong>DSA youtube</strong> - 🎥&nbsp;&nbsp;[Adbul Bari](https://www.youtube.com/watch?v=0IAPZzGSbME&list=PLDN4rrl48XKpZkf03iYFl-O29szjTrs_O) - 🎥&nbsp;&nbsp;[Jenny's Lectures](https://www.youtube.com/watch?v=AT14lCXuMKI&list=PLdo5W4Nhv31bbKJzrsKfMpo_grxuLl8LU) - 🎥&nbsp;&nbsp;[Gaurav Sen](https://www.youtube.com/channel/UCRPMAqdtSgd0Ipeef7iFsKw) - 🎥&nbsp;&nbsp;[Tushar Roy - Coding Made Simple](https://www.youtube.com/channel/UCZLJf_R2sWyUtXSKiKlyvAw) - 🎥&nbsp;&nbsp;[Rachit Jain](https://www.youtube.com/channel/UC9fDC_eBh9e_bogw87DbGKQ) <br> <strong>Coding platforms</strong> - 🚉&nbsp;&nbsp;[Leetcode](https://leetcode.com/) - 🚉&nbsp;&nbsp;[Hackerrank](https://www.hackerrank.com/) - 🚉&nbsp;&nbsp;[Interviewbit](https://www.interviewbit.com/practice/) <br> <strong>Additional Resources</strong> - 🎙&nbsp;&nbsp;[JS Party podcast](https://jsparty.fm/) - 📗&nbsp;&nbsp;[JavaScript 30](https://javascript30.com/) - 📗&nbsp;&nbsp;[FreeCodeCamp React Challange](https://www.freecodecamp.org/learn/front-end-development-libraries/react/) - 📗&nbsp;&nbsp;[React Coding Challange](https://github.com/alexgurr/react-coding-challenges/) - 📗&nbsp;&nbsp;[React by Example](https://reactbyexample.github.io/) - 📗&nbsp;&nbsp;[React Cheatsheet](https://devhints.io/react) - 📗&nbsp;&nbsp;[React Patterns](https://reactpatterns.com/) - 📗&nbsp;&nbsp;[Tao Of React](https://alexkondov.com/tao-of-react/) - 🎥&nbsp;&nbsp;[JavaScript Mastery](https://www.youtube.com/c/JavaScriptMastery) - 📗&nbsp;&nbsp;[MDN - Front-end Web Dev pathway](https://developer.mozilla.org/en-US/docs/Learn/Front-end_web_developer) - 📗&nbsp;&nbsp;[The React Handbook](https://reacthandbook.com/) <br> --- ### License This repository is MIT licensed. [Read more](./LICENSE)
Your Comprehensive Guide and Handpicked Collection of Cutting-edge Frontend Resources
angular,css,frontend,frontend-interview,guidebook,html,interview-preparation,interview-preparation-kit,javascript,reactjs
2023-06-10T15:11:40Z
2023-07-15T12:24:16Z
null
2
1
23
0
6
16
null
MIT
null
ClaudiaRojasSoto/Leaderboard
dev
null
In this repository, I showcase my skills in creating a user interface using wireframes and connecting with the Leaderboard API. It displays player scores and enables the submission of personal scores.
ecmascript6,javascript,jest-tests,webpack,wireframes
2023-06-19T21:42:50Z
2024-01-14T02:42:51Z
null
1
7
106
1
0
16
null
NOASSERTION
JavaScript
noman-land/transcript.fish
master
# transcript.fish Unofficial No Such Thing As A Fish episode transcripts. ## Running webapp locally 1. Run `npm install` 2. Run `npm run dev` ## Download episodes from the RSS feed, transcribe them, and add them to the database **TODO:** Add instructions for creating database 1. Install deps - Run `pip install -r requirements.txt` 2. Download most recent episodes and transcribe them - Change line 11 of whisper.py to `local_files_only=False` - (Optional): Change line 5 of whisper.py `model_size = 'large-v2'` to your preferred model, see note below for details, [see available models.](https://huggingface.co/guillaumekln) - Run `npm run convert` (this is idempotent and will go through _all episodes_) **NOTE**: By default this uses the `medium.en` Whisper model. On an M1 Mac with 64GB of RAM this transcribes at about `1.4x` speed. This means an hour long episode gets transcribed in about 42 minutes. So, as of 25 July 2023: ```sql select sum(duration) from episodes -- 1292175 ``` ```text 1,292,175.0 seconds ÷ 60.0 seconds ÷ 60.0 minutes ÷ 24.0 hours ----------------------- = 15.0 days ÷ 1.4 speed ----------------------- = 10.7 days ``` The good news is changing to the `small.en` or the `tiny.en` increases this speed dramatically but the accuracy goes down slightly. `small.en` transcribes at about `3x` speed, for example. The other good news is you can kill the script (`Ctrl + C`) and restart it at any time and it will pick back up after the last fully transcribed episode. **NOTE:** This script also [downloads](/src/python/convert.py#L8-L9) all the audio files for the episodes as well as each episode's album art. As of 25 July 2023 this amounts to 487 episodes, ~20GB audio, ~130MB images. 3. Split database into chunks - Run `npm run split:db` 4. (Optional) Sync database, audio, images, and fonts to (Cloudflare) R2. Needs [`rclone`](https://rclone.org/) and [`jq`](https://jqlang.github.io/jq/) installed. - Run `npm run sync`
Unofficial No Such Thing As A Fish episode transcripts.
ai,facts,javascript,python,whisper-cpp,nosuchthingasafish,nstaaf,typescript,react,sqlite
2023-06-24T06:43:57Z
2024-05-06T02:33:46Z
null
2
268
245
12
2
16
null
null
TypeScript
pkrasicki/lemmy-modern-ui-theme-addon
master
# Lemmy Modern UI Theme This Firefox extension replaces the CSS styles on Lemmy instances to create a modern looking theme. Works with Lemmy 0.19, 0.18 and 0.17. Get the addon: https://addons.mozilla.org/firefox/addon/lemmy-modern-ui-theme ![main page](screenshots/main-page.png) ## Using The Theme On Your Lemmy Instance To use the theme on your instance, [download the CSS files from the Releases page](https://github.com/pkrasicki/lemmy-modern-ui-theme-addon/releases). Then put the chosen files into the `extra_themes` folder or [follow the documentation](https://join-lemmy.org/docs/administration/theming.html). ## Building ### Prerequisites - [Node.js 18.x](https://nodejs.org) ### Building The Addon Install dependencies: ``` npm install ``` Build the addon: ``` npm run build ``` ### Building The Theme Only You can build the CSS styles to use them on your Lemmy instance (you can also [get them from Releases page](https://github.com/pkrasicki/lemmy-modern-ui-theme-addon/releases)): ``` npm run build-theme ``` The following files will appear in the `dist` folder: `modern-light.css` - light theme only `modern-dark.css` - dark theme only `modern-auto.css` - contains both themes and switches between them automatically depending on user's current system settings (the default Lemmy theme works the same way) ## Screenshots ![post 1](screenshots/post1.png) ![post 2](screenshots/post2.png) ![dark theme](screenshots/dark-theme.png)
Firefox extension which replaces the CSS styles on Lemmy instances to create a modern looking theme.
browser-extension,firefox,firefox-addon,javascript,lemmy,userscript
2023-06-14T00:28:58Z
2024-02-06T01:09:15Z
2024-02-05T23:44:27Z
2
2
31
1
2
16
null
GPL-3.0
SCSS
seo-asif/Enterprise-level-pokemon-app
main
# Pokedex App ![Pokedex](pokedex.png) A fully functional Pokedex app built with React, Redux Toolkit, TypeScript, Firebase, and SCSS. This project covers various aspects of web development, including React Hooks, React Router, CSS3 & SCSS, TypeScript, Redux and Redux Toolkit, Firebase Firestore, Axios for API integration, and best practices for components and file structure. ## Features - Browse and search for Pokemon by name or number. - View detailed information about each Pokemon, including its type, abilities, stats, and evolution chain. - Mark Pokemon as favorites and access them easily. - Filter Pokemon by their type. - Sort Pokemon by name, number, or base experience. - Pagination for efficient loading and browsing of large datasets. ## Technologies Used - React: A JavaScript library for building user interfaces. - Redux Toolkit: A package that simplifies the usage of Redux by providing pre-configured tools and abstractions. - TypeScript: A statically typed superset of JavaScript that enhances code quality and developer productivity. - Firebase: A comprehensive platform for developing web and mobile applications, including authentication, real-time database, and hosting. - SCSS: A powerful extension of CSS that allows for more flexibility and modularity in styling. - React Hooks: A feature introduced in React 16.8 that enables stateful logic in functional components. - React Router: A library for routing and navigation in React applications. - Axios: A promise-based HTTP client for making API requests. - Firestore: A flexible, scalable database from Firebase that enables efficient data storage and retrieval. ## Installation 1. Clone the repository: ```bash git clone https://github.com/seo-asif/Enterprise-level-pokemon-app.git ``` 2. Navigate to the project directory: ```bash cd pokedex-app ``` 3. Install the dependencies: ```bash npm install ``` 4. Create a Firebase project and set up Firestore. Obtain your Firebase configuration details. 5. Create a `.env` file in the project root directory and add the following: ```bash REACT_APP_FIREBASE_API_KEY=YOUR_FIREBASE_API_KEY REACT_APP_FIREBASE_AUTH_DOMAIN=YOUR_FIREBASE_AUTH_DOMAIN REACT_APP_FIREBASE_PROJECT_ID=YOUR_FIREBASE_PROJECT_ID REACT_APP_FIREBASE_STORAGE_BUCKET=YOUR_FIREBASE_STORAGE_BUCKET REACT_APP_FIREBASE_MESSAGING_SENDER_ID=YOUR_FIREBASE_MESSAGING_SENDER_ID REACT_APP_FIREBASE_APP_ID=YOUR_FIREBASE_APP_ID REACT_APP_FIREBASE_MEASUREMENT_ID=YOUR_FIREBASE_MEASUREMENT_ID ``` Replace the `YOUR_` placeholders with your actual Firebase configuration values. 6. Start the development server: ```bash npm start ``` The app will be accessible at `http://localhost:3000`. ## Deployment To deploy the application to a website, follow these steps: 1. Build the app: ```bash npm run build ``` This command creates a `build` directory with optimized production-ready files. 2. Choose a hosting service for your application. Firebase Hosting is a popular option. 3. Configure hosting for your Firebase project and deploy the app. For Firebase Hosting, follow these steps: - Install the Firebase CLI: ```bash npm install -g firebase-tools ``` - Authenticate with Firebase: ```bash firebase login ``` - Initialize your project: ```bash firebase init ``` - Choose the hosting option and configure it according to your preferences. - Deploy the app: ```bash firebase deploy ``` The app will be deployed to your chosen hosting service, and you'll receive a URL to access it. This file structure represents a suggested organization for the project. However, feel free to modify it based on your preferences and project needs. ## Contributing Contributions are welcome! If you have any ideas, suggestions, or bug fixes, please open an issue or submit a pull request. ## License This project is licensed under the [MIT License](LICENSE). --- Happy coding! If you have any questions, feel free to reach out.
Create a fully functional Pokedex app which gives information about Pokemon. The Pokedex is created using React, Redux Toolkit, Typescript, Firebase and SCSS.
api-gateway,javascript,reactjs,redux-toolkit,typescript,firebase,firebase-database,redux
2023-06-20T06:42:06Z
2023-07-05T07:22:01Z
null
1
0
24
1
4
15
null
null
TypeScript
fazt/farm-stack-crud
master
## FARM Stack CRUD A simple CRUD application using FastAPI, React, and MongoDB. <!-- screenshot --> ![screenshot](./docs/screenshot.png)
FARM Stack CRUD is a Fullstack Web Application using Python and Javascript web tecnologies
fastapi,javascript,python,reactjs
2023-06-22T00:38:54Z
2023-06-22T05:34:57Z
null
1
0
14
0
3
15
null
null
JavaScript
srajankumar/pullquest
main
![Pull Quest](https://github.com/srajankumar/pullquest/blob/main/assets/banner.png) Welcome, fellow developer, to an epic journey into the world of open source contributions! In this exhilarating quest, you will embark on your first pull request and leave your mark upon the codebase. Are you ready to unleash your coding prowess? Let's get started! ## Fork the Repository 1. Head out to <a href="https://github.com/srajankumar/pullquest">srajankumar/pullquest</a> 2. Look for the "Fork" button, which you'll find in the top-right corner of the repository's page. 3. Click the "Fork" button. This will create a copy of the repository under your GitHub account. ## Set Up Locally 1. Go to your forked repository on GitHub. 2. Click the green "Code" button, and then copy the URL that appears. 3. Open your Git Bash terminal or command line. 4. Use the `git clone` command to download the repository to your local machine. ```bash git clone https://github.com/YOUR_USERNAME/pullquest.git ``` Replace `YOUR_USERNAME` with your actual GitHub username in the URL. 4. In your terminal or command prompt, use the `cd` command to navigate to the newly created repository folder. ```bash cd pullquest ``` ## Create a New Branch 1. Open your terminal or command prompt. 2. Use the `git branch` command to create a new branch, giving it a meaningful name. ```bash git branch username-profile ``` Replace `username` with your GitHub username. 2. Switch to this newly created branch and begin working on it, use the `git checkout` command. ```bash git checkout username-profile ``` Now, you are in the newly created branch and ready to add your unique profile details to the repository. ## Add Your Profile 1. Navigate to the `src/components` directory within your local repository. 2. Locate and open the `data.json` file. This file contains the profiles of others who have contributed to the project. 3. Follow the template below and add your own profile details to the `data.json` file. ```json { "username": "your_github_username", "name": "Your Full Name", "email": "your_email@example.com", "quote": "Your Inspirational Quote or Message" } ``` Replace the placeholder values (`your_github_username`, `Your Full Name`, `your_email@example.com`, and `Your Inspirational Quote or Message`) with your actual information. 4. Save the `data.json` file. ## Commit Your Changes 1. Stage all your changes by using the following command: ```bash git add . ``` This prepares all your modified files for the upcoming commit. 2. Commit your work with a descriptive message that summarizes your changes: ```bash git commit -m "Embark on an epic adventure: add my profile details" ``` ## Push Your Changes Now, it's time to push your committed changes to your forked repository on GitHub: ```bash git push origin username-profile ``` Replace `your-username-profile` with the name of the branch where you added your profile details (e.g., `your-github-username-profile`). ## Create a Pull Request 1. Open your web browser and go to your forked repository on GitHub. 2. Ensure you have selected the branch where you made your changes (e.g., `your-username-profile`) from the branch dropdown. 3. Navigate to the main repository, in this case, `srajankumar/pullquest.` 4. Click on the **"Pull Requests"** tab at the top of the repository. 5. Click the **"New Pull Request"** button. 6. GitHub will automatically detect the changes you made in your branch compared to the main repository's branch. Ensure that the base branch is set to 'srajan/pullquest' or whichever base branch is appropriate. 7. Give your Pull Request a meaningful title and description, explaining the purpose of your changes. 8. Finally, click the **"Create Pull Request"** button to submit your Pull Request. ## Congratulations! Congratulations you have successfully contributed to this repository! ## Contributors <a href="https://github.com/srajankumar/pullquest/graphs/contributors"> <img src="https://contrib.rocks/image?repo=srajankumar/pullquest" /> </a> ### More contributions are always welcome! ;)
Enjoy your first pull-re(quest)
javascript,nextjs,tailwindcss
2023-06-11T04:36:30Z
2024-04-04T13:52:36Z
null
87
106
295
0
67
15
null
null
JavaScript
corbado/example-passkeys-nextjs
main
<img width="1070" alt="GitHub Repo Cover" src="https://github.com/corbado/corbado-php/assets/18458907/aa4f9df6-980b-4b24-bb2f-d71c0f480971"> # Next.js (TypeScript) Passkey Example App This is a sample implementation of the Corbado React package and Corbado Node SDK being integrated into a web application built with Next.js. Please see the [full blog post](https://www.corbado.com/blog/nextjs-passkeys) to understand the detailed steps needed to integrate passkeys into Next.js apps. ## File structure - `app/auth/page.tsx`: the file where the React Auth component is used - `app/profile/page.tsx`: displays user information if the user has successfully authenticated (rendered on the server) - `app/user-data/route.ts`: api route that checks the users authentication state using the Corbado Node SDK - `app/page.tsx`: client rendered page that accesses data from the above mentioned route - `.env.local`: add relevant environment variables that you can obtain from [Corbado developer panel](https://app.corbado.com/signin#register) ## Setup ### Prerequisites Please follow the steps in [Getting started](https://docs.corbado.com/overview/getting-started) to create and configure a project in the [Corbado developer panel](https://app.corbado.com/signin#register). You need to have [Node](https://nodejs.org/en/download) and `npm` installed to run it. ### Configure environment variables Use the values you obtained in [Prerequisites](#prerequisites) to configure the following variables inside an `.env.local` file you create in the root folder of this project: ```sh NEXT_PUBLIC_PROJECT_ID=<YOUR PROJECT ID> API_SECRET=<YOUR API SECRET> ``` ## Usage ### Run the project locally Run ```bash npm i ``` to install all dependencies. Finally, you can run the project locally with ```bash npm run dev ``` ### Run the project in a docker container You can also run the project in a docker container using the provided `docker-compose.yml` file. ```bash docker-compose up --build ```
Next.js (TypeScript) repository of a sample app that offers passkey authentication.
faceid,fido2,javascript,nextjs,passkey,passkeys,react,touchid,typescript,webauthn
2023-06-13T12:34:00Z
2024-05-15T08:31:11Z
null
18
3
46
0
5
15
null
MIT
TypeScript
ITurres/TVmaze-shows-website
dev
<a name="readme-top"></a> <div align="center"> <img src="./src/assets/media/tvm-header-logo-red.png" alt="tv-maze-logo" heigth="auto" width="210"> <h1><b>Movies Website</b></h1> </div> --- <!-- TABLE OF CONTENTS --> # 📗 Table of Contents - [📖 About the Project](#about-project) - [🛠 Built With](#built-with) - [Tech Stack](#tech-stack) - [Key Features](#key-features) - [🚀 Live Demo](#live-demo) - [💻 Getting Started](#getting-started) - [Setup](#setup) - [Prerequisites](#prerequisites) - [Install](#install) - [Usage](#usage) - [Run tests](#run-tests) - [Deployment](#triangular_flag_on_post-deployment) - [👥 Authors](#authors) - [🔭 Future Features](#future-features) - [🤝 Contributing](#contributing) - [⭐️ Show your support](#support) - [🙏 Acknowledgements](#acknowledgements) - [📝 License](#license) --- <!-- PROJECT DESCRIPTION --> # 🎥 TV Maze website <a name="about-project"></a> **"TV Maze"** capstone project is about building a SPA web application based on an external API. We had selected an API that provides data about a topic that we liked and then we built the webapp around it. The webapp have 2 user interfaces. ### Learning objectives: - Use JavaScript to make websites dynamic and build basic single page apps. - Use ES6 syntax. - Use ES6 modules. - Use callbacks and promises. - Use webpack. - Apply JavaScript best practices and language style guides in code. - Use AAA pattern for unit tests. - Write units tests for a JavaScript app. - Follow [Gitflow](https://github.com/microverseinc/curriculum-transversal-skills/blob/main/git-github/articles/gitflow.md). - Solve simple git conflicts. - Send and receive data from an API. - Use API documentation. - Understand and use JSON. - Make JavaScript code asynchronous. - Perform a code review for a team member. --- ## 🛠 Built With <a name="built-with"></a> ### Tech Stack <a name="tech-stack"></a> <details> <summary>Client</summary> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a></li> </ul> <ul> <li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS3</a></li> </ul> <ul> <li><a href="https://getbootstrap.com/">Bootstrap</a></li> </ul> <ul> <li><a href="https://developer.mozilla.org/es/docs/Web/JavaScript">JavaScript</a></li> </ul> </details> <details> <summary>API's</summary> <ul> <li><a href="https://www.tvmaze.com/api">TV Maze API</a></li> </ul> <ul> <li><a href="https://microverse.notion.site/Involvement-API-869e60b5ad104603aa6db59e08150270">Involvement API</a></li> </ul> </details> --- <!-- Features --> ### Key Features <a name="key-features"></a> <ul> <li>HTML & CSS3</li> <li>JavaScript</li> <li>Linters <ul> <li>Lihgthouse</li> <li>StyleLint</li> <li>ESLint</li> </ul> </li> <li>Webpack 5</li> <li>Follow Microverse's list of best practices for JavaScript projects.</li> </ul> <p align="right">(<a href="#readme-top">back to top</a>)</p> --- ## 🚀 Live Demo <a name="live-demo"></a> - 🎤 [Project presentation: video demo](https://drive.google.com/file/d/1-eSDabquIJCbvbQblqBPvSwbDIvaRfIb/view?usp=sharing) - [Live Demo Link](https://iturres.github.io/TVmaze-movies-website/dist/) <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- GETTING STARTED --> ## 💻 Getting Started <a name="getting-started"></a> To get a local copy up and running, follow these steps. ### Prerequisites In order to run this project you need: <ul> <li><p>A modern browser (supports html5)</p></li> </ul> <ul> <li><p>Git and a GitHub account</p></li> </ul> ### Setup Clone this repository to your desired folder by using this 👇️ command : ``` git clone https://github.com/ITurres/TVmaze-movies-website.git ``` ### Install Install this project with: ``` npm install ``` ### Usage ``` npm run start ``` ### Run tests ``` npm test ``` ### Deployment - Not aplicable. <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- AUTHORS --> ## 👥 Authors <a name="authors"></a> 👤 **Arthur Iturres** - GitHub: [@ITurres](https://github.com/ITurres) - Twitter: [@Arthur_ITurres](https://twitter.com/ArthurIturres) - LinkedIn: [Arthur Emanuel G. Iturres](https://www.linkedin.com/in/arturoemanuelguerraiturres/) 👤 **Ruth Abreu** - GitHub: [@Ruthmy](https://github.com/Ruthmy) - Twitter: [@rury_exe](https://twitter.com/rury_exe) - LinkedIn: [LinkedIn](https://linkedin.com/in/ruth-abreu) <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- FUTURE FEATURES --> ## 🔭 Future Features <a name="future-features"></a> - [ ] Migrate to React TypeScript. <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- CONTRIBUTING --> ## 🤝 Contributing <a name="contributing"></a> Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](../../issues/). <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- SUPPORT --> ## ⭐️ Show your support <a name="support"></a> If you like this project and know someone who might find it helpful, please share it. Or give it a **star** ⭐️ <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- ACKNOWLEDGEMENTS --> ## 🙏 Acknowledgments <a name="acknowledgements"></a> I thank Microverse for this fantastic opportunity, the code reviewers for their advice and time, and my excellent coding partner and team member [@Ruthmy](https://github.com/Ruthmy) 🏆 <p align="right">(<a href="#readme-top">back to top</a>)</p> --- <!-- LICENSE --> ## 📝 License <a name="license"></a> This project is [MIT](./LICENSE) licensed. <p align="right">(<a href="#readme-top">back to top</a>)</p> ---
🎥 TVMaze is a website where you can see top shows related info, like them, and add comments. Team @ITurres, @Ruthmy. Check it out! 👇
api-rest,bootstrap,css,javascript,movies-website,tvmaze-api,involvement-api
2023-06-26T17:56:02Z
2023-12-17T23:59:58Z
null
2
16
155
0
1
15
null
MIT
JavaScript
samadpls/MediSync
main
<img src='https://img.freepik.com/free-psd/3d-illustration-doctor-placing-vaccine-injection_1419-2774.jpg'> # MediSync 🩺 MediSync is a project designed to manage hospitals. It offers a comprehensive platform for managing patient, doctor, and appointment records. The project is built using Django, HTML, CSS, and JavaScript. MediSync includes features such as patient record management, appointment creation, and a visually appealing user interface with a dark mode and customizable button colors.. 🏥📝⏰ ## Installation and Usage To run the MediSync project locally or using Docker, follow these steps: 1. **Clone the project repository** to your local machine using the following command: ```bash git clone https://github.com/samadpls/MediSync.git ``` 2. **Navigate to the project directory**: ```bash cd MediSync ``` 3. **Install the necessary dependencies** listed in the project's requirements file. ```bash pip install -r requirements.txt ``` 4. **Perform database migrations** using the following command: ```bash python manage.py makemigrations python manage.py migrate ``` 5. **Run the Django development server**: ```bash python manage.py runserver ``` --- **OR**, if you want to use Docker: 5. **Run the project using Docker Compose:** (make sure you have Docker installed): ```bash docker-compose up ``` 6. Access the project in your web browser using the provided URL. ## Components The MediSync project is divided into three main components: 1. **MediSync:** The main project directory that contains project-level configurations and settings. 2. **App Website:** The Django app responsible for handling the website functionality, including patient and doctor management, appointment creation, and patient record management. 3. **Database App:** A Django app responsible for connecting to the database and handling data storage and retrieval using SQLite3. ## Features MediSync offers the following features: - Patient Management: Allows editing, updating, saving, and deleting patient information. ✍️👥 - Doctor Management: Allows editing, updating, saving, and deleting doctor information. ✍️👩‍⚕️👨‍⚕️ - Appointment Management: Provides the ability to create, view, and manage appointments through the system. 🗓️👥 - Patient Record Management: Enables viewing the patient's complete record, including appointment history and other relevant information. 📄👥 - REST APIs: Uses JavaScript to control REST APIs for interacting with the backend and retrieving data. 🚀🔌 - Dark Mode: Offers a visually appealing dark mode for the user interface. 🌙🖤 - Customizable Button Colors: Allows customization of button colors to suit personal preferences. 🎨🔘 ## Technologies Used The MediSync project utilizes the following technologies: - Django: A high-level Python web framework used for rapid development and clean design. - HTML: Markup language for creating the structure and content of web pages. - CSS: Stylesheet language used for describing the presentation of a document written in HTML. - JavaScript: A programming language used to add interactivity and dynamic functionality to web pages. - SQLite3: A lightweight, file-based database system used for data storage. ## Contributing Contributions to the MediSync project are welcome! If you find any issues or have suggestions for improvement, please submit a pull request or open an issue on the project repository. ## License The MediSync project is licensed under the [MIT License](LICENSE). Feel free to customize and modify the project according to your needs. This is just a template for your README file, and you can add or modify sections as required. https://github.com/samadpls/MediSync/assets/94792103/5ca6b666-c223-4cfc-8675-1383c069427f
MediSync: Seamlessly manage hospital operations with Django, Docker, HTML, CSS, and JavaScript - a holistic healthcare solution. 🏥💻🔌
crud-application,django,hospital-management-system,html-css,javascript,opensource,restap,website,docker,docker-compose
2023-06-09T15:18:44Z
2024-04-16T00:49:59Z
null
3
4
28
0
3
15
null
MIT
SCSS
mars9541/website-editor
master
# VvvebJs <p align="center"> <img src="https://www.vvveb.com/admin/themes/default/img/biglogo.png" alt="Vvveb"> <br><br> <strong>Drag and drop website builder javascript library.</strong> <br> <span>Built with jQuery and Bootstrap 5.</span> </p> <p align="center"> <a href="https://www.vvveb.com">Website</a> | <a href="https://github.com/marsofjkic/VvvebJs/wiki">Documentation</a> | <a href="https://twitter.com/vvvebcms">Twitter</a> </p> ## [Live Demo](https://www.vvveb.com/vvvebjs/editor.html) For a full featured open source CMS using VvvebJs check [Vvveb CMS](https://www.vvveb.com) Using [Vvveb landing page template](https://github.com/marsofjkic/Vvveb-landing-bootstrap5-template) for demo page and Bootstrap 5 sections and blocks. <img src="https://www.vvveb.com/img/dark-theme.png"> <img src="https://www.vvveb.com/img/light-theme.png"> ### Features * Components and blocks/snippets drag and drop and in page insert. * Undo/Redo operations. * One or two panels interface. * File manager and component hierarchy navigation. * Add new page modal with template and folder options. * Live code editor with codemirror plugin syntax highlighting. * Image upload with example php script included. * Page download or export html or save page on server with example php script included. * Components/Sections/Blocks list search. * Bootstrap 5 components. * Media gallery with integrated CC0 image search and server upload support. * Image, video and iframe elements resize handles. * Elements breadcrumb for easier parent elements selection. * Full Google fonts list support for font selection. * Youtube, Google maps, Charts.js etc widgets. * Optional CKEditor plugin to replace builtin text editor. * Zip download plugin to download the page and all assets as zip file. * SVG Icon component bundled with hundreds of free icons. * Animate on scroll support for page elements. * Theme global typography and color pallette editor. By default the editor comes with Bootstrap 5 and Widgets components and can be extended with any kind of components and inputs. ## Install Clone the repository or download a release then open `editor.html` Because of browser iframe security you need to use a webserver such as xampp and open `http://localhost/editor.html` To use the image upload or page save feature you need to have php installed. #### Scss To compile scss to css first install gulp ```bash npm i ``` Then you can run ```bash npm run gulp ``` or use watch to compile on file change. ```bash npm run gulp watch ``` ## Usage ```js <!-- jquery--> <script src="js/jquery.min.js"></script> <script src="js/jquery.hotkeys.js"></script> <!-- bootstrap--> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <!-- builder code--> <script src="libs/builder/builder.js"></script> <!-- undo manager--> <script src="libs/builder/undo.js"></script> <!-- inputs--> <script src="libs/builder/inputs.js"></script> <!-- components--> <script src="libs/builder/components-bootstrap5.js"></script> <script src="libs/builder/components-widgets.js"></script> <script> let pages = [ { name:"narrow-jumbotron", title:"Jumbotron", url: "demo/narrow-jumbotron/index.html", file: "demo/narrow-jumbotron/index.html" }, {name:"landing-page", title:"Landing page", url: "demo/landing/index.html", file: "demo/landing/index.html"}, ]; $(function() { let firstPage = Object.keys(pages)[0]; Vvveb.Builder.init(pages[firstPage]["url"], function() { //load code after page is loaded here }); Vvveb.Gui.init(); Vvveb.FileManager.init(); Vvveb.SectionList.init(); Vvveb.Breadcrumb.init(); Vvveb.FileManager.addPages(pages); Vvveb.FileManager.loadPage(pages[firstPage]["name"]); Vvveb.Breadcrumb.init(); //if url has #no-right-panel set one panel demo if (window.location.hash.indexOf("no-right-panel") != -1) { Vvveb.Gui.toggleRightColumn(); } }); <script> ``` For editor html and components/input javascript templates edit `editor.html` For css changes edit `scss/editor.scss` and `scss/_builder.scss` ## Documentation For documentation check the [wiki](https://github.com/marsofjkic/VvvebJs/wiki) <a href="https://opencollective.com/vvvebjs/sponsors/0/website"><img src="https://opencollective.com/vvvebjs/sponsors/0/avatar"></a> <a href="https://opencollective.com/vvvebjs/backers/0/website"><img src="https://opencollective.com/vvvebjs/backers/0/avatar"></a> ## License Apache 2.0
Wonderful drag and drop website builder
bootstrap4,bootstrap5,drag-and-drop,html5,javascript,jquery,page-builder,scss,ui,website-builder
2023-06-17T15:46:15Z
2023-06-18T15:14:01Z
null
1
0
119
0
6
15
null
Apache-2.0
JavaScript
isboyjc/Interview
main
# 不正经的前端 | 八股 八股是一份开放的面试题库,我们的愿景是覆盖 90%+ IT 知识点问答,节省面试者和面试官的时间!同时也是一份结构化的知识图谱,源于学习,而不是刷题! 欢迎 Star! 更新中... 请查看 👉🏻 [interview.isboyjc.com](https://interview.isboyjc.com) ## 核心成员 更新中... ## 贡献者 更新中...
八股是一份开放的面试题库,我们的愿景是覆盖 90%+ IT 知识点问答,节省面试者和面试官的时间!同时也是一份结构化的知识图谱,源于学习,而不是刷题!
css,css3,html,html5,interview,javascript,qa,reactjs,vuejs,browser
2023-06-16T10:32:08Z
2024-05-07T19:26:16Z
null
4
170
52
0
4
14
null
MIT
JavaScript
Kavithma-Thushal/MyPortfolio
master
# My-Portfolio 💫 My Portfolio is a meticulously crafted representation of my professional journey, skills, and achievements. It showcases my best work, offering a comprehensive view of my capabilities and growth. It serves as a powerful tool to communicate my expertise, style, and potential value to prospective opportunities. It's not just a static collection but a dynamic narrative that evolves with my ongoing progress and new endeavors, demonstrating my dedication, creativity, and unique perspective in my chosen field. Enter to the world of limitless possibilities and experience the power of code in action. ### Links 🔗 <a href="https://github.com/Thushal2001/MyPortfolio" target="_blank">GitHub Project</a></br> 🔗 <a href="https://thushal2001.github.io/MyPortfolio/" target="_blank">GitHub Page</a></br> 🔗 <a href="https://www.gloomaps.com/icbeqVdv9a" target="_blank">Site Map</a></br> 🔗 <a href="https://wireframe.cc/29u3zM" target="_blank">Wire Frame</a></br> 🔗 <a href="https://www.figma.com/file/mmHVJt25CXdinNz6f48ZB5/My-Mockup?type=design&node-id=0-1&mode=design&t=geCjyFwJrOsqVFJD-0" target="_blank"> Mock Up</a> <img src="assets/img/ss.png" alt="portfolio-image"> ### Technology ✅HTML<br/> ✅CSS<br/> ✅JavaScript<br/> ### Functions ✅Discover the full scope of who I am<br/> ✅Delve into a detailed overview of my skills, certifications, and professional journey<br/> ✅Explore my offerings, including the option to download my CV and consider me for hire<br/> ✅Peruse through a showcase of my assignments and successfully completed Java projects<br/> ✅Connect with me across various social platforms through the provided links<br/> ✅This is responsive, so you can browse it seamlessly on any device, from your smartphone to your desktop<br/> ### Version 1.0.0 ### License ⭐© 2023 All Right Reserved Designed By Kavithma Thushal<br/> This project is licensed under the [MIT](LICENSE) license ## 💻 Connect With Me <p align="left"> <a href="https://www.linkedin.com/in/kavithma-thushal-3b8a92260/" target="_blank"> <img src="https://skillicons.dev/icons?i=linkedin" alt="Linkedin"/> </a> <a href="https://twitter.com/Thushal451" target="_blank"> <img src="https://skillicons.dev/icons?i=twitter" alt="Twitter"/> </a> <a href="https://github.com/Thushal2001" target="_blank"> <img src="https://skillicons.dev/icons?i=github" alt="Github"/> </a> <a href="https://stackoverflow.com/users/21296342/kavithma-thushal?tab=profile" target="blank"> <img src="https://skillicons.dev/icons?i=stackoverflow" alt="StackOverFlow"/> </a> <a href="https://gitlab.com/kavithmathushal9007" target="_blank"> <img src="https://skillicons.dev/icons?i=gitlab" alt="Gitlab"/> </a> <a href="https://www.instagram.com/" target="_blank"> <img src="https://skillicons.dev/icons?i=instagram" alt="Instagram"/> </a> <a href="https://www.hackerrank.com/kavithmathushal?hr_r=1" target="blank"> <img src="https://raw.githubusercontent.com/rahuldkjain/github-profile-readme-generator/master/src/images/icons/Social/hackerrank.svg" style="width: 50px; height: 50px" alt="HackerRank"/> </a> <a href="https://www.sololearn.com/profile/27533547" target="blank"> <img src="https://github.com/Thushal2001/Thushal2001/blob/main/Github/sololearn.webp" style="width: 50px; height: 50px" alt="Sololearn"/> </a> </p> <div align="center"> #### @2023 [Kavithma Thushal](https://github.com/Thushal2001) All Right Reserved </div>
My Portfolio is a dynamic showcase of my best work, skills, and growth, demonstrating my dedication, creativity, and unique perspective
css,html,javascript,portfolio-website
2023-06-14T06:01:00Z
2023-11-03T16:00:31Z
null
1
0
237
0
0
14
null
MIT
CSS