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
#!/bin/sh | |
if [ $# = 1 ]; then | |
echo $(/usr/libexec/PlistBuddy -c 'Print DVTPlugInCompatibilityUUID' "/Applications/$1/Contents/Info.plist") | |
else | |
echo $(/usr/libexec/PlistBuddy -c 'Print DVTPlugInCompatibilityUUID' "/Applications/Xcode.app/Contents/Info.plist") | |
fi |
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
name: ApplicationName | |
options: | |
bundleIdPrefix: jp.kichiemon | |
targets: | |
ApplicationName: | |
type: application | |
platform: iOS | |
deploymentTarget: "13.0" | |
sources: | |
- path: ApplicationName |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>$(DEVELOPMENT_LANGUAGE)</string> | |
<key>CFBundleExecutable</key> | |
<string>$(EXECUTABLE_NAME)</string> | |
<key>CFBundleIdentifier</key> | |
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<!-- 言語設定:既定の言語・地域を言語IDで指定する。デフォルトは、en-US が設定されている。e.g. ja_JP --> | |
<!-- The default language and region for the bundle, as a language ID. --> | |
<!-- https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundledevelopmentregion --> | |
<!-- | |
For a language used in many regions, use a code that represents a language designator. | |
To specify English, use the en language designator. |
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
xcrun swift -version |
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
extension UIView { | |
func drawCircle() { | |
let circlePath = UIBezierPath(ovalIn: self.bounds) | |
let circleShape = CAShapeLayer(layer: self.layer) | |
circleShape.frame = self.bounds | |
circleShape.path = circlePath.cgPath | |
circleShape.strokeColor = ColorName.primary.color.cgColor | |
circleShape.fillColor = Color.clear.cgColor | |
circleShape.lineWidth = 0.8 |
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
#if targetEnvironment(simulator) | |
// iOS simulator code | |
#endif |
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
CATransaction.begin() | |
CATransaction.setCompletionBlock { [weak self] () in | |
self?.tableView.reloadData() | |
} | |
self.data = data | |
CATransaction.commit() |
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
# curl rawURL -O | |
SHELL := /bin/bash | |
.PHONY: all | |
define setup_gem | |
bundle init | |
chmod +w Gemfile | |
echo "gem 'fastlane'" >> Gemfile |
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 | |
protocol PinterestLayoutDelegate: class { | |
func collectionView(_ collectionView:UICollectionView, heightForPhotoAtIndexPath indexPath:IndexPath) -> CGFloat | |
} | |
class PinterestLayout: UICollectionViewLayout { | |
fileprivate var numberOfColumns = 2 | |
fileprivate var cellPadding: CGFloat = 6 |