-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from lukaskubanek/swift-4
Swift 4
- Loading branch information
Showing
10 changed files
with
245 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Copyright (c) 2014 Lukas Kubanek. | ||
Copyright (c) 2014-2017 Lukas Kubanek. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,37 @@ | ||
// | ||
// __ _____ _ ______ | ||
// / / ____ ________ ____ ___ / ___/ __(_) __/ /___ ______ ___ | ||
// / / / __ \/ ___/ _ \/ __ `__ \\__ \ | /| / / / /_/ __/ / / / __ `__ \ | ||
// / /___/ /_/ / / / __/ / / / / /__/ / |/ |/ / / __/ /_/ /_/ / / / / / / | ||
// /_____/\____/_/ \___/_/ /_/ /_/____/|__/|__/_/_/ \__/\__,_/_/ /_/ /_/ | ||
// | ||
// LoremSwiftum.playground | ||
// http://github.com/lukaskubanek/LoremSwiftum | ||
// 2014-2015 (c) Lukas Kubanek (http://lukaskubanek.com) | ||
// | ||
|
||
import LoremSwiftum | ||
|
||
// ======================================================= // | ||
// Texts | ||
// ======================================================= // | ||
Lorem.word | ||
// => One random word | ||
|
||
Lorem.words(3) | ||
// => Three random words | ||
|
||
Lorem.sentence | ||
// => One random sentence | ||
|
||
Lorem.sentences(3) | ||
// => Three random sentences | ||
|
||
let word = Lorem.word | ||
let words0 = Lorem.words(0) | ||
let words1 = Lorem.words(1) | ||
let words5 = Lorem.words(5) | ||
Lorem.paragraph | ||
// => One random paragraph | ||
|
||
let sentence = Lorem.sentence | ||
let sentences0 = Lorem.sentences(0) | ||
let sentences1 = Lorem.sentences(1) | ||
let sentences5 = Lorem.sentences(5) | ||
Lorem.paragraphs(3) | ||
// => Three random paragraphs | ||
|
||
let paragraph = Lorem.paragraph | ||
let paragraphs0 = Lorem.paragraphs(0) | ||
let paragraphs1 = Lorem.paragraphs(1) | ||
let paragraphs5 = Lorem.paragraphs(5) | ||
Lorem.title | ||
// => A random title | ||
|
||
let title = Lorem.title | ||
Lorem.firstName | ||
// => A random first name | ||
|
||
// ======================================================= // | ||
// Misc Data | ||
// ======================================================= // | ||
Lorem.lastName | ||
// => A random last name | ||
|
||
let name = Lorem.name | ||
let firstName = Lorem.firstName | ||
let lastName = Lorem.lastName | ||
Lorem.fullName | ||
// => A random full name | ||
|
||
let email = Lorem.email | ||
let url = Lorem.URL | ||
let tweet = Lorem.tweet | ||
Lorem.emailAddress | ||
// => A random email address | ||
|
||
let date = Lorem.date | ||
Lorem.tweet | ||
// => A random tweet |
4 changes: 4 additions & 0 deletions
4
Playgrounds/LoremSwiftum.playground/playground.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.