Skip to content

Commit

Permalink
Updated yearDiffStr, see jekyll/jekyll#5868 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecive committed Feb 7, 2017
1 parent 52e427f commit 7ea9a8a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 38 deletions.
39 changes: 20 additions & 19 deletions _includes/about.html
Expand Up @@ -13,25 +13,26 @@ <h2>About</h2>
<p>{{ site.description }} He is currently working as a Postdoctoral Associate at the Social Robotics Lab, Yale University, New Haven, CT.</p>
</div>
<div class="col-lg-6">
{% assign yearDiffInt = site.time | date: '%Y' | minus: 2010 %}
{% if yearDiffInt == 0 %}{% assign yearDiffStr = "zero" %}
{% elsif yearDiffInt == 1 %}{% assign yearDiffStr = "one" %}
{% elsif yearDiffInt == 2 %}{% assign yearDiffStr = "two" %}
{% elsif yearDiffInt == 3 %}{% assign yearDiffStr = "three" %}
{% elsif yearDiffInt == 4 %}{% assign yearDiffStr = "four" %}
{% elsif yearDiffInt == 5 %}{% assign yearDiffStr = "five" %}
{% elsif yearDiffInt == 6 %}{% assign yearDiffStr = "six" %}
{% elsif yearDiffInt == 7 %}{% assign yearDiffStr = "seven" %}
{% elsif yearDiffInt == 8 %}{% assign yearDiffStr = "eight" %}
{% elsif yearDiffInt == 9 %}{% assign yearDiffStr = "nine" %}
{% elsif yearDiffInt == 10 %}{% assign yearDiffStr = "ten" %}
{% elsif yearDiffInt == 11 %}{% assign yearDiffStr = "eleven" %}
{% elsif yearDiffInt == 12 %}{% assign yearDiffStr = "twelve" %}
{% elsif yearDiffInt == 13 %}{% assign yearDiffStr = "thirteen" %}
{% elsif yearDiffInt == 14 %}{% assign yearDiffStr = "fourteen" %}
{% elsif yearDiffInt == 15 %}{% assign yearDiffStr = "fifteen" %}
{% endif %}
<p>Alessandro has more than {{ yearDiffStr }} years' research experience in Robotics Engineering. He worked full time with the iCub, one of the most advanced humanoid robots out there, on machine perception and artificial intelligence. His deep knowledge of C++ and the YARP/ROS software architecture has been mainly used for human-robot interaction, kinematics, tactile perception and control. Head over the research section for more information on his work.</p>
{% assign yearDiffInt = site.time | date: '%Y' | minus: 2010 %}
{% capture yearDiffStr %}{% case yearDiffInt %}
{% when 0 %} zero
{% when 1 %} one
{% when 2 %} two
{% when 3 %} three
{% when 4 %} four
{% when 5 %} five
{% when 6 %} six
{% when 7 %} seven
{% when 8 %} eight
{% when 9 %} nine
{% when 10 %} ten
{% when 11 %} eleven
{% when 12 %} twelve
{% when 13 %} thirteen
{% when 14 %} fourteen
{% when 15 %} fifteen
{% endcase %}{% endcapture %}
<p>Alessandro has more than {{ yearDiffStr | strip_newlines }} years' research experience in Robotics Engineering. He worked full time with the iCub, one of the most advanced humanoid robots out there, on machine perception and artificial intelligence. His deep knowledge of C++ and the YARP/ROS software architecture has been mainly used for human-robot interaction, kinematics, tactile perception and control. Head over the research section for more information on his work.</p>
</div>
<div class="col-lg-1"></div>
</div>
Expand Down
39 changes: 20 additions & 19 deletions _posts/cv/2016-10-13-CV-AlessandroRoncone.md
Expand Up @@ -259,26 +259,27 @@ misc:

# Who am I

{% assign yearDiffInt = site.time | date: '%Y' | minus: 2010 %}
{% if yearDiffInt == 0 %}{% assign yearDiffStr = "zero" %}
{% elsif yearDiffInt == 1 %}{% assign yearDiffStr = "one" %}
{% elsif yearDiffInt == 2 %}{% assign yearDiffStr = "two" %}
{% elsif yearDiffInt == 3 %}{% assign yearDiffStr = "three" %}
{% elsif yearDiffInt == 4 %}{% assign yearDiffStr = "four" %}
{% elsif yearDiffInt == 5 %}{% assign yearDiffStr = "five" %}
{% elsif yearDiffInt == 6 %}{% assign yearDiffStr = "six" %}
{% elsif yearDiffInt == 7 %}{% assign yearDiffStr = "seven" %}
{% elsif yearDiffInt == 8 %}{% assign yearDiffStr = "eight" %}
{% elsif yearDiffInt == 9 %}{% assign yearDiffStr = "nine" %}
{% elsif yearDiffInt == 10 %}{% assign yearDiffStr = "ten" %}
{% elsif yearDiffInt == 11 %}{% assign yearDiffStr = "eleven" %}
{% elsif yearDiffInt == 12 %}{% assign yearDiffStr = "twelve" %}
{% elsif yearDiffInt == 13 %}{% assign yearDiffStr = "thirteen" %}
{% elsif yearDiffInt == 14 %}{% assign yearDiffStr = "fourteen" %}
{% elsif yearDiffInt == 15 %}{% assign yearDiffStr = "fifteen" %}
{% endif %}
{% assign yearDiffInt = site.time | date: '%Y' | minus: 2010 %}
{% capture yearDiffStr %}{% case yearDiffInt %}
{% when 0 %} zero
{% when 1 %} one
{% when 2 %} two
{% when 3 %} three
{% when 4 %} four
{% when 5 %} five
{% when 6 %} six
{% when 7 %} seven
{% when 8 %} eight
{% when 9 %} nine
{% when 10 %} ten
{% when 11 %} eleven
{% when 12 %} twelve
{% when 13 %} thirteen
{% when 14 %} fourteen
{% when 15 %} fifteen
{% endcase %}{% endcapture %}

Energetic and resourceful Robotics Engineer with more than {{ yearDiffStr }} years' research experience and a proven publication track record. Motivated by intellectually challenging projects as well as personal achievements, I pride myself on possessing a very diverse set of skills. I am capable of pursuing individual research aimed at the development of novel applications, but I particularly love to be part of a team with bright people working toward ambitious ideas. I am enthusiastic toward the design and the realization of innovative applications, and I love to work hard in pursuance of them.
Energetic and resourceful Robotics Engineer with more than {{ yearDiffStr | strip_newlines }} years' research experience and a proven publication track record. Motivated by intellectually challenging projects as well as personal achievements, I pride myself on possessing a very diverse set of skills. I am capable of pursuing individual research aimed at the development of novel applications, but I particularly love to be part of a team with bright people working toward ambitious ideas. I am enthusiastic toward the design and the realization of innovative applications, and I love to work hard in pursuance of them.

---
{: class="no-print"}
Expand Down

0 comments on commit 7ea9a8a

Please sign in to comment.