<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Raghav Rathi</title>
    <description>The latest articles on DEV Community by Raghav Rathi (@withrvr).</description>
    <link>https://dev.to/withrvr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F611681%2F389ffd49-09b2-4905-bd58-0ffe22e2e70f.jpeg</url>
      <title>DEV Community: Raghav Rathi</title>
      <link>https://dev.to/withrvr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/withrvr"/>
    <language>en</language>
    <item>
      <title>Using `!!` to Convert to Boolean</title>
      <dc:creator>Raghav Rathi</dc:creator>
      <pubDate>Sun, 10 Mar 2024 07:27:48 +0000</pubDate>
      <link>https://dev.to/withrvr/using-to-convert-to-boolean-1hhp</link>
      <guid>https://dev.to/withrvr/using-to-convert-to-boolean-1hhp</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;Quickly convert any value to a boolean by using double negation.&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let truthyValue = !!1; // true
let falsyValue = !!0; // false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  NOTE
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;1 can be any &lt;code&gt;true&lt;/code&gt; value &lt;/li&gt;
&lt;li&gt;0 can be any &lt;code&gt;false&lt;/code&gt; value&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  For more refer
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;which are the true values&lt;/li&gt;
&lt;li&gt;&amp;amp; false values in javascript&lt;/li&gt;
&lt;li&gt;&lt;a href="https://javascript-equality-table.vercel.app/if-condition"&gt;https://javascript-equality-table.vercel.app/if-condition&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;blockquote&gt;
&lt;p&gt;Learn from: &lt;a href="https://dev.to/mmainulhasan/30-javascript-tricky-hacks-gfc"&gt;https://dev.to/mmainulhasan/30-javascript-tricky-hacks-gfc&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>🍎: Bad Apple</title>
      <dc:creator>Raghav Rathi</dc:creator>
      <pubDate>Wed, 08 Feb 2023 05:03:02 +0000</pubDate>
      <link>https://dev.to/withrvr/-bad-apple-2lom</link>
      <guid>https://dev.to/withrvr/-bad-apple-2lom</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Have you hear of / watched any videos of it&lt;/li&gt;
