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
OpenCV-Playground: | |
echo OpenCV-Playground | |
buildclang: | |
clang++ -Wall -std=c++17 -O0 \ | |
-I../Libraries/opencv/include/opencv4 -L../Libraries/opencv/lib \ | |
-lopencv_core -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs \ | |
-o OpenCV-Playground \ | |
main.cpp |
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
// | |
// ContentView.swift | |
// Shared | |
// | |
// Created by treastrain on 2021/03/03. | |
// | |
import SwiftUI | |
import Kronos |
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
// | |
// AuthenticationByTouchIDWithMacOSCommandLineTool.swift | |
// | |
// | |
// Created by treastrain on 2021/03/26. | |
// | |
import LocalAuthentication | |
let context = LAContext() |
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 | |
struct Dice { | |
private let characters = ["う", "お", "こ", "ち", "ま", "ん"].sorted() | |
func roll() -> String? { | |
return Int.random(in: 0..<5) == 0 ? nil : characters.shuffled().first | |
} | |
} |
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
// | |
// ConcurrencyNFCApp.swift | |
// ConcurrencyNFC | |
// | |
// Created by treastrain on 2021/08/28. | |
// | |
import SwiftUI | |
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
// | |
// main.swift | |
// | |
// Created by treastrain / Tanaka Ryoga on 2021/09/12. | |
// | |
// These codes are licensed under CC0. | |
// https://creativecommons.org/publicdomain/zero/1.0/deed | |
// | |
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
// | |
// NetworkPlaygroundApp.swift | |
// NetworkPlayground | |
// | |
// Created by treastrain / Tanaka Ryoga on 2021/09/28. | |
// | |
import SwiftUI | |
import Network |
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
on run {input, parameters} | |
tell application "System Events" | |
set front_app to name of (path to frontmost application) | |
end tell | |
-- display notification front_app with title "Running applications" | |
if front_app is "Safari.app" then | |
tell application "Safari" | |
set theURL to URL of front document |