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
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>1.8</java.version> | |
</properties> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>1.5.2.RELEASE</version> | |
</parent> |
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
spring.datasource.url = jdbc:mysql://localhost:3306/{db name} | |
# Use your MySQL username | |
spring.datasource.username = | |
# Use your MySQL password | |
spring.datasource.password = | |
spring.datasource.initialize = false | |
spring.datasource.driver-class-name = com.mysql.jdbc.Driver | |
# Update The Existing Schema (other options include: validate, create, create-drop) |
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
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-data-jpa</artifactId> | |
</dependency> | |
<!-- Hibernate --> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-entitymanager</artifactId> | |
</dependency> |
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
import UIKit | |
import ChameleonFramework | |
class RootViewController: UIViewController { | |
@IBOutlet var myTitle: UILabel! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
myTitle.textColor = ContrastColorOf(backgroundColor: view.backgroundColor!, returnFlat: false) | |
} |
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
import UIKit | |
import ChameleonFramework | |
class RootViewController: UIViewController { | |
@IBOutlet var myTitle: UILabel! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
view.backgroundColor = GradientColor(gradientStyle: .radial, frame: view.frame, colors: [FlatBlue(), FlatPlumDark()]) | |
myTitle.textColor = ContrastColorOf(backgroundColor: view.backgroundColor!, returnFlat: false) |
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
import UIKit | |
import ChameleonFramework | |
class RootViewController: UIViewController { | |
@IBOutlet var myImage: UIImageView! | |
@IBOutlet var myTitle: UILabel! | |
@IBOutlet var myDescription: UITextView! | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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
import PackageDescription | |
let package = Package( | |
name: "swift-server", | |
dependencies: [ | |
.Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2) | |
] | |
) |
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
import PerfectLib | |
import PerfectHTTP | |
import PerfectHTTPServer | |
print("Hello, world!") |
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
import PackageDescription | |
let package = Package( | |
name: "swift-server", | |
dependencies: [ | |
.Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2), | |
.Package(url:"https://github.com/PerfectlySoft/Perfect-MySQL.git", majorVersion: 3) | |
] | |
) |
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
import PerfectLib | |
import PerfectHTTP | |
import PerfectHTTPServer | |
import PerfectMySQL | |
import Foundation | |
// You'll need to update these values based on how you've set up MySQL. | |
let host = "127.0.0.1" | |
let user = "root" | |
let password = "admin" |
OlderNewer