Skip to content

Instantly share code, notes, and snippets.

View ttt50966's full-sized avatar
🌊

Kuan-Chia Chiu ttt50966

🌊
  • Taipei, Taiwan
View GitHub Profile
// 定義 API 網址
let url = "https://mainnet-node.like.co/likechain/likenft/v1/ranking";
// 取得使用者設定的天數(預設為 2 天)
let daysAgo = args.widgetParameter || 2;
// 設定顯示的最大項目數
let maxItems = 10;
// 準備 API 請求的 URL
@ttt50966
ttt50966 / Pay.py
Last active January 4, 2024 08:00
import sys
import datetime
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
def login(browser, username, password):
/*
Author: Kuàn-ka
This is a LikeCoin chain script for monitoring node status.
Please dowonload the app below first
https://apps.apple.com/tw/app/scriptable/id1405459188
background credit: @slothlife@liker.social
*/
let address = args.widgetParameter;
if (address == null) {address = "cosmosvaloper1fdpmw3k73asq89gt0qvf9j97pgg2kapkk99yl2"}
//Author: Kuàn-ka
//This is a "LikeCoin" script for Scriptable
//Please dowonload the app below first
//https://apps.apple.com/tw/app/scriptable/id1405459188
digits = 3
likecoin_ntd_url = "https://api.coingecko.com/api/v3/simple/price?ids=likecoin&vs_currencies=twd"
let r = new Request(likecoin_ntd_url)
let ntd_json = await r.loadJSON()
likecoin_hkd_url = "https://api.coingecko.com/api/v3/simple/price?ids=likecoin&vs_currencies=hkd"
//Author: Kuàn-ka
//This is a "LikeCoin" script for Scriptable
//Please dowonload the app below first
//https://apps.apple.com/tw/app/scriptable/id1405459188
let address = args.widgetParameter;
if (address == null) {address = "cosmos1eu6qpj8xu820mjsvq37f7gv4jn8xj8egalpkcp"}
let units = 1000000000 //預設單位為 nanolike 所以乘以10^9
let digits = 3 //顯示小數點後幾位
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.