var stdAlert = StdAlert(self)
print("Alert Title\nAlert Body", &stdAlert)Place this code in your view controller.
| class SwiftFormat < Formula | |
| desc "Formatting technology for Swift source code" | |
| homepage "https://github.com/apple/swift-format" | |
| url "https://github.com/apple/swift-format.git", :branch => "swift-5.1-branch" | |
| head "https://github.com/apple/swift-format.git" | |
| depends_on :xcode => ["11.0", :build] | |
| def install | |
| system "swift", "build", "--configuration", "release", |
| diff --git a/SelfSizingAutoLayoutCell/SelfSizingAutoLayoutCell.m b/SelfSizingAutoLayoutCell/SelfSizingAutoLayoutCell.m | |
| index 0acbbe5..db816f3 100644 | |
| --- a/SelfSizingAutoLayoutCell/SelfSizingAutoLayoutCell.m | |
| +++ b/SelfSizingAutoLayoutCell/SelfSizingAutoLayoutCell.m | |
| @@ -47,7 +47,9 @@ NS_ASSUME_NONNULL_BEGIN | |
| [constraints addObject:[autolayoutView.topAnchor constraintEqualToAnchor:self.contentView.topAnchor constant:10.0]]; | |
| [constraints addObject:[autolayoutView.leadingAnchor constraintEqualToAnchor:self.contentView.leadingAnchor constant:10.0]]; | |
| [constraints addObject:[self.contentView.trailingAnchor constraintEqualToAnchor:autolayoutView.trailingAnchor constant:10.0]]; | |
| - [constraints addObject:[self.contentView.bottomAnchor constraintEqualToAnchor:autolayoutView.bottomAnchor constant:10.0]]; | |
| + NSLayoutConstraint *constraint = [self.contentView.bottomAnchor constraintEqualToAnchor:autolayoutView.bottomAnchor constant:10.0]; |
| function reorder() | |
| { | |
| var lastPage = this.numPages - 1; | |
| for (var i = 0; i <= lastPage; ++i) { | |
| this.movePage(0, lastPage - i); | |
| } | |
| } | |
| reorder(); |
| こんにちは |
| package main | |
| import ( | |
| "math" | |
| "code.google.com/p/go-tour/pic" | |
| ) | |
| func Pic(dx, dy int) [][]uint8 { | |
| pic := make([][]uint8, dy) | |
| for y := range pic { |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import fontforge | |
| import argparse | |
| def remove_empty_glyphs(input, output): | |
| font = fontforge.open(input) | |
| code_points = [] |
| #!/usr/bin/env python | |
| import urllib2 | |
| import json | |
| import sys | |
| import time | |
| import multiprocessing | |
| from cookielib import CookieJar | |
| from urllib import urlencode | |
| ### Other 3rd party functions |
| #!/usr/bin/env ruby | |
| # coding: utf-8 | |
| puts ARGV.join(' ').split(//).collect { |s| 'U+%04X' % s.unpack('U')[0] }.join(' ') |