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
// | |
// Extensions.swift | |
// driversLicenceReader | |
// | |
// Created by treastrain on 2019/12/06. | |
// Copyright © 2019 treastrain / Tanaka Ryoga. All rights reserved. | |
// | |
import Foundation |
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
// | |
// ViewController.swift | |
// emoneyReader | |
// | |
// Created by treastrain on 2019/12/11. | |
// Copyright © 2019 treastrain / Tanaka Ryoga. All rights reserved. | |
// | |
import UIKit | |
import CoreNFC |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"cjrc_area_code" : null, | |
"cjrc_station_code" : null, | |
"cjrc_station_code_hex_str" : null, | |
"crjc_source" : null, | |
"crjc_source_url" : null, | |
"geo_json" : { | |
"geometry" : { | |
"coordinates" : [ |
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
// Created by treastrain on 2020/07/08. | |
// Copyright © 2020 treastrain / Tanaka Ryoga. All rights reserved. | |
// | |
/// 1. プロジェクトの TARGET から開発している iOS Application を選び、Signing & Capabilities で Near Field Communication Tag Reading を有効にする(Near Field Communication Tag Reader Session Formats が entitlements ファイルに含まれている必要がある)。 | |
/// 2. Near Field Communication Tag Reader Session Formats の中に "NFC tag-specific data protocol (TAG)" が含まれていることを確認する。 | |
/// 3. 開発している iOS Application の Info.plist に "Privacy - NFC Scan Usage Description (NFCReaderUsageDescription)" を追加する。 | |
/// 4. 開発している iOS Application の Info.plist に "ISO18092 system codes for NFC Tag Reader Session (com.apple.developer.nfc.readersession.felica.systemcodes)" を追加し、読み取る際に使用する FeliCa システムコード `0003` を記述する。 | |
import UIKit | |
import CoreNFC |
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 Foundation | |
import SwiftyGPIO | |
print("Hello, happy world!") | |
let gpios = SwiftyGPIO.GPIOs(for: .RaspberryPi4) | |
let port_white = gpios[.P24]! | |
let port_red = gpios[.P22]! | |
let port_yellow = gpios[.P23]! |
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
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/usr/local/include/opencv4" | |
], | |
"defines": [], | |
"compilerPath": "/usr/bin/clang", |
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
attributes: | |
ORGANIZATIONNAME: treastrain / Tanaka Ryoga | |
name: JapanNFCReader | |
configs: | |
Debug: debug | |
Release: release | |
settings: |
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
treastrain@raspberrypi:~/Developer/Libraries/swift-source $ date; ./swift/utils/build-script --release; date | |
2020年 12月 25日 金曜日 19:38:22 JST | |
[./swift/utils/build-script] NOTE: Using toolchain default | |
+ cmake --version | |
+ mkdir -p /home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert | |
Building the standard library for: swift-test-stdlib-linux-armv7 | |
+ /usr/local/bin/cmake --build /home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert/cmark-linux-armv7 -- -j4 all | |
ninja: no work to do. | |
symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert/llvm-linux-armv7/include). | |
+ ln -s -f /usr/include/c++ /home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert/llvm-linux-armv7/include |
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
$ date; ./swift/utils/build-script --release; date | |
2020年 12月 26日 土曜日 00:54:58 JST | |
[./swift/utils/build-script] NOTE: Using toolchain default | |
+ cmake --version | |
+ mkdir -p /home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert | |
Building the standard library for: swift-test-stdlib-linux-armv7 | |
+ /usr/local/bin/cmake --build /home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert/cmark-linux-armv7 -- -j4 all | |
ninja: no work to do. | |
symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert/llvm-linux-armv7/include). | |
+ ln -s -f /usr/include/c++ /home/treastrain/Developer/Libraries/swift-source/build/Ninja-ReleaseAssert/llvm-linux-armv7/include |
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
#include <iostream> | |
int main(int, char**) { | |
#if __cplusplus > 199711L | |
system("uname -a"); | |
#endif | |
// コンパイラの判定 | |
#ifdef __clang_version__ |
OlderNewer