<?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: Prasant</title>
    <description>The latest articles on DEV Community by Prasant (@prasant).</description>
    <link>https://dev.to/prasant</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%2F696794%2Feabf82cd-86ee-4f20-8ca2-0dd3e8666bbb.jpeg</url>
      <title>DEV Community: Prasant</title>
      <link>https://dev.to/prasant</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prasant"/>
    <language>en</language>
    <item>
      <title>How I run code on twitter</title>
      <dc:creator>Prasant</dc:creator>
      <pubDate>Thu, 18 Aug 2022 11:20:43 +0000</pubDate>
      <link>https://dev.to/prasant/how-i-run-code-on-twitter-3h79</link>
      <guid>https://dev.to/prasant/how-i-run-code-on-twitter-3h79</guid>
      <description>&lt;p&gt;Ever ran code right on twitter? No, right? Now you can! 😎&lt;br&gt;
Imagine writing code in twitter and someone runs the code for you and reply with output. No, it's not possible that a human will reply you with the output every time. 😅&lt;/p&gt;

&lt;p&gt;Here my twitter bot &lt;a href="https://twitter.com/coderunnerbot"&gt;@coderunnerbot&lt;/a&gt; comes handy. It will reply you with the output of your code every time you mention it in your tweet containing the code and use the command &lt;code&gt;run&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Still not sure how to use it? Here is how&lt;/p&gt;

&lt;p&gt;Just mention &lt;a href="https://twitter.com/coderunnerbot"&gt;@coderunnerbot&lt;/a&gt; in your tweet followed by the command &lt;code&gt;run&lt;/code&gt; followed by the code you want to run in &lt;a href="https://www.markdownguide.org/extended-syntax/#fenced-code-blocks"&gt;markdown format&lt;/a&gt;. &lt;a href="https://twitter.com/coderunnerbot"&gt;@coderunnerbot&lt;/a&gt; will reply you with the output of your code.&lt;/p&gt;

&lt;p&gt;Example: &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--U4QSnh2o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dfjub3e8bihv48ut8v5x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--U4QSnh2o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dfjub3e8bihv48ut8v5x.png" alt="Code run example" width="603" height="869"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;blockquote class="ltag__twitter-tweet"&gt;

  &lt;div class="ltag__twitter-tweet__main"&gt;
    &lt;div class="ltag__twitter-tweet__header"&gt;
      &lt;img class="ltag__twitter-tweet__profile-image" src="https://res.cloudinary.com/practicaldev/image/fetch/s--5xIy9Wc---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://pbs.twimg.com/profile_images/1298220812806131714/S7Fc3Oo__normal.jpg" alt="Prasant kumar profile image"&gt;
      &lt;div class="ltag__twitter-tweet__full-name"&gt;
        Prasant kumar
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__username"&gt;
        @decodeprasant
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__twitter-logo"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ir1kO05j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-f95605061196010f91e64806688390eb1a4dbc9e913682e043eb8b1e06ca484f.svg" alt="twitter logo"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__body"&gt;
      &lt;a href="https://twitter.com/coderunnerbot"&gt;@coderunnerbot&lt;/a&gt; run&lt;br&gt;```py&lt;br&gt;for i in range(10):&lt;br&gt;    print(f"This is {i}")&lt;br&gt;```
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__date"&gt;
      18:01 PM - 16 Aug 2022
    &lt;/div&gt;


    &lt;div class="ltag__twitter-tweet__actions"&gt;
      &lt;a href="https://twitter.com/intent/tweet?in_reply_to=1559601137887907840" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fFnoeFxk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-reply-action-238fe0a37991706a6880ed13941c3efd6b371e4aefe288fe8e0db85250708bc4.svg" alt="Twitter reply action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/retweet?tweet_id=1559601137887907840" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--k6dcrOn8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-retweet-action-632c83532a4e7de573c5c08dbb090ee18b348b13e2793175fea914827bc42046.svg" alt="Twitter retweet action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/like?tweet_id=1559601137887907840" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SRQc9lOp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-like-action-1ea89f4b87c7d37465b0eb78d51fcb7fe6c03a089805d7ea014ba71365be5171.svg" alt="Twitter like action"&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  What else can coderunner bot do?
