<?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 Mario Janković on Medium]]></title>
        <description><![CDATA[Stories by Mario Janković on Medium]]></description>
        <link>https://medium.com/@mariojankovic?source=rss-e3c112a0d78d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lnTn8Qd2N_DnGdRUgjwzxQ.jpeg</url>
            <title>Stories by Mario Janković on Medium</title>
            <link>https://medium.com/@mariojankovic?source=rss-e3c112a0d78d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:35:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mariojankovic/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[Creating a super simple FontAwesome 5 icon component in Vue]]></title>
            <link>https://codeburst.io/creating-a-super-simple-fontawesome-5-icon-component-in-vue-699a25f238da?source=rss-e3c112a0d78d------2</link>
            <guid isPermaLink="false">https://medium.com/p/699a25f238da</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[font-awesome]]></category>
            <dc:creator><![CDATA[Mario Janković]]></dc:creator>
            <pubDate>Mon, 16 Oct 2017 20:51:10 GMT</pubDate>
            <atom:updated>2017-10-22T03:01:11.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i7IU7ld-GjnA0OxjD7mMAA.png" /></figure><p>I was lucky enough to grab one of the early bird releases of FontAwesome 5, so of course I was eager to use it in my next Vue project without having to fiddle around with my webpack setup.</p><p>Ever since I started developing Vue.js, I was looking for a neat and simple way to do rudimentary tasks without using third party components. There are several popular options out there, but why not create your own? It won’t take more than a couple of minutes, plus you can use your own classes and icons thus keeping your assets small.</p><p>First of all, I decided to register my &lt;icon&gt; component globally instead of creating a separate component since I want to use it anywhere without having to import or register components and mixins. Creating components globally can be done by using Vue.component(tagName, options), like this:</p><pre>Vue.component(‘icon’, {<br>  props: {<br>    name<br>  }<br>})</pre><p>Currently we’re only passing a singlename prop to our icon, so ideally we would want to have something like this:</p><pre>&lt;icon name=”rocket”&gt;&lt;/icon&gt;</pre><p>To do this, let’s define our template:</p><pre>Vue.component(‘icon’, {<br>  props: {<br>    name<br>  },<br>  template: `&lt;svg&gt;&lt;use :xlink:href=&quot;&#39;static/icons/solid.svg#&#39; + name&quot;&gt;&lt;/use&gt;&lt;/svg&gt;`<br>})</pre><p>So far so good! If you’ve been playing around with the FontAwesome DIY kit, you should have noticed that there are several styles to chose from. Most of the time I’m OK with using light or regular, but adding a star-rating system for example will require having both a solid and light or regular style.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*SBWs9HflSW2B95Md2wC3KQ.png" /></figure><p>So how would we do that? We’ll pass another prop called weight(or whatever works for you).</p><pre>Vue.component(&#39;icon&#39;, {<br>  props: {<br>    name,<br>    weight: {<br>      default: &#39;light&#39;<br>    }<br>  },<br>  template: `&lt;svg&gt;&lt;use :xlink:href=&quot;&#39;static/icons/&#39; + weight + &#39;.svg#&#39; + name&quot;&gt;&lt;/use&gt;&lt;/svg&gt;`<br>})</pre><p>Feel free to replace the source folder — I’ve used /static for most of my assets. Also, notice the use of default for weight — this tells the component to prefer light styles instead. So both star icons would now look like this:</p><pre>&lt;icon name=”star”&gt;&lt;/icon&gt;<br>&lt;icon name=”star” weight=&quot;solid&quot;&gt;&lt;/icon&gt;</pre><p>That’s it! You could now create a task to compile your SVG icons into a single sprite or use a tool like fontello to achieve the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=699a25f238da" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/creating-a-super-simple-fontawesome-5-icon-component-in-vue-699a25f238da">Creating a super simple FontAwesome 5 icon component in Vue</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working your way out of procastrination]]></title>
            <link>https://medium.com/@mariojankovic/working-your-way-out-of-procastrination-ada798506e74?source=rss-e3c112a0d78d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ada798506e74</guid>
            <dc:creator><![CDATA[Mario Janković]]></dc:creator>
            <pubDate>Sat, 06 Sep 2014 17:29:09 GMT</pubDate>
            <atom:updated>2014-09-06T18:02:44.118Z</atom:updated>
            <content:encoded><![CDATA[<h2>Working your way out of procrastination as a freelancer</h2><h4>Or how to combine the Pomodoro technique with your everyday calendar</h4><p>As a freelancer, you’ll often find yourself struggling to manage working hours and keep them apart from your free time. There’s a thin line between watching useless videos on the internet or playing a video game and working on an important task. You’re one click away from procrastinating and you wouldn’t even feel bad about it — no one’s watching you and you constantly keep telling yourself that there’s enough time to get the job done. But in reality, getting the job done right away could leave you with more great job opportunities or a large gap where you could keep watching funny <a href="http://youtu.be/d6PCdcINQcY">dog videos</a>. Working in a Coworking environment could help you improve your daily schedule and prevent procrastination, but it could also damage your existing routine.</p><p>So how to effectively manage time using free available resources and a small portion of time itself? Meet <a href="https://www.google.com/calendar">Google Calendar</a> and the <a href="http://pomodorotechnique.com/">Pomodoro technique</a>. If you’re familiar with the Pomodoro technique, then you’ll certainly know that it’s all about working for 25 minutes without losing focus (and you really, really want to be focused here) and getting a rest of no more than 5 minutes. You should spend your break away from your work — grab a coffee or glass of water, stretch your legs, do whatever you want. The breaks are as important as the work and shouldn’t be avoided. Take your hard earned break as soon as the timer rings and don’t try to finish anything; you’ll get back to it as soon as your break ends. Every fourth Pomodoro (or 2 hours later) there is a large 15 to 30 minutes break. I prefer to take the largest break possible which is 30 minutes — I’ll explain why later.</p><h3>Google Calendar</h3><p>On the other hand, Google Calendar might be the best Todo app there is (take this with caution, it’s just an opinion). It integrates well with all my services (I’m using an android smartphone so I have all of my tasks at hand wherever I am) and I can easily move around my schedule even when I’m out of my office. However, Google Calendar has it’s limitations and it may not be as feature rich as other available apps, but it’s free and gets the job done pretty well. In fact, I couldn’t imagine any other app filling this gap as good as Google Calendar. But don’t hesitate to use any app you want.</p><p>At the end of each day, I spend about 5 or 10 minutes top to manage my work. It’s something I don’t count towards any working hour but actually it’s something I do in my free time. Spending some time to do that will actually leave me with a ton of available free time at the end, so it’s a good investment from my point of view. Anyway, I spend some time focusing on what’s important and take a look all the tasks I want to address tomorrow and write them down as blocks of 2 or 4 pomodoros. For example, if I have to work on a website for an important client, I would write that down in my calendar as a block of four or even 2 blocks of 4 pomodoros. See screenshot and a more detailed description below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*Ldc2v2-SqPEkYsgimusciQ.jpeg" /></figure><p>You can even split your work in smaller tasks, the smallest unit being half hour (consisting of 25 minutes of work and 5 minutes of rest). But I usually don’t think it’s worth writing down as you can address smaller tasks in your free time or before you start focusing on larger projects.</p><p>You will want to start working on your first Pomodoro as soon as possible and try to keep your schedules right as taking too much break when you’re on your small break will leave you with less or almost no free time when getting to your large half-hour break. Having too much of either break on the other hand will push your tasks further down the list and you will find yourself working late, so try and keep your timings right. Using no less than half-hour blocks allows you to easily draw your everyday schedule without the need to create events manually (for example, having 15 minutes of break would ruin the ability to draw equal blocks on your calendar).</p><p>Sometimes there will be an unplanned call or an important task you need to attend to, so this is why you best have an additional calendar for all your unplanned activities. This way, I can keep track of the additional work done and can push some of my tasks to a later point or even another day. I can also rearrange my tasks at any point or move groups of tasks around my entire week for example.</p><p>Having a clear view of my entire day helps me manage my free time more effectively. Pushing tasks further into my day or having large breaks leaves me with less free time, and once my brain recognizes this pattern (which can usually take two to four weeks) it doesn’t want to break any of these rules.</p><p><strong>Please note:</strong> before using this technique you might want to consider getting yourself a new video game or book from your favorite store as you’ll be left with more free time at the end of each day and spend less time looking at shitty videos on the internet. You’re welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ada798506e74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>