&lt;li&gt;they are just GREAT&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;li&gt;How do they convert video&lt;/li&gt;
&lt;li&gt;into this different platform ( which you can't even imagine)&lt;/li&gt;
&lt;li&gt;for simulation&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;li&gt;to show their work in a particular field&lt;/li&gt;
&lt;li&gt;using their code to automate all stuff&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;li&gt;just watch any one video you will become a fan&lt;/li&gt;
&lt;li&gt;and want to do your self also using coding&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  🔗: Links
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Example: from the below&lt;/li&gt;
&lt;li&gt;But on everything (Collection) / Combine Video&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/UbTACUhcVg4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/NJZXKMcKwIM"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  Other
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=FtutLA63Cp8&amp;amp;ab_channel=kasidid2" rel="noopener noreferrer"&gt;Orignal Song Video&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=6QY4ekac1_Q&amp;amp;t=723s&amp;amp;ab_channel=Megapig9001" rel="noopener noreferrer"&gt;Bad Apple Explained: History and Analysis&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/results?search_query=bad+apple" rel="noopener noreferrer"&gt;OR Just search Bad Apple on YouTube&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Simulation Video
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/playlist?list=PLajlU5EKJVdonUGTEc7B-0YqElDlz9Sf9" rel="noopener noreferrer"&gt;Playlist: Bad Apple on Everything&lt;/a&gt; ***** &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://docs.google.com/spreadsheets/d/1t5kwkG9id8yDinIe1R6T4DwdKTavBDtcob6d9Z0c2C4/edit#gid=0" rel="noopener noreferrer"&gt;Sheet&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/@Junferno/featured" rel="noopener noreferrer"&gt;One of the creators I watch&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Personal Favorite
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;so clean / I wanted to make it&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=6k7McEeaOEY&amp;amp;ab_channel=flyingcakes" rel="noopener noreferrer"&gt;on GitHub Contribution Graph&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Camera also moves make it more realistic &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=240Vq6tIxio&amp;amp;ab_channel=DarylBunao" rel="noopener noreferrer"&gt;Stop Motion PV&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Shocked because sheep are moving&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=tO6sfku_1b8&amp;amp;ab_channel=Treyzania" rel="noopener noreferrer"&gt;Minecraft sheep&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Most Unique looking&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=IfcItGA9L24&amp;amp;ab_channel=WorstApple" rel="noopener noreferrer"&gt;ONE ANALOG CLOCK&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=RO7TYfMyPPw&amp;amp;ab_channel=PanduhCx" rel="noopener noreferrer"&gt;AI Generated&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;where it make mistake / funny stuff happen&lt;/li&gt;
&lt;li&gt;I noticed&lt;/li&gt;
&lt;li&gt;1:58 .. in one frame instrument use is telescope ... lol :/&lt;/li&gt;
&lt;li&gt;other noticed&lt;/li&gt;
&lt;li&gt;1:52 ... random instruments ... AI is confused&lt;/li&gt;
&lt;li&gt;1:10 ... many frames bird is on boat ... lol :/&lt;/li&gt;
&lt;li&gt;1:42 ... holds arrow randomly ... from no where&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;blockquote&gt;
&lt;p&gt;❤️: A Like would be appreciated if it was helpful&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>motivation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>🔀: Reverse String using HTML Tag Only</title>
      <dc:creator>Raghav Rathi</dc:creator>
      <pubDate>Sat, 04 Feb 2023 16:23:17 +0000</pubDate>
      <link>https://dev.to/withrvr/-reverse-string-using-html-tag-only-16pj</link>
      <guid>https://dev.to/withrvr/-reverse-string-using-html-tag-only-16pj</guid>
      <description>&lt;h1&gt;
  
  
  👩‍💻: Code
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;bdo&lt;/span&gt; &lt;span class="na"&gt;dir=&lt;/span&gt;&lt;span class="s"&gt;"ltr"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; Normal Text &lt;span class="nt"&gt;&amp;lt;/bdo&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;bdo&lt;/span&gt; &lt;span class="na"&gt;dir=&lt;/span&gt;&lt;span class="s"&gt;"rtl"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; Reversed Text &lt;span class="nt"&gt;&amp;lt;/bdo&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🖥️: Output
&lt;/h1&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/withrvr/embed/bGjzJXb?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>announcement</category>
      <category>devto</category>
      <category>web3</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>🤯: Python `___` can be used in numbers ??</title>
      <dc:creator>Raghav Rathi</dc:creator>
      <pubDate>Fri, 03 Feb 2023 20:24:26 +0000</pubDate>
      <link>https://dev.to/withrvr/use-of-in-python-5geg</link>
      <guid>https://dev.to/withrvr/use-of-in-python-5geg</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;💬: Comment Your Thoughts or Anything&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h1&gt;
  
  
  👨‍💻: Code
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;1_00_00000.000_000&lt;/span&gt;
&lt;span class="c1"&gt;# b = 10000000.000000
# here b is same as a
&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;{:_}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🖥️: Output
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fllcygg2vu5182z83pkcd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fllcygg2vu5182z83pkcd.png" alt="output of code" width="148" height="74"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  🤔: How to use it
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;its numbers / double delimiter&lt;/li&gt;
&lt;li&gt;you can use underscore as a &lt;code&gt;,&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;which doesn't affect the value / meaning of the number&lt;/li&gt;
&lt;li&gt;Can't use it

&lt;ol&gt;
&lt;li&gt;at start &amp;amp; end of number&lt;/li&gt;
&lt;li&gt;before &amp;amp; after the decimal point &lt;code&gt;.&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;or multiple underscores in a row&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  🔢: Maths
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;its like the maths &lt;code&gt;,&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;which we use in daily life&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  🧵: fString
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;while printing in console&lt;/li&gt;
&lt;li&gt;can use &lt;code&gt;fstring&lt;/code&gt; to print it like that&lt;/li&gt;
&lt;li&gt;NOTE:

&lt;ul&gt;
&lt;li&gt;but it will come after every 3 digit in output&lt;/li&gt;
&lt;li&gt;as American Standard&lt;/li&gt;
&lt;li&gt;not how you added in Number&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  🏃‍♂️: to Run
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sololearn.com/compiler-playground/cVOb0s0mgJZS"&gt;https://www.sololearn.com/compiler-playground/cVOb0s0mgJZS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;orignally was created on sololearn by me&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  👀: See also
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;References / More Details / Might Help&lt;/li&gt;
&lt;li&gt;PEP 515 – Underscores in Numeric Literals

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://peps.python.org/pep-0515/"&gt;https://peps.python.org/pep-0515/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;What’s New In Python 3.6

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.python.org/3/whatsnew/3.6.html"&gt;https://docs.python.org/3/whatsnew/3.6.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;




&lt;blockquote&gt;
&lt;p&gt;❤️: A Like would be appreciated if it was helpful&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>python</category>
      <category>string</category>
      <category>underscore</category>
      <category>number</category>
    </item>
    <item>
      <title>Hello World ( Noob to Pro )</title>
      <dc:creator>Raghav Rathi</dc:creator>
      <pubDate>Sun, 18 Apr 2021 10:20:34 +0000</pubDate>
      <link>https://dev.to/withrvr/hello-world-noob-to-pro-55f3</link>
      <guid>https://dev.to/withrvr/hello-world-noob-to-pro-55f3</guid>
      <description>&lt;h1&gt;
  
  
  👨‍💻: Code
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# noob ( beginner )
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello world!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# pro ( advance )
&lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;__hello__&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;What Do you think ???&lt;/li&gt;
&lt;li&gt;&lt;p&gt;its like &lt;strong&gt;Easter Egg&lt;/strong&gt; in python&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Printing "' Hello world! '" Using module&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;or you can do it like this also&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;from __hello__ import *&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  🏃‍♂️: Run
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Try Executing yourself&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sololearn.com/compiler-playground/cnua426gepaJ"&gt;https://www.sololearn.com/compiler-playground/cnua426gepaJ&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  😁: LOL
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyofr92wwabi99h7uifq6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyofr92wwabi99h7uifq6.png" alt="Image description" width="500" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>python3</category>
      <category>helloworld</category>
      <category>print</category>
    </item>
  </channel>
</rss>