&lt;/h2&gt;

&lt;p&gt;It can also render your html, css, js code&lt;br&gt;
Mention &lt;a href="https://twitter.com/coderunnerbot"&gt;@coderunnerbot&lt;/a&gt; in your tweet followed by the command &lt;code&gt;render&lt;/code&gt; followed by the code you want to render in &lt;a href="https://www.markdownguide.org/extended-syntax/#fenced-code-blocks"&gt;markdown format&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--10wR-Bw1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xj8dv9we5mcrvsc13n5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--10wR-Bw1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xj8dv9we5mcrvsc13n5.png" alt="Code Render example" width="755" height="851"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5v6FdAfE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6a79cxm3d4zvq01no0lp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5v6FdAfE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6a79cxm3d4zvq01no0lp.png" alt="Rendered page" width="880" height="256"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;blockquote class="ltag__twitter-tweet"&gt;

  &lt;div class="ltag__twitter-tweet__main"&gt;
    &lt;div class="ltag__twitter-tweet__header"&gt;
      &lt;img class="ltag__twitter-tweet__profile-image" src="https://res.cloudinary.com/practicaldev/image/fetch/s--5xIy9Wc---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://pbs.twimg.com/profile_images/1298220812806131714/S7Fc3Oo__normal.jpg" alt="Prasant kumar profile image"&gt;
      &lt;div class="ltag__twitter-tweet__full-name"&gt;
        Prasant kumar
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__username"&gt;
        @decodeprasant
      &lt;/div&gt;
      &lt;div class="ltag__twitter-tweet__twitter-logo"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ir1kO05j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-f95605061196010f91e64806688390eb1a4dbc9e913682e043eb8b1e06ca484f.svg" alt="twitter logo"&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__body"&gt;
      &lt;a href="https://twitter.com/coderunnerbot"&gt;@coderunnerbot&lt;/a&gt; render&lt;br&gt;```html&lt;br&gt;&amp;lt;h1 id="t"&amp;gt;&amp;lt;/h1&amp;gt;&lt;br&gt;```&lt;br&gt;```css&lt;br&gt;&lt;a href="https://twitter.com/hashtag/t"&gt;#t&lt;/a&gt;{&lt;br&gt;    font-size: 5rem;&lt;br&gt;}&lt;br&gt;body{&lt;br&gt;    background: &lt;a href="https://twitter.com/hashtag/eee"&gt;#eee&lt;/a&gt;;&lt;br&gt;}&lt;br&gt;```&lt;br&gt;```js&lt;br&gt;setInterval(()=&amp;gt;{&lt;br&gt;   document.getElementById('t').innerHTML = new Date().toLocaleString();&lt;br&gt;}, 1000)&lt;br&gt;```
    &lt;/div&gt;
    &lt;div class="ltag__twitter-tweet__date"&gt;
      10:49 AM - 18 Aug 2022
    &lt;/div&gt;


    &lt;div class="ltag__twitter-tweet__actions"&gt;
      &lt;a href="https://twitter.com/intent/tweet?in_reply_to=1560217332441829376" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fFnoeFxk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-reply-action-238fe0a37991706a6880ed13941c3efd6b371e4aefe288fe8e0db85250708bc4.svg" alt="Twitter reply action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/retweet?tweet_id=1560217332441829376" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--k6dcrOn8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-retweet-action-632c83532a4e7de573c5c08dbb090ee18b348b13e2793175fea914827bc42046.svg" alt="Twitter retweet action"&gt;
      &lt;/a&gt;
      &lt;a href="https://twitter.com/intent/like?tweet_id=1560217332441829376" class="ltag__twitter-tweet__actions__button"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SRQc9lOp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/twitter-like-action-1ea89f4b87c7d37465b0eb78d51fcb7fe6c03a089805d7ea014ba71365be5171.svg" alt="Twitter like action"&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;


&lt;p&gt;Still confused? Here is the &lt;a href="https://coderunnerbot.vercel.app/"&gt;guide on how to use the bot&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>bot</category>
      <category>twitter</category>
      <category>coderunner</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
