Name Aliases Description
bigint int8 signed eight-byte integer
bigserial serial8 autoincrementing eight-byte integer
bit [ (n) ] fixed-length bit string
bit varying ... variable-length bit string (... = [ (n) ] varbit [ (n) ])
boolean bool logical Boolean (true/false)
This file contains hidden or 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 | |
| // Put the Codility test question in here | |
| public func solution(_ A : inout [Int]) -> Int { | |
| // write your code in Swift 4.2.1 (Linux) | |
| // Answer return | |
| return 1 | |
| } |
This file contains hidden or 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
| //Other routes here | |
| app.get('*', function(req, res){ | |
| res.send('Sorry, this is an invalid URL.'); | |
| }); |
This file contains hidden or 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
| public class InvocationClass : MonoBehavior { | |
| public UnityEventGameObject OnClick; | |
| void someMethod() { | |
| OnClick.Invoke(this.gameObject); | |
| } | |
| } |
This file contains hidden or 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
| float interval = 1.0f; | |
| totalTime += Time.delta; | |
| float val = (totalTime / interval) % 1f; |
This file contains hidden or 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
| { | |
| ... | |
| public static ExampleManager getManager() | |
| { | |
| GameObject ret = GameObject.Find("ExampleManager"); | |
| return ret.GetComponent<ExampleManager>(); | |
| } | |
| } |
This file contains hidden or 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
| var states = ["Alabama", | |
| "Alaska", | |
| "Arizona", | |
| "Arkansas", | |
| "California", | |
| "Colorado", | |
| "Connecticut", | |
| "Delaware", | |
| "Florida", | |
| "Georgia", |
This file contains hidden or 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
| let globalDateFormatter : DateFormatter = { | |
| let df = DateFormatter() | |
| df.dateFormat = "MMMM d, yyyy" | |
| return df | |
| }() | |
| extension Date { | |
| static func fromString(_ source : String) -> Date? { | |
This file contains hidden or 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
| let string_id = UUID().uuidString |
This file contains hidden or 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 MessageUI | |
| extension UIViewController : MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate, UINavigationControllerDelegate { | |
| func sendEmail(_ to: [String], defaultSubject: String, defaultBody: String, _ completion : ((_ result: MFMailComposeResult) -> Void)? = nil) { | |
| if MFMailComposeViewController.canSendMail() { | |
| let mail = MFMailComposeViewController() | |
| mail.mailComposeDelegate = self | |
| mail.setToRecipients(to) |