Skip to content

Instantly share code, notes, and snippets.

View leeeboo's full-sized avatar

Albert Lee leeeboo

View GitHub Profile
@leeeboo
leeeboo / gist:e02f4a5086c196e7d047cca971134861
Created March 13, 2023 02:58
trans(OpenAI在前 DeepL在后)
2023/03/13 11:55:39 哎大家伙早喽 ---> Hey guys, good morning!
2023/03/13 11:55:41 哎大家伙早喽 ---> Hey guys morning hello
2023/03/13 11:55:42 3月13号星期一 ---> March 13th, Monday.
2023/03/13 11:55:43 3月13号星期一 ---> Monday, March 13th
2023/03/13 11:55:44 我的第一个训练日啊 ---> My first training day.
2023/03/13 11:55:45 我的第一个训练日啊 ---> My first training day!
2023/03/13 11:55:46 身体已经恢复的八、九成了 ---> My body has recovered about 80-90% now.
2023/03/13 11:55:47 身体已经恢复的八、九成了 ---> The body has recovered 80% or 90%
2023/03/13 11:55:48 至少所有的肌肉酸痛都没有了 ---> At least all muscle soreness is gone.
2023/03/13 11:55:49 至少所有的肌肉酸痛都没有了 ---> At least all the muscle soreness is gone
@leeeboo
leeeboo / ActivityRing2.swift
Created June 24, 2021 03:46 — forked from networkextension/ActivityRing2.swift
Final code for part 2 of the article on recreating the Apple Watch activity rings in SwiftUI. add Timer base Animation
/// Nested activity rings
struct ActivityRings: View {
var ringGap: CGFloat = 2
@State var progressMove: Double
@State var progressExercise: Double
@State var progressStand: Double
var body: some View {
ZStack{
@leeeboo
leeeboo / Ring.swift
Created June 24, 2021 03:46 — forked from networkextension/Ring.swift
SwiftUI Ring Animation AppleWatch Workout
import SwiftUI
struct ContentView: View {
@State private var showRedStroke = false
@State private var showGreenStroke = false
@State private var showBlueStroke = false
var body: some View
{
ZStack {
RadialGradient (gradient: Gradient (colors: [Color.black, Color.black]),
center: .center, startRadius: 5, endRadius: 500)
@leeeboo
leeeboo / cluster.template.yaml
Created February 22, 2018 03:44
cn-northwest-1 kops cluster config
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: $集群名称.k8s.local
spec:
api:
loadBalancer:
type: Public
authorization:
rbac: {}
@leeeboo
leeeboo / check_url.php
Created July 25, 2015 08:40
检测网址
function check_url($url) {
$data = parse_url($url);
if (empty($data['scheme']) || empty($data['host'])) {
return false;
}
$url = $data['scheme'] . '://' . $data['host'];
if(!filter_var($url, FILTER_VALIDATE_URL)) {
return false;