-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
78 lines (62 loc) · 2.07 KB
/
index.html
File metadata and controls
78 lines (62 loc) · 2.07 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Gr8Labs : Learn Groovy and Groovy Related Technologies by Code</title>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="favicon.ico" rel="shortcut icon"/>
<link href="images/favicon.png" rel="shortcut icon" type="image/png"/>
<link rel="stylesheet" media="all" href="css/less.css"/>
<link rel="stylesheet" media="all" href="css/site.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- Adding "maximum-scale=1" fixes the Mobile Safari auto-zoom bug: http://filamentgroup.com/examples/iosScaleBug/ -->
<script src="js/google-analytics.js"><!-- --></script>
</head>
<body lang="en" id="index">
<section>
<pre class="code big">
def message = '''
Gr8Labs.org is a website dedicated to teach people about
Groovy and Groovy related technologies
by showing a lot of sample code.
'''
println message.stripIndent()
// Enhance String class with launching() method
// to always return 'Launching Soon'.
String.metaClass.launching { -> "$delegate Launching Soon" }
assert 'gr8labs'.launching() == 'gr8labs Launching Soon'
</pre>
<pre class="code small">
def message = '''
Gr8Labs.org is a website
dedicated to teach people
about Groovy and
Groovy related
technologies by showing
a lot of sample code.
'''
println message.stripIndent()
// Enhance String class with
// launching() method to
// always return
// 'Launching Soon'.
String.metaClass.launching {->
"Launching Soon"
}
assert 'gr8labs'.launching()
== 'Launching Soon'
</pre>
</section>
<footer>
<p>
Follow gr8labsorg on <a href="http://twitter.com/#!/gr8labsorg">Twitter</a>
and <a href="https://github.com/gr8labsorg">GitHub</a>
</p>
<p class="logo">
<img src="images/gr8labs-logo.png" width="64" height="64" class="logo"/>
</p>
</footer>
</body>
</html>