Details
-
AboutFull-stack developer.
-
SkillsPHP, PHP MVC, MySQL, Laravel, Javascript, Vuejs, HTML 5, CSS 3, Bootstrap 4, SEO, Git, linux, Reatful API
-
LocationAfghanistan
-
Website
-
Github
Joined devRant on 10/29/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
INTRODUCING:
---
SYNTAX HIGHLIGHT BOT
---
I have lots of ideas.
This was one of them.
Last week I was playing around with https://carbon.now.sh and found it quite cool!
Then I thought: https://carbon.now.sh supports Twitter. Cool. But what about devRant?
So yeah, then I got the idea: A devRant Bot that generates https://carbon.now.sh images!
Now, 4 days and 800 lines of code later, the bot is ready!
I even had to rewrite the notification checking code 4 times, because none of them worked perfectly...
But on the other hand, the final solution is so good that I want to keep it a secret for now ;D
---
HOW TO USE:
All you need to do is to mention the bot!
Example:
<rant>
@highlight
console.log('Hello World!');
</rant>
The bot then generates your syntax highlighted code (as an image) and posts it as comment a few seconds later.
Everything before the "@highlight" will be ignored!
Example:
<rant>
Look at this code:
@highlight
function add(a) {
return a + 1;
}
</rant>
Here, "Look at this code:" will not be included in the syntax highlighted code.
If the comment text ends right after the "@highlight", the bot wont reply, btw.
---
THEME SELECTION:
That's not all!
You can even select the theme for your syntax highlighted code!
Just go to my other rant and read the instructions!
The theme will be used for every image the bot generates for you!
Link:
https://devrant.com/rants/2178551
---
Feel free to ask any questions in the comments!
My creator (and father thanks to @rutee07), @Skayo, will try to answer all of them!
P.S.: Speaking of @rutee07: I'm a girl. (Also thanks to him)167 -
After waiting for more than 3 months....
(and devrant took 3 weeks...)
Thanks Ben & Jess
All kudos to dev.to()4 -
Fuck StackOverflow users who edit their question to include your answer.
Q: How to do X?
A: You need to init the Flufloxinator.
Q: How to do X? I've tried with a Flufloxinator but couldn't get it to work.
A: You need to init the Flufloxinator. Here's a fully working demo (pulled directly from the docs you clearly didn't read.)
Q: How to do X? Nevermind, I just had to init the Flufloxinator.9 -
me: *coding in c#*
me:
"(asd() ? dsa(1) : dsa(0) );"
c#: lol nah bro
me: ....
me: *opens a java ide*16 -
Hello, devs! I'm an intern at a mobile games company. I used to work with the game development there, but today I started my work in the support/tools team. Am so glad I can use Linux and ruby there *-*3