| name | title | description | tags | created | updated | |||||
|---|---|---|---|---|---|---|---|---|---|---|
oenclaw-opencode |
SKILL |
Use when user wants to submit development tasks; involves starting opencode server, creating sessions, submitting async prompts, and sending completion notifications |
|
2026-02-14 10:39:39 -0800 |
2026-02-14 13:32:14 -0800 |
This file contains hidden or 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
| module.exports = async (params) => { | |
| const { quickAddApi: { inputPrompt }, app } = params; | |
| const adapter = app.vault.adapter; | |
| // 配置常量 | |
| const CONFIG = { | |
| SOURCE_FOLDER: "未归档/MyBrain", | |
| IMPORT_BASE: "未归档/已导入", | |
| SUB_FOLDERS: { | |
| NOTES: "notes", |
This file contains hidden or 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
| // Updated: Aug. 20, 2024 | |
| // Run: node testRegex.js whatever.txt | |
| // Live demo: https://jina.ai/tokenizer | |
| // LICENSE: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0) | |
| // COPYRIGHT: Jina AI | |
| const fs = require('fs'); | |
| const util = require('util'); | |
| // Define variables for magic numbers | |
| const MAX_HEADING_LENGTH = 7; |
This file contains hidden or 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 time | |
| import logging | |
| # 位数 | |
| WORKER_ID_BITS = 5 | |
| DATA_CENTER_ID_BITS = 5 | |
| SEQUENCE_BITS = 12 | |
| TIMESTAMP_EPOCH = 1288834974657 | |
| # 0-31 |
This file contains hidden or 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
| 2021-10-09 09:06:10.974 [flink-akka.actor.default-dispatcher-4] INFO org.apache.flink.kubernetes.KubernetesResourceManagerDriver - Recovered 0 pods from previous attempts, current attempt id is 1. | |
| 2021-10-09 09:06:10.975 [flink-akka.actor.default-dispatcher-4] INFO o.a.f.runtime.resourcemanager.active.ActiveResourceManager - Recovered 0 workers from previous attempt. | |
| 2021-10-09 09:06:10.977 [flink-akka.actor.default-dispatcher-4] INFO o.a.f.runtime.resourcemanager.active.ActiveResourceManager - ResourceManager akka.tcp://flink@flinkx-demo.dboard:6123/user/rpc/resourcemanager_0 was granted leadership with fencing token 00000000000000000000000000000000 | |
| 2021-10-09 09:06:10.981 [flink-akka.actor.default-dispatcher-4] INFO o.a.f.runtime.resourcemanager.slotmanager.SlotManagerImpl - Starting the SlotManager. | |
| 2021-10-09 09:06:11.181 [flink-akka.actor.default-dispatcher-5] INFO com.dtstack.flinkx.util.DataSyncFactoryUtil - load flinkx plugin hdfsreader:com.dtstack.flinkx.connector.hd |
This file contains hidden or 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
| library(optparse) | |
| # Rscript test.r --in.csv1 data/mock.csv --in.csv2 data/mock.csv --out.csv1 data/out.csv | |
| # read param | |
| option_list <- list( | |
| make_option(c("-i", "--in.csv1"), type = "character", default = "", action = "store", help = "This is first!"), | |
| make_option(c("-f", "--in.csv2"), type = "character", default = "", action = "store", help = "This is first!"), | |
| make_option(c("-t", "--out.csv1"), type = "character", default = "", action = "store", help = "This is first!") | |
| ) |
This file contains hidden or 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
| print("do klist") | |
| os.system("klist") | |
| krb5 = os.getenv("KRB5_CONFIG") | |
| print("get krb5: {}".format(krb5)) | |
| if os.getenv("KRB5_CONFIG") is not None: | |
| keytab = os.getenv("KEYTAB") | |
| principal = os.getenv("PRINCIPAL") | |
| kinit_cmd = "env KRB5_CONFIG={} kinit -kt {} {}".format(krb5, keytab, principal) | |
| print("do kinit: {}".format(kinit_cmd)) | |
| os.system(kinit_cmd) |
This file contains hidden or 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
| def _test_spark_udtf(self): | |
| """ | |
| # source | |
| root | |
| |-- id: long (nullable = true) | |
| |-- title: string (nullable = true) | |
| |-- abstract: string (nullable = true) | |
| |-- content: string (nullable = true) | |
| |-- else: string (nullable = true) |
NewerOlder