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
# 任意のProduct Nameに置き換える(Targetも同様) | |
name: FooProduct | |
options: | |
bundleIdPrefix: com.example | |
deploymentTarget: | |
iOS: 15.0 | |
xcodeVersion: "13.1" | |
settings: |
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
//@targetEngine "fooo" | |
(function () { | |
main(); | |
})(); | |
function main() { | |
var controls = {}; | |
var dialog = new Window("dialog"); |
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 | |
@objc protocol AlertControllerDelegate: class { | |
func alertController(_ alert: UIAlertController, tappedIndex: Int) -> Void | |
} | |
private var DelegateKey: UInt8 = 0 | |
private var TagKey: UInt8 = 0 | |
extension UIAlertController { |
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
// | |
// ViewController.swift | |
// Price | |
// | |
// Created by macneko on 2018/09/07. | |
// Copyright © 2018年 macneko. All rights reserved. | |
// | |
import UIKit |
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
var palette = new Window('palette', 'colorChanger'); | |
var lists = [], buttons = []; | |
(function () { | |
var titles = ['塗り:', '線 :']; | |
var selectListItems = ['変更しない', 'シアン←→マゼンタ', 'シアン←→イエロー', 'マゼンタ←→イエロー']; | |
var buttonTitles = ['キャンセル', 'OK']; | |
palette.add('staticText', undefined, 'CMYK版を入れ替えるJavaScript'); | |
var listContainer = palette.add('group', undefined); | |
listContainer.alignChildren = ['fill', 'center']; |
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 | |
final class SampleOperation: Operation { | |
let message: String | |
init(message: String) { | |
self.message = message | |
} | |
override func main() { |
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 Cocoa | |
/// ファイルを指定されたバイト数分ずつ読み込む | |
final class StreamReader: NSObject, StreamDelegate { | |
let maxLength: Int | |
let inputStream: InputStream? | |
var readedAction: (Versions) -> Void = { _ in } | |
var createVersion = "" | |
var saveVersion = "" |
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 Cocoa | |
final class Reader { | |
let fileUrl: URL | |
var data: Data? | |
init(filePath: String) { | |
fileUrl = URL(fileURLWithPath: filePath) | |
} |
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
// sample movie: https://user-images.githubusercontent.com/5406126/49324964-f631aa80-f57c-11e8-9199-0ab51231422c.gif | |
main(); | |
function main() { | |
// 関数定義 | |
function applyFontToStory(targetFont) { |
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 WatchKit | |
import Foundation | |
class InterfaceController: WKInterfaceController { | |
@IBOutlet var notEndlessLabel: WKInterfaceLabel! | |
@IBOutlet var endlessLabel: WKInterfaceLabel! | |
override func awake(withContext context: Any?) { | |
super.awake(withContext: context) |
NewerOlder