-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.html
245 lines (204 loc) · 12.2 KB
/
main.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Main</title>
<meta name="viewport" content="width=740" />
<meta name="description" content="" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="generator" content="JBake" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<link rel="stylesheet" href="stylesheets/core.css" media="screen" />
<link rel="stylesheet" href="stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)" />
<link rel="stylesheet" href="stylesheets/pygment_trac.css" />
<script type="text/javascript" src="javascripts/modernizr.js" xml:space="preserve"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" xml:space="preserve"></script>
<script type="text/javascript" src="javascripts/headsmart.min.js" xml:space="preserve"></script>
<script type="text/javascript" xml:space="preserve">
$(document).ready(function () {
$('#main_content').headsmart()
})
</script>
</head>
<body>
<div id="wrap">
<div>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" shape="rect" href="">JBake</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a shape="rect" href="index.html">Home</a></li>
<li><a shape="rect" href="about.html">About</a></li>
<li><a shape="rect" href="feed.xml">Subscribe</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" shape="rect">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#" shape="rect">Action</a></li>
<li><a href="#" shape="rect">Another action</a></li>
<li><a href="#" shape="rect">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#" shape="rect">Separated link</a></li>
<li><a href="#" shape="rect">One more separated link</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="page-header">
<h1>Main</h1>
</div>
<p><em>25 sierpnia 2013</em></p>
<p>
<h1>
<a name="fairyland-" class="anchor" href="#fairyland-"><span class="octicon octicon-link"></span></a>jFairy <a
href="https://travis-ci.org/Codearte/fairyland"><img src="https://travis-ci.org/Codearte/jfairy.png"
alt="Build Status"></a>
</h1>
<p>Java fake data generator. Based on Wikipedia:
<blockquote cite="http://en.wikipedia.org/wiki/Fairyland">Fairyland, in folklore, is the fabulous land or abode of
fairies or fays.
</blockquote></p>
<h2>
<a name="embedding" class="anchor" href="#usage"><span class="octicon octicon-link"></span></a>Adding into project
</h2>
<p>In Maven projects (pom.xml):</p>
<div class="highlight highlight-xml"><pre><span class="nt"><pom></span>
...
<span class="nt"><dependencies></span>
<span class="nt"><dependency></span>
<span class="nt"><groupId></span>org.jfairy<span class="nt"></groupId></span>
<span class="nt"><artifactId></span>jfairy<span class="nt"></artifactId></span>
<span class="nt"><version></span>0.2.5<span class="nt"></version></span>
<span class="nt"></dependency></span>
<span class="nt"></dependencies></span>
...
<span class="nt"></pom></span>
</pre>
</div>
<p>In Gradle projects (build.gradle):</p>
<div class="highlight highlight-groovy"><pre><span class="n">repositories</span> <span class="o">{</span>
<span class="n">mavenCentral</span><span class="o">()</span>
<span class="o">}</span>
...
testCompile 'org.jfairy:jfairy:0.2.5'
</pre>
</div>
<h2>
<a name="usage" class="anchor" href="#usage"><span class="octicon octicon-link"></span></a>Usage</h2>
<p>Creating simple objects:</p>
<div class="highlight highlight-java"><pre><span class="n">Fairy</span> <span class="n">fairy</span> <span
class="o">=</span> <span class="n">Fairy</span><span class="o">.</span><span class="na">create</span><span
class="o">();</span>
<span class="n">Person</span> <span class="n">person</span> <span class="o">=</span> <span class="n">fairy</span><span
class="o">.</span><span class="na">person</span><span class="o">();</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">person</span><span class="o">.</span><span
class="na">fullName</span><span class="o">());</span> <span class="c1">// Chloe Barker</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">person</span><span class="o">.</span><span
class="na">email</span><span class="o">());</span> <span class="c1">// [email protected]</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">person</span><span class="o">.</span><span
class="na">telephoneNumber</span><span class="o">());</span> <span class="c1">// 690-950-802</span>
<span class="n">Person</span> <span class="n">adultMale</span> <span class="o">=</span> <span
class="n">fairy</span><span class="o">.</span><span class="na">person</span><span class="o">(</span><span
class="n">male</span><span class="o">(),</span> <span class="n">minAge</span><span class="o">(</span><span
class="mi">21</span><span class="o">));</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">adultMale</span><span
class="o">.</span><span class="na">isMale</span><span class="o">());</span> <span class="c1">// true</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">adultMale</span><span
class="o">.</span><span class="na">dateOfBirth</span><span class="o">());</span> <span class="c1">// at least 21 years earlier</span>
</pre>
</div>
<p>Creating related objects:</p>
<div class="highlight highlight-java"><pre><span class="n">Fairy</span> <span class="n">fairy</span> <span
class="o">=</span> <span class="n">Fairy</span><span class="o">.</span><span class="na">create</span><span
class="o">();</span>
<span class="n">Company</span> <span class="n">company</span> <span class="o">=</span> <span class="n">fairy</span><span
class="o">.</span><span class="na">company</span><span class="o">();</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">company</span><span class="o">.</span><span
class="na">name</span><span class="o">());</span> <span class="c1">// Robuten Associates</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">company</span><span class="o">.</span><span
class="na">url</span><span class="o">());</span> <span class="c1">// http://www.robuteniaassociates.com</span>
<span class="n">Person</span> <span class="n">salesman</span> <span class="o">=</span> <span class="n">fairy</span><span
class="o">.</span><span class="na">person</span><span class="o">(</span><span
class="n">withCompany</span><span class="o">(</span><span class="n">company</span><span class="o">));</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">salesman</span><span
class="o">.</span><span class="na">fullName</span><span class="o">());</span> <span class="c1">// Juan Camacho</span>
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span
class="na">println</span><span class="o">(</span><span class="n">salesman</span><span
class="o">.</span><span class="na">companyEmail</span><span class="o">());</span> <span class="c1">// [email protected]</span>
</pre>
</div>
<p>Locale support:</p>
<div class="highlight highlight-java"><pre><span class="n">Fairy</span> <span class="n">enFairy</span> <span
class="o">=</span> <span class="n">Fairy</span><span class="o">.</span><span class="na">create</span><span
class="o">();</span> <span class="c1">// Locale.ENGLISH</span>
<span class="n">Fairy</span> <span class="n">plFairy</span> <span class="o">=</span> <span class="n">Fairy</span><span
class="o">.</span><span class="na">create</span><span class="o">(</span><span class="n">Locale</span><span
class="o">.</span><span class="na">forLanguageTag</span><span class="o">(</span><span
class="s">"pl"</span><span class="o">));</span> <span class="c1">// Polish version</span>
</pre>
</div>
<h2>
<a name="sample" class="anchor" href="#sample"><span class="octicon octicon-link"></span></a>Other samples</h2>
<p>Look into <a href="https://github.com/Codearte/fairyland/tree/master/src/test/groovy/snippets/">code samples</a></p>
<h2>
<a name="building" class="anchor" href="#building"><span class="octicon octicon-link"></span></a>Building</h2>
<p>This project can be built using <a href="http://www.gradle.org/">gradle</a> command:</p>
<pre><code>./gradlew build
</code></pre>
<h2>
<a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation
</h2>
<p>Installation into <a href="http://maven.apache.org/">maven</a> local repository</p>
<pre><code>./gradlew publishToMavenLocal
</code></pre>
<p style="text-align: center">
<script type="text/javascript" src="http://www.ohloh.net/p/711058/widgets/project_thin_badge.js"></script>
</p>
</p>
<hr />
</div>
</div>
<footer>
<span class="ribbon-outer">
<span class="ribbon-inner">
<p>this project by <a href="https://github.com/Codearte" shape="rect">Codearte</a> can be found on <a href="https://github.com/Codearte/fairyland" shape="rect">GitHub</a></p>
</span>
<span class="left-tail"></span>
<span class="right-tail"></span>
</span>
<p>Generated with <a href="http://jbake.org" shape="rect">jBake.org</a> using Me2rlot</p>
<span class="octocat"></span>
</footer>
<script type="text/javascript" xml:space="preserve">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55892824-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>