Skip to content

Instantly share code, notes, and snippets.

View qoli's full-sized avatar

Ronnie W. qoli

View GitHub Profile
@qoli
qoli / exportAll.sh
Created January 22, 2024 09:08
flutter package with Xcode
#!/bin/zsh
function buildTest() {
clear
cp -rf ./lib/common/config_test.txt ./lib/common/config.dart
EX_FOLDER="app-test"
cat ./lib/common/config.dart
echo "// ==="
buildiOS
buildAndroid
//
// ScrollView.swift
// SyncNext
//
// Created by 黃佁媛 on 2023/9/25.
//
import Foundation
import SwiftUI
@qoli
qoli / simulator-input.py
Created October 11, 2023 09:58
允許粘貼板或其他方式快捷輸入 tvOS 模擬器
#!/usr/bin/env python3
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Simulator Input
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ⌨️
# @raycast.argument1 { "type": "text", "placeholder": "Placeholder" }
#!/bin/bash
# 請確保你已經先安裝了 Xcode Command Line Tools
# 檢查參數是否提供新版本號
if [ -z "$1" ]; then
echo "請提供新版本號作為腳本參數。"
exit 1
fi
@qoli
qoli / VOD.json
Created November 2, 2022 02:35
VOD.json
{
"uuid": "e24b4542-ce5d-4625-b2cb-e40429945328",
"json": [
{
"type": 1,
"name": "if101[屏蔽国内ip]",
"api": "http://api.if101.tv/v1/vod"
},
{
"type": 0,
@qoli
qoli / opensea.swift
Last active October 25, 2022 02:56
opensea
//
// ContentView.swift
// testOS
//
// Created by 黃佁媛 on 2022/10/25.
//
import Alamofire
import SwiftUI
## Request (5)
curl -X "POST" "https://opensea.io/__api/graphql/" \
-H 'x-signed-query: 4c578ad5abb64c3806c94e11edd134d718c0be73d27d82d7dd9b2a1644144d39' \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Cookie: __cf_bm=hH6R_WQgUjOT9_FpqlX5bCvn42ZCRQqXDlLkSsaqSCI-1666661256-0-ATInQGufe13+DxE4KEEo4YwRpn9yM4m3VX0zlzwhHKHEgLka+dYGFDv1CrwyuaFP8QWa8JdJ6QAYyj7nPdznYRQ=' \
-d $'{
"id": "RankingsPageTopPaginationQuery",
"query": "query RankingsPageTopPaginationQuery(\\n $chain: [ChainScalar!]\\n $count: Int\\n $createdAfter: DateTime\\n $cursor: String\\n $includeAllTimeStats: Boolean!\\n $includeOneDayStats: Boolean!\\n $includeOneHourStats: Boolean!\\n $includeSevenDayStats: Boolean!\\n $includeSixHourStats: Boolean!\\n $includeThirtyDayStats: Boolean!\\n $parents: [CollectionSlug!]\\n $sortBy: CollectionSort\\n) {\\n ...RankingsPageTop_data\\n}\\n\\nfragment RankingsPageTop_data on Query {\\n rankings(after: $cursor, chains: $chain, first: $count, sortBy: $sortBy, par
@qoli
qoli / exportAll.sh
Created April 21, 2022 03:11
exportAll.sh
#!/bin/zsh
function buildTest() {
clear
cp -rf ./lib/common/config_test.txt ./lib/common/config.dart
EX_FOLDER="app-test"
cat ./lib/common/config.dart
echo "// ==="
buildiOS
buildAndroid
@qoli
qoli / sendMessage.swift
Created February 14, 2022 07:03
discord sendMessage
func sendMessage(type: String, title: String, text: String) async {
let messageHost: String = "https://discord.com/api/webhooks/.../..."
let sysVersion = await UIDevice.current.systemVersion
let urlParams = [
"content": "[Syncnext tvOS] \r\(await UIDevice.current.name) · \(sysVersion) \r- \(type) \r- \(title) \r- \(text)\n\r",
]
let headers = [
"Content-Type": "application/json; charset=utf-8",
]
@qoli
qoli / modification.swift
Created December 17, 2021 01:01
modification.swift
//
// modification.swift
// Nomad
//
// Created by 黃佁媛 on 2021/12/17.
//
import Foundation
import SwiftUI