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
@Composable | |
fun MixedSuffixAndEllipsisText( | |
text: String, | |
suffix: String, | |
) { | |
Row(modifier = Modifier.padding(all = 10.dp) | |
) { | |
Text( | |
text = text, | |
maxLines = 1, |
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 PlaygroundSupport | |
import SwiftUI | |
struct Home: View { | |
var body: some View { | |
Text("Hello, world!") | |
} | |
} | |
let viewController = UIHostingController(rootView: Home()) |
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
// AudioServicesPlaySystemSound | |
// https://developer.apple.com/documentation/audiotoolbox/1405248-audioservicesplaysystemsound | |
import AudioToolbox | |
// A list of SystemSoundID | |
// http://iphonedevwiki.net/index.php/AudioServices | |
// | |
AudioServicesPlaySystemSound(1000) |
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
@implementation AnyManager | |
+ (instancetype)sharedManager { | |
static AnyManager *_sharedManager = nil; | |
static dispatch_once_t oncePredicate; | |
dispatch_once(&oncePredicate, ^{ | |
_sharedManager = [[self alloc] init]; | |
}); | |
return _sharedManager; |
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
flutter create --org io.github.ykws appname |
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
File.open(ARGV[0], 'r') do |file| | |
puts file.read | |
end |
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
File.open(ARGV[0], 'r') {|file| puts file.read} |
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
<?php | |
/** | |
* [ 概要 ] | |
* スパイラルのAPIを使ったサンプルプログラムです。 | |
* | |
* [ サンプルで行う事 ] | |
* - データベースの検索、レコード更新、レコード削除 | |
* | |
* UTF8で保存してください。 |
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
<?php | |
/** | |
* [ サンプルで行う事 ] | |
* - APIを利用するためのURLを取得する | |
* | |
* [サンプルを動かすための準備] | |
* PHPにcurlライブラリが組み込まれている必要があります。 | |
* 参考:http://www.php.net/manual/ja/intro.curl.php | |
*/ |
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 | |
class ActionSheetDemoViewController: UIViewController { | |
@IBAction func showDatePicker(_ sender: UIButton) { | |
guard let actionSheetDatePicker = ActionSheetDatePicker.init(title: "Set date", datePickerMode: .date, selectedDate: Date(), doneBlock: { | |
picker, value, index in | |
/* doneBlock */ | |
}, cancel: { ActionDateCancelBlock in return }, origin: sender.superview!.superview) else { | |
return |
NewerOlder