-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
135 lines (120 loc) · 5.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
layout: default
---
<section id="hero">
<div class="container">
<div class="row">
<div class="col-sm-6 text-center">
<h2>Upcoming Events</h2>
<a
href="https://www.meetup.com/Copenhagen-Ruby-Brigade/"
style="display: block; text-align: center"
>
<img class="logo" src="images/meetup.svg" />
Go to our Meetup Page to see past and upcoming events
</a>
</div>
<div class="col-sm-6 text-center">
<h2>Slack Group</h2>
<p>
<a
href="https://copenhagenrb.slack.com"
style="display: block; text-align: center"
>
<img class="logo" src="images/slack.svg" />
Sign up to our Slack group
</a>
</p>
</div>
</div>
<div class="row" style="margin-top: 24px">
<div class="col-sm-8 col-sm-offset-2">
<h3>We meet every 3 months on the 2nd Wednesday of the month.</h3>
<br />
Next time will be
<strong id="date">0000-00-00</strong>
as solved with the following
<a href="https://en.wikipedia.org/wiki/Code_golf">code golfed</a> Ruby
snippet:
<pre
style="
margin: 0;
line-height: 125%;
background: #272822;
white-space: break-spaces;
"
><span style="color: #f8f8f2">require</span><span style="color: #e6db74">'date'</span>
<span style="color: #e6db74">"#{</span><span style="color: #f8f8f2">(</span><span style="color: #66d9ef">Date</span><span style="color: #f92672">.</span><span style="color: #f8f8f2">today</span><span style="color: #f8f8f2">..</span><span style="color: #f8f8f2">)</span><span style="color: #f92672">.</span><span style="color: #f8f8f2">find{_1</span><span style="color: #f92672">.</span><span style="color: #f8f8f2">mon</span><span style="color: #f92672">%</span><span style="color: #ae81ff">3</span><span style="color: #f92672"><</span><span style="color: #ae81ff">1</span><span style="color: #f92672">&&</span><span style="color: #f8f8f2">_1</span> <span style="color: #66d9ef">in</span> <span style="color: #e6db74">wday</span><span style="color: #f8f8f2">:</span><span style="color: #ae81ff">3</span><span style="color: #f8f8f2">,</span><span style="color: #e6db74">day</span><span style="color: #f8f8f2">:</span><span style="color: #ae81ff">8</span><span style="color: #f8f8f2">..</span><span style="color: #ae81ff">14</span><span style="color: #e6db74">}}"</span></pre>
</div>
</div>
</div>
</section>
<div class="container">
<section>
<h2>Who is using Ruby?</h2>
<div id="using-ruby">
{% assign companies = site.companies | sort_natural: 'name' %} {% for
company in companies %}
<a href="{{ company.url }}" target="_blank">{{ company.name }}</a>
{% endfor %}
</div>
</section>
<hr />
<section>
<div class="row">
<div class="col-md-6">
<h2>What is Ruby?</h2>
<p>
Ruby is a dynamic, general purpose, open source programming language
with a focus on simplicity and productivity. It has an elegant syntax
that is natural to read and easy to write.
</p>
<p>
It is a highly object oriented language designed to be "more powerful
than Perl, and more object-oriented than Python" and draws inspiration
from languages like Lisp and Smalltalk.
</p>
<p>
<a href="https://ruby-lang.org" target="_blank">
Learn more about Ruby on the official Ruby site
</a>
</p>
</div>
<div class="col-md-6">
<h2>About the group</h2>
<p>
<a
href="http://copenhagenrb.dk"
title="Ruby and Rails User Group in København, Denmark"
>
Copenhagen Ruby Brigade
</a>
is a loosely organized group of Ruby enthusiasts in or near
<a
href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=copenhagen,+denmark&sll=37.0625,-95.677068&sspn=50.111473,68.554688&ie=UTF8&z=12&iwloc=addr"
title="Where in the world is Copenhagen?"
>
Copenhagen, Denmark </a
>. We get together roughly every month to listen to presentations,
discuss issues, and generally socialize with like-minded geeks.
</p>
<p>
Wether you're a seasoned Ruby hacker or have never written a single
line of Ruby code, you're welcome at our meetings. All we require is
an interest in Ruby, and preferably a willingness to join the
discussions or perhaps even present a topic.
</p>
<p>
Our main language is Danish, but if you ask nicely most people are
willing to switch to English. Don't let language barriers stop you
from attending.
</p>
</div>
</div>
</section>
</div>
<script type="text/ruby">
require 'js'
require 'date'
JS.global[:document].getElementById('date')[:innerText] = "#{(Date.today..).find{_1.mon%3<1&&_1 in wday:3,day:8..14}}"
</script>