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 android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Paint | |
import android.view.View | |
import android.view.animation.Animation | |
/* How to use | |
Call as follows in an Activity | |
val circleView = CircleView(this) |
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
Function MMMDDYYY_to_DATE(datestr As String) As Date | |
Parts = Split(datestr, "/") | |
datestr = Parts(2) & "/" & Parts(0) & "/" & Parts(1) | |
MMMDDYYY_to_DATE = DateValue(datestr) | |
End Function |
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
Sub RunAllRules() | |
On Error Resume Next | |
Dim accounts As Outlook.accounts | |
Set accounts = Application.Session.accounts | |
Dim account As Outlook.account | |
rulesDone = "" | |
rulesError = "" | |
For Each account In accounts | |
rulesDone = rulesDone & account.DisplayName & "(" |
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
// | |
// Arrow.swift | |
// | |
// Created by Ken Itakura on 2024/02/29. | |
// | |
import SwiftUI | |
struct Arrow: View { | |
var start: CGPoint |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Example</title> | |
</head> | |
<body> | |
<h1>WKWebView Example</h1> | |
<p>HTML content loaded!</p> |
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
// | |
// YouTubePlayerView.swift | |
// | |
// Created by Ken Itakura on 2024/11/16. | |
// | |
import SwiftUI | |
import WebKit | |
struct YouTubePlayerView: UIViewRepresentable { |
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
// | |
// ScaledDragGesture.swift | |
// | |
// Created by Ken Itakura on 2024/12/09. | |
// | |
import SwiftUI | |
struct ScaledDragGesture: Gesture { | |
enum ScaleDirection { |
OlderNewer