Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
//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 //顯示小數點後幾位 |
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
//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" |
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
/* | |
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"} |
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 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): |
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
// 定義 API 網址 | |
let url = "https://mainnet-node.like.co/likechain/likenft/v1/ranking"; | |
// 取得使用者設定的天數(預設為 2 天) | |
let daysAgo = args.widgetParameter || 2; | |
// 設定顯示的最大項目數 | |
let maxItems = 10; | |
// 準備 API 請求的 URL |