<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Behnam Azimi on Medium]]></title>
        <description><![CDATA[Stories by Behnam Azimi on Medium]]></description>
        <link>https://medium.com/@behnamazimi?source=rss-51c05fc3da55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*l_EYJRo5oTN4mF94.</url>
            <title>Stories by Behnam Azimi on Medium</title>
            <link>https://medium.com/@behnamazimi?source=rss-51c05fc3da55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:37:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@behnamazimi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[There is a Better Way to Discover Trending GitHub Repos ]]></title>
            <link>https://behnamazimi.medium.com/there-is-a-better-way-to-discover-trending-github-repos-258b05dcf974?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/258b05dcf974</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 18:28:57 GMT</pubDate>
            <atom:updated>2025-12-05T18:28:57.115Z</atom:updated>
            <content:encoded><![CDATA[<p>Finding <strong>new</strong> and exciting libraries on GitHub can be noisy. The standard &quot;Trending&quot; tab is great, but it often shows old repositories that just happened to get a random spike in activity today.</p><p>I wanted more control. I wanted to see projects that were created recently (like in the last week) but are already gaining traction.</p><p>So, I built <strong>OhNiceRepo</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AFbD-bupR9MIl0RiQp67SA.jpeg" /></figure><h3>What it does</h3><p>This is a simple web app that connects to the GitHub API to help you discover rising stars. Instead of a generic list, it lets you filter specifically by language creation date and star count.</p><p>For example, you can search for &quot;TypeScript repositories created in the last 7 days with at least 100 stars.&quot; This filters out the ancient libraries and leaves you with the fresh, trending gems that are actually new.</p><h3>Try it out</h3><p>The project is fully open source. If you want to find some new libraries to play with, or if you just want to see how the code handles the GitHub API, check it out.</p><p><strong>Live Demo: </strong><a href="https://ohnicerepo.pages.dev/"><strong>https://ohnicerepo.pages.dev</strong></a></p><p><strong>Source Code: </strong><a href="https://github.com/behnamazimi/ohnicerepo"><strong>https://github.com/behnamazimi/ohnicerepo</strong></a></p><p>Please show your support and drop a star on the GitHub repo! Your star counts a ton, and hey, maybe it&#39;ll help OhNiceRepo itself get featured in someone else&#39;s list of <strong>nice</strong> repos! ⭐</p><p>Happy discovering! 👩‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=258b05dcf974" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing SureYouDo.io: A Platform for Achieving Goals]]></title>
            <link>https://behnamazimi.medium.com/introducing-sureyoudo-io-a-platform-for-achieving-goals-90f10d96791f?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/90f10d96791f</guid>
            <category><![CDATA[newbegingings]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sun, 05 May 2024 08:19:10 GMT</pubDate>
            <atom:updated>2024-05-05T08:19:10.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FQTebT6-nFFCG9Vq" /></figure><p>In the constantly evolving world of blockchain and decentralized applications, new opportunities for innovative technology emerge. Today, I am pleased to introduce <a href="https://www.sureyoudo.io/"><strong>SureYouDo.io</strong></a>, a platform designed to incorporate blockchain technology into the pursuit and attainment of our objectives and goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*GjSO0VEOzdIv01KJCgJ5hg.png" /><figcaption>SureYouDo.io Logo</figcaption></figure><h3>What is SureYouDo.io?</h3><p><a href="https://www.sureyoudo.io/">SureYouDo.io</a> is a decentralized application (DApp) that merges blockchain technology with commitment and accountability to facilitate goal achievement. Users can create personal or group challenges and pledge cryptocurrency. Successfully reaching goals results in the return of the pledged values along with extra rewards in the platform token, SYD. In case of failure (or non-completion), users will lose a portion of their locked pledge, and they can decide to allocate the lost value to community redistribution, charity donations, or distribution among participants in the challenge, or transfer it to another address.</p><h3>Calling All Blockchain Enthusiasts and Developers</h3><p>We are dedicated to building a thriving community around SureYouDo.io. If you are a developer, blockchain strategist, or technology enthusiast with a passion for DApps, we welcome your expertise and insight. Explore our code, propose changes, or assist in identifying bugs to enhance the platform’s functionality. Your understanding of blockchain functionality, security, and efficiency can help us refine our strategy.</p><p>Our <a href="https://github.com/sureyoudo-io/SureYouDo.io-smart-contracts"><strong>GitHub repository</strong></a> is open for contributions and insights. Delve into the code, suggest improvements, or help us enhance the platform’s features and benefit from long-term project growth.</p><h3>Join Our Community</h3><p>We are currently in the <a href="https://www.sureyoudo.io/">testing</a> phase on the Amoy testnet, with plans for a mainnet launch in early August 2024. This presents a unique opportunity for early adopters to shape SureYouDo.io. We welcome you to be part of the early wave of users and <a href="https://www.sureyoudo.io/">open the website and test the functionalities</a>. Your feedback and participation will be instrumental in refining the platform for success in the decentralized world.</p><p><a href="https://discord.gg/UM7P88zWwU">Join us on Discord</a> to stay informed, share ideas and feedback, and connect with like-minded individuals. You can also follow <a href="https://x.com/sureyoudoi">SYD on X</a>.</p><p>We envision a future where blockchain not only revolutionizes transactions but also transforms how we pursue and achieve personal and collective goals. Join us in shaping this future — whether as an early adopter, contributor, or enthusiastic supporter. Every ounce of support makes a difference.</p><p><strong>Important Links:</strong></p><ul><li>Website: <a href="https://www.sureyoudo.io/">https://www.sureyoudo.io/</a></li><li>Github Repository: <a href="https://github.com/sureyoudo-io/SureYouDo.io-smart-contracts">https://github.com/sureyoudo-io/SureYouDo.io-smart-contracts</a></li><li>Discord Community: <a href="https://discord.gg/UM7P88zWwU">https://discord.gg/UM7P88zWwU</a></li><li>SYD on X: <a href="https://x.com/sureyoudoio">https://x.com/sureyoudoio</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90f10d96791f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[--help, -h, help, man; Matter of knowing git helpers in terminal]]></title>
            <link>https://behnamazimi.medium.com/help-h-help-man-matter-of-knowing-git-helpers-in-terminal-34aaaecb3f5b?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/34aaaecb3f5b</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[tldr]]></category>
            <category><![CDATA[help]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sun, 04 Sep 2022 16:28:01 GMT</pubDate>
            <atom:updated>2022-09-04T16:28:01.705Z</atom:updated>
            <content:encoded><![CDATA[<p>Know more about git help commands in the terminal and their differences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMGqamQpceQKik2TSueKVA.png" /></figure><p>Sometimes we all need to remember the structure of a git command or its options. Depending on the situation, we get help from either google or terminal help commands. But we are often exposed to too much content and can get lost in tons of text just to find something simple in both google search results and terminal manpages.</p><p>To make this journey simple, it’s better to know git help commands and their differences;</p><p>Git provides git help &lt;verb&gt; command to get descriptive and detailed help (manpage) about the target verb. for example, git help push will prompt the manual page of the push command;</p><p>There are two other commands like git help to see the manual page. git &lt;verb&gt; --help and man git-&lt;verb&gt;.</p><p>Now you know that the results of these three commands are equal:</p><p>man git-push = git help push = git push --help</p><p>But what if you only need a quick review of command options? You can use git &lt;verb&gt; -h in this case, like git push -h which will print out the related options and a brief description of each.</p><p>As a bonus for this short post, there is also a handy tool named <strong>tldr</strong> which provides a simplified version of manpages and contains examples rather than detailed explanations. You can install it by npm i -g tldr and use it like tldr git-push.</p><p>BTW, <strong>tldr</strong> is not only for git commands but also for all commands available to <strong>man</strong>.</p><p><a href="https://bhnmzm.com/blog/git-helpers-in-terminal">bhnmzm.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34aaaecb3f5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Newborn Open Source Repositories]]></title>
            <link>https://behnamazimi.medium.com/some-newborn-open-source-repositories-2471fdc6428a?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/2471fdc6428a</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sat, 16 Jul 2022 20:17:14 GMT</pubDate>
            <atom:updated>2022-07-17T08:25:48.070Z</atom:updated>
            <content:encoded><![CDATA[<h3>7 Newborn Open Source Repositories</h3><p>We all knew that what we have now as popular open-source repositories or well-known tools that we use every day started with an idea and developed for personal usage and then published as a result of high satisfaction of owner/developer.<br> <br>In this post, I’m gonna share 7 open-source repositories/tools of mine that I have developed to serve some personal intentions first but published later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8-_LmEE-Dn3VG0NilVWyzg.jpeg" /><figcaption>Newborn Open Source Projects</figcaption></figure><p>Definitely, without your likes and shares, and contributions, these repositories will not be seen and will perhaps disappear over time. so please react to this post and share your comments with me.</p><h3><a href="https://github.com/behnamazimi/practical-front-end-projects">1. Practical Front-End Projects with Pure Javascript, CSS, and HTML</a></h3><p>The repository contains some front-end projects developed by pure Javascript, HTML, and CSS without any third-party libraries and packages.</p><p>Some of the projects you can find in the repo:<br>- Web Chat App (WhatsApp clone)<br>- Custom Video Player<br>- Note Manager App <br>- Othello Board Game<br>- Quiz App<br>- Escape Loading Animation (Complicated CSS animation)</p><h3><a href="https://github.com/behnamazimi/merriam-webster-dictionary-extension">2. Merriam-Webster’s Dictionary Browser Extension</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*heP8nPhDZHFK7Ee-I1TSCQ.jpeg" /><figcaption>Merriam-Webster’s Dictionary Browser Extension</figcaption></figure><p>With this extension, you would be able to look up and get the English-to-English definition of any word or phrase in the content of a website, simply and effortlessly. Or you can use its simple search box to type and get the definition right away, without losing your focus on the content!</p><p>I used Merriam-Webster’s free services in this extension.</p><p>You can install it on all Chromium-based browsers, like Opera, Edge, Brave, Torch, Vivaldi, etc. (<a href="https://github.com/behnamazimi/merriam-webster-dictionary-extension#how-to-install-it-manually-on-chromium-base-browsers-like-opera-edge-brave-torch-vivaldi">How to?</a>)</p><h3><a href="https://github.com/behnamazimi/youtube-subtitle-delay">3. YouTube Subtitle Delay Browser Extension</a></h3><p>Mini tool to delay subtitles on the YouTube official website which is handy when you are learning a new language.</p><p>You can also install it on all Chromium-based browsers, like Opera, Edge, Brave, Torch, Vivaldi, etc.</p><p>Additionally, there is another extension with the same functionality <a href="https://github.com/behnamazimi/netflix-subtitle-delay"><strong>to delay Netflix subtitles</strong></a><strong>.</strong></p><h3><a href="https://github.com/behnamazimi/tw-followingtrackbot">4. Twitter Following Track Bot</a></h3><p>This one is a Twitter bot developed with NodeJs. Using this bot you can track if any Twitter account started following others. It’s easy to use and you only need a Twitter developer account to start monitoring.</p><h3><a href="https://github.com/behnamazimi/keyboard-shortcuts-for-websites">5. Keyboard Shortcuts for Websites Browser Extension</a></h3><p>This one is also a browser extension, using this extension you can have custom keyboard shortcuts for certain actions of websites you use frequently. It’s one of my favorite repositories because I use it every day :)</p><p>You can also install it on all Chromium-based browsers, like Opera, Edge, Brave, Torch, Vivaldi and etc.</p><h3><a href="https://github.com/behnamazimi/curly-html-elements">6. Curly HTML Elements</a></h3><p>This one is a mini tool to arranging HTML elements along ellipse subset shapes. Using curly-html-elements you can layout child items of an element along a circle, semicircle, ellipse or any subset shape of it without encountering math formulas and complex concepts.</p><figure><img alt="Curly HTML Elements" src="https://cdn-images-1.medium.com/max/654/1*YnU7xsyhoGV_HXO1gtAL5g.jpeg" /><figcaption><a href="https://github.com/behnamazimi/curly-html-elements">Curly HTML Elements</a> Samples</figcaption></figure><h3><a href="https://github.com/behnamazimi/js-service-wrapper">7. JS Service Wrapper</a></h3><p>This one is a promise-based collective service wrapper with queue support which totally works in browser and/or Node.js environment.</p><p>Sometimes you need to pass your service functions throughout a shared pipe and do some manipulation or parsing with them. Or you might want to add all of your services to a queue that supports parallel and pending tasks. It’s the case this library comes in.</p><p>I also have a fun game, <a href="https://behnamazimi.github.io/boom-box/"><strong>The Boom Box</strong></a>. You can reach that out and spend some fun time while blasting some boxes. Its code also <a href="https://github.com/behnamazimi/boom-box">available on Github</a></p><p>I’d appreciate any kind of contribution to these projects and it would be my honor.</p><p><a href="https://bhnmzm.com/blog/some-newborn-opensource-repositories">Source bhnmzm.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2471fdc6428a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set custom keyboard shortcuts for an operation on websites in Chrome]]></title>
            <link>https://behnamazimi.medium.com/how-to-set-custom-keyboard-shortcuts-for-an-operation-on-websites-in-chrome-140131fac34e?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/140131fac34e</guid>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[shortcut-keys]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[tricks]]></category>
            <category><![CDATA[extension]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sun, 29 Nov 2020 07:53:07 GMT</pubDate>
            <atom:updated>2020-12-06T13:08:14.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eW2dlTZaHi3pX84ltaVIeQ.jpeg" /><figcaption>How to set custom keyboard shortcuts for an operation on websites in Chrome</figcaption></figure><p>You know that shortcut keys in a website limited to the shortcuts defined by the developer or owner. And this could be terrible and tormenting when you are doing routine and repetitive works on a website with a mouse.</p><p>There are three solutions to this. You can write a script and execute it to do your action if you are a programmer. Or you can ask the development team to add the shortcut you need, which is silly and almost impossible :D.</p><p>The third solution is to use the <a href="https://chrome.google.com/webstore/detail/in-site-shortkeys/dgigbgdgmhhncfgaidcbmafkcmagkool?hl=en&amp;authuser=0"><strong>In-site Shortkeys</strong> extension in Google Chrome</a>. You can easily define shortcut keys for specific operations on a website with this extension. It’s easy to use, you just need to press the add shortkeys button. The extension will catch your clicks, then you can define custom keys as a shortcut to call your operations on that website.</p><p>Adding multi-step operations is an outstanding feature of the <a href="https://chrome.google.com/webstore/detail/in-site-shortkeys/dgigbgdgmhhncfgaidcbmafkcmagkool?hl=en&amp;authuser=0"><strong>In-site Shortkeys</strong></a>. This means that you can set shortcuts for consecutive clicks and when the keys fired, it will execute the operation step by step with a pre-defined delay between each step.</p><p>It’s possible to add shortcuts to execute custom Javascript codes on a website also, you can share these script shortcuts with other websites.</p><p>The shortkeys are unique to each domain it means that keyboard shortcuts defined for a site are callable only on that site.</p><p>In determining shortcuts, any combination of keys is valid except chrome-reserved shortcuts like ctrl + n, ctrl + w, ctrl + shift + n, etc.</p><p>The point to note is that the extension only works on websites. It means you need to focus on the website itself, not another window.</p><p>The <a href="https://github.com/behnamazimi/in-site-shorteys">In-site Shortkeys is an open-source project</a> (<a href="https://github.com/behnamazimi/in-site-shorteys">GitHub Repo</a>), so you can contribute if you wish. I hope this extension will be useful to you.</p><p><em>It’s a copy of the article </em><a href="https://bhnmzm.com/blog/how-to-set-custom-keyboard-shortcuts-for-an-operation-on-websites-in-chrome"><em>published in my blog</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=140131fac34e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arranging HTML items in particular shaped — ellipsis-html]]></title>
            <link>https://behnamazimi.medium.com/arranging-html-items-in-particular-shaped-ellipsis-html-6e2bc6d8c6c?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e2bc6d8c6c</guid>
            <category><![CDATA[javascipt]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sat, 22 Aug 2020 10:23:51 GMT</pubDate>
            <atom:updated>2020-08-23T06:02:04.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>Arranging HTML items in particular shape — ellipsis-html</h3><p>As a front-end developer sometimes you need to layout html elements is a particular layout by each other. The difficulty of this depends on the imagination of your UI designer but in general the layouting items in html without knowing the concepts and tricks is plenty challenging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*ctUuNLHHvHrPwpOh5Q61iw.jpeg" /><figcaption>Figure1: example arch arranging made with ellipsis-html</figcaption></figure><p>The most common unusual layout that I dealt with in my projects and I have seen it in many UI designs is arranging items on an arch. For example, laying in the border of a semicircle or a full circle, or arranging in the border of a semi-ellipse. To make these you need to encounter with math formula and complex concepts.</p><p>Good news is that I developed a mini tool exactly for this purpose, I mean for the arranging html elements along ellipse subset shapes. I named it <a href="https://github.com/behnamazimi/ellipsis-html"><strong>ellipsis-html.</strong></a></p><p>Using <a href="https://github.com/behnamazimi/ellipsis-html">ellipsis-html</a> you can layout child items of an element along a circle, semicircle, ellipse or any subset shape of it. You can see samples made with ellipsis-html in below figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*YnU7xsyhoGV_HXO1gtAL5g.jpeg" /><figcaption>Figure2: ellipsis-html sample layouts</figcaption></figure><p>It’s only 2KB and easy to use. I explained what you need in the GitHub readme, so you could <a href="https://github.com/behnamazimi/ellipsis-html#ellipsis-html-elements">read the readme too</a>.</p><p><a href="https://behnamazimi.github.io/ellipsis-html/"><strong>Check demo here</strong></a><strong> 😎</strong></p><p>You can arrange your elements in any subset shape of an ellipse with changing the options and put it in any position of your parent element.</p><p>Here is the code was written to make the result that you saw in Figure 1:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c582242dc7d908021eac396281a71cd7/href">https://medium.com/media/c582242dc7d908021eac396281a71cd7/href</a></iframe><p>If you encounter any problem, bring it up as an issue or contribute to the project and fix it yourself.</p><p>Do not forget to <a href="https://github.com/behnamazimi/ellipsis-html">star the repo</a>. Like other developers, star motivates me too. 🙃😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e2bc6d8c6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Collective Service Wrapper for Browsers and NodeJS]]></title>
            <link>https://levelup.gitconnected.com/collective-service-wrapper-for-browsers-and-nodejs-aac68251c583?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac68251c583</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[service-wrapper]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 16:48:52 GMT</pubDate>
            <atom:updated>2021-07-15T01:13:10.510Z</atom:updated>
            <content:encoded><![CDATA[<h3>Javascript Service Wrapper for Browsers and NodeJS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sqVEFjVE6LV9HgaZ" /><figcaption>Photo by <a href="https://unsplash.com/@twinsfisch?utm_source=medium&amp;utm_medium=referral">Isabella and Zsa Fischer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sometimes you need to pass your service functions from a shared pipe and call some actions on all of them. Or maybe you want to add all of your services to a queue that supports parallel and pending tasks.</p><p>Needs that I mentioned above are common, especially when you are using an http-request client like <a href="https://github.com/axios/axios">axios</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a>, or <a href="https://github.com/visionmedia/superagent">superagent</a>. Lots of the fetching could fire at the same time and if you want to check a common situation for all of them, it could be very frustrating.</p><p>In these conditions, you can use <a href="https://github.com/behnamazimi/js-service-wrapper"><strong>JS Service Wrapper</strong></a>. A promise based service wrapper with queue support that works on browsers and NodeJS environment.</p><h3>Full Example of JS Service Wrapper</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0546024c843c5970bfee49ba4a883502/href">https://medium.com/media/0546024c843c5970bfee49ba4a883502/href</a></iframe><p>This will be the console result of the above example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f686bc1749839566c87f8d0286cb07e/href">https://medium.com/media/8f686bc1749839566c87f8d0286cb07e/href</a></iframe><p>There are three wrapped services. Each of them has its unique id in the queue but ID starts with the real position index in the queue. As you can see above, all services added to the queue on its turn. When the first service added, it fires because it’s first of the queue too.</p><p>The second service will add to the queue after the first one, but it’s not parallel, so it must wait until it turns. After the second, the third one, the only parallel service should add to the queue. It fires immediately when added to the queue because it’s parallel. When all added, the first one resolves and removes from the queue, and the second service that is pending should fires. Each of the services will remove from the queue after done.</p><h3>Getting Started</h3><p>First, you need to import js-service-wrapper in your project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/714685a95b9105fa5f8a12b838572c0e/href">https://medium.com/media/714685a95b9105fa5f8a12b838572c0e/href</a></iframe><p>ServiceWrapper is the main object of our utility. You need to initialize it, and it&#39;s enough to init it once in your project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96a0dd25c2d8c96a155f849725e1cd0f/href">https://medium.com/media/96a0dd25c2d8c96a155f849725e1cd0f/href</a></iframe><p>The client that you set on the ServiceWrapper is the most important part of the initialization. It will be called inside the ClientHandler, and it will return a promise. Here is an example of wrapping. This code will call axios as client because we send it on init as the client value.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ee53e3ef1afd4be36d0eefaad4bd198/href">https://medium.com/media/0ee53e3ef1afd4be36d0eefaad4bd198/href</a></iframe><p>We have the chance to interrupt the above normal flow in different stages. We use hooks to do this. Let’s set some hooks to the service wrapper.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be85295bdebfef47dd787875e04f3af2/href">https://medium.com/media/be85295bdebfef47dd787875e04f3af2/href</a></iframe><p>These two hooks will call on all wrappers. the first one will get the result and return the data property of that and the second one just receives the result after client-promise succeed and log it.</p><p>There are six pre-defined hooks that you can set them to the ServiceWrapper or on each ClientHandlers to affect the services.</p><ol><li>HOOKS.BEFORE_FIRE calls before client service calling, but this hook is not async, and the fire will not wait for this.</li><li>HOOKS.BEFORE_RESOLVE calls when the service client promise is resolving and the value that it returns will send as the resolve parameter.</li><li>HOOKS.BEFORE_REJECT calls when the service client promise is rejecting and the value that it returns will send as the reject parameter.</li><li>HOOKS.AFTER_SUCCESS calls exactly before the resolve and this is not async too.</li><li>HOOKS.AFTER_FAIL calls exactly before the reject and this is not async too.</li><li>HOOKS.UPDATE_REQUEST_CONFIG with this hook, you can update the request config before the fire.</li></ol><p>Also, you can set the special client and hooks for each ClientHandler:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c859f6b0a8dd48fabf38ccaa79cada16/href">https://medium.com/media/c859f6b0a8dd48fabf38ccaa79cada16/href</a></iframe><p>If you active the queue on initialization, so you can specify the behavior of each service in the queue, and determine that your service should be parallel beside other services or pending. To do that you should pass options to<br>the fire method and set the value of the parallel property as true or false. Here is an example of a parallel and pending service definition.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/057f43e16b9feaa2ab01f5aee9a8b813/href">https://medium.com/media/057f43e16b9feaa2ab01f5aee9a8b813/href</a></iframe><h3>Tips</h3><ul><li>To use the fetch as your client function, you need to send the bound version of it as like fetch.bind(window).</li><li>The fireOptions that you pass to the fire method is accessible in the hook methods as the second parameter.</li><li>The wrapper itself is promise base but the client function doesn&#39;t need to be a promise.</li></ul><h3>Conclusion</h3><p>This wrapper could be very helpful when you want to have control over lots of services at the same time in a common way. I used this code structure in my two previous projects and tried to make it as dynamic as I can. You can use it with many famed HTTP request handlers or you can define your client. You can enable or disable the queue as you want.</p><p>The library is new, it may not cover all things, or may have some problems. Comment your ideas and <a href="https://github.com/behnamazimi/js-service-wrapper">contribute to the project</a>. It would be very pleasing to me.</p><p><a href="https://skilled.dev/">Coding Interview Questions + Land Your Dev Job | Skilled.dev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac68251c583" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/collective-service-wrapper-for-browsers-and-nodejs-aac68251c583">Collective Service Wrapper for Browsers and NodeJS</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Escape Loading Animation — Feeling Good Because of CSS]]></title>
            <link>https://behnamazimi.medium.com/escape-loading-animation-feeling-good-because-of-css-a9b350779f37?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9b350779f37</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sun, 03 May 2020 17:41:38 GMT</pubDate>
            <atom:updated>2020-05-03T17:43:53.440Z</atom:updated>
            <content:encoded><![CDATA[<h3>Escape Loading Animation — Feeling Good Because of CSS</h3><p>Hi there, I hope you all are in a good mood.<br>Today when I was surfing in Dribbble, I faced a cool loading animation, a fantastic loop animation. it drew my attention, and I could not ignore it. as far as I remember I was just gazing at it’s GIF for 10–12 minutes and that gave me good feelings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*rNiUJsNQRZRPjFAY1xUZKQ.gif" /><figcaption>escape loading animation</figcaption></figure><p>The design belongs to <a href="https://dribbble.com/colder">Vitaly Silkin</a>, and he shared this on his Dribble profile about 2 years ago.</p><p>Anyway, I decided to code it. It took almost 3 hours and 30 minutes but was genuinely enjoyable and be worth it. I was code with pure CSS then added it to the <a href="https://bit.ly/pfep-2020"><strong>practical front-end projects</strong></a><strong> </strong>collection as a new cool member.</p><p><a href="https://bit.ly/2KVz3vu"><strong>You can see the demo here.</strong></a> Also, you can customize the <a href="https://codepen.io/bhnmzm/pen/WNQXbMz">source on Codepen</a> too.</p><p>When it’s done, I wrote an email to Mr. Silkin and I thanked him because of his beautiful design. Also, I wrote to him that I hope he doesn’t be mad at me for doing it without permission. and I closed the email with this: Your potential friend, Behnam ;)</p><p>Sometimes a simple design, a short sentence, or a short story can make us happy so much more than we expected. especially in these difficult days and in the middle of that much works.</p><p>Comment your feelings and make me happy more ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9b350779f37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Canvas Wallpaper; Only A Love Song Is Missing]]></title>
            <link>https://behnamazimi.medium.com/html-canvas-wallpaper-only-a-love-song-is-missing-e8eb818633c?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8eb818633c</guid>
            <category><![CDATA[canvas]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Wed, 08 Apr 2020 21:28:38 GMT</pubDate>
            <atom:updated>2020-04-08T21:28:38.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Q1W58S5quuyadITEnIdxw.jpeg" /></figure><p>In the new project of the <a href="https://github.com/behnamazimi/practical-front-end-projects">practical front-end projects series</a>, I went over to the HTML Canvas and I tried to make a beautiful animated wallpaper. The result was satisfying for me and when I staring at it, I hear a slow love song in the background. xD. <a href="https://behnamazimi.github.io/simple-web-projects/canvas-wallpaper/"><strong>You can see the demo here.</strong></a></p><p>Actually the project is very simple and I’m sure reviewing its code will be so useful. I tried my best to make a fully documented and easy to read code. But you can also ask me detailed questions or <a href="https://github.com/behnamazimi/practical-front-end-projects">open issues on Github.</a></p><p>This is a practical canvas tutorial, an animated wallpaper with circles that moves on it. The main goal was focusing on the canvas methods, but next to it, you can find some useful coding strategies and mathematical operations in code.</p><p>I hope it will be useful for you. I will be looking forward to your comments.</p><p>I hope it will be useful for you. I will be looking forward to your comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8eb818633c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Collection of Simple Web Projects]]></title>
            <link>https://behnamazimi.medium.com/collection-of-simple-web-projects-3a6e8c68dcb6?source=rss-51c05fc3da55------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a6e8c68dcb6</guid>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Behnam Azimi]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 16:52:51 GMT</pubDate>
            <atom:updated>2020-04-13T13:27:14.405Z</atom:updated>
            <content:encoded><![CDATA[<h3>Collection of Practical Front-End Projects</h3><p>A few months ago, I decided to work on a collection of simple and practical projects to educate in my courses, and share it publicly. Then I started and the result came up as a Github repo, named <a href="https://github.com/behnamazimi/practical-front-end-projects"><strong>Practical Front-End Projects</strong></a><strong>.</strong></p><p>As the name implies, a collection of simple web projects developed for enthusiasts and beginners. The main purpose is education and all the codes are open for everyone that needs it.</p><h4>Updated at 13 Apr 2020:</h4><p><strong>- New Project Added: Canvas Wallpaper and Split Screen Design</strong></p><p><strong>Notes:</strong></p><ul><li>Webpack, gulp or another bundler was not used.</li><li>Third-party libraries were not used.</li><li>Codes only supported by modern browsers.</li><li>Projects just are for educational purposes.</li></ul><h3>Projects</h3><p>There are 9 developed projects that you can review now.</p><ul><li>Custom Video Player</li><li>Lovely Movies</li><li>Note App</li><li>Othello Board Game</li><li>Quiz App</li><li>Simple Range Slider</li><li>Web Chat App</li><li>Canvas Wallpaper</li><li>Split Screen</li></ul><h3>Split Screen</h3><p>A modern design concept to showcase content in a container with two splitted sections that will resize on mouseover. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/split-screen/"><strong>Online Demo</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>CSS variable</li><li>CSS relative and absolute positioning</li><li>CSS, use of pseudo-classes</li><li>DOM manipulation</li></ul><h3>Canvas Wallpaper</h3><p>This is a practical canvas tutorial, an animated wallpaper with circles that moves on it. The code is fully documented and easy to read. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/canvas-wallpaper/"><strong>Online Demo</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>HTML Canvas</li><li>Coding strategies</li><li>Mathematical operations</li></ul><h3>Web Chat App</h3><p>This project is a real messaging app that developed with pure javascript without third-party libs. We focused on the Web Components in this project and give it a real component structure. All chats, messages, data are fake and generated with a data-factory. I hope It would be useful. <a href="https://behnamazimi.github.io/simple-web-projects/web-chat-app/"><strong>(View Online)</strong></a></p><p><strong>Special topics covered:</strong></p><ul><li>Web Components</li><li>Object-Oriented Programming</li><li>Event handling</li><li>DOM controlling</li><li>CSS flex</li></ul><h3>Custom Video Player</h3><p>In this project, I customized the video controls and designed them manually. Focus on handling the video node and how to implement custom behavior for it. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/custom-video-player/"><strong>View Online</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>Video node controls</li><li>Fullscreen handling</li><li>CSS variables</li></ul><h3>Lovely Movies</h3><p>A simple movie search website. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/lovely-movies/"><strong>View Online</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>Promises and Fetch data with API (I used <a href="https://www.omdbapi.com/">OMDb API</a>)</li><li>Control DOM behaviors and events</li><li>Usage of position: static; in CSS</li><li>Using CSS variables</li></ul><h3>Note App</h3><p>A practical note web app to handle categorized notes. There are notes that can have a category for. you can search in notes and edit or remove those. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/notes-app/"><strong>View Online</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>Object-Oriented Programming (OOP)</li><li>Creating DOM elements</li><li>Layouting with CSS grid system</li></ul><h3>Othello Board Game</h3><p>Famous strategy game Othello, known as Reversi, implemented in pure Javascript. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/othello-board-game/"><strong>View Online</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>Object-Oriented Programming (OOP)</li><li>Othello game strategy</li><li>Creating DOM elements</li><li>Event handling</li><li>Error handling</li></ul><h3>Quiz App</h3><p>Simulating a quiz in the web app.<strong> (</strong><a href="https://behnamazimi.github.io/simple-web-projects/quiz-app/"><strong>View Online</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>Object-Oriented Programming (OOP)</li><li>Creating and handling DOM elements</li><li>CSS animation</li><li>Using Symbols</li></ul><h3>Simple Range Slider</h3><p>A simple implementation of a small range slider with pure Javascript. <strong>(</strong><a href="https://behnamazimi.github.io/simple-web-projects/simple-range-slider/"><strong>View Online</strong></a><strong>)</strong></p><p>Special topics covered:</p><ul><li>Prototypal Object-Oriented Programming</li><li>DOM events handling</li><li>CSS variables</li></ul><h3>Running locally</h3><p>It’s so simple. Clone or download the <a href="https://github.com/behnamazimi/practical-front-end-projects">repository</a>, open project directory and click index.html. As I mentioned above, there is not any bundler and all scripts have been injected in the HTML.</p><h4>New projects are being prepared</h4><p>I try to make this repo very useful. So, I really looking forward to your help and your criticism.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a6e8c68dcb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>