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
# Python 获取根目录 | |
#Windows | |
import os | |
curPath = os.path.abspath(os.path.dirname(__file__)) | |
rootPath = curPath[:curPath.find("myProject\\")+len("myProject\\")] # 获取myProject,也就是项目的根路径 | |
dataPath = os.path.abspath(rootPath + 'data\\train.csv') # 获取tran.csv文件的路径 | |
#Mac | |
import os |
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
btoa(unescape(encodeURIComponent( string ))) //字符串转BASE64 | |
atob(unescape(encodeURIComponent( string ))) //BASE64转字符串 |
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
#include <algorithm> | |
#include <bitset> | |
#include <complex> | |
#include <deque> | |
#include <exception> | |
#include <fstream> | |
#include <functional> | |
#include <iomanip> | |
#include <ios> | |
#include <iosfwd> |
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
[General] | |
tab_width=4 | |
cursor_width=1 | |
geometry=@Rect(1468 225 813 600) | |
editor_font=@Variant(\0\0\0@\0\0\0\x1c\0J\0\x65\0t\0\x42\0r\0\x61\0i\0n\0s\0 \0M\0o\0n\0o@0\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) | |
use_custom_application_font=true | |
custom_application_font=@Variant(\0\0\0@\0\0\0\fe\xb9kc|\x97W\x6{\x80OS@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) | |
default_language=C++ | |
format_on_manual_save=false | |
format_on_auto_save=false |
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
#ifndef CARYON_H | |
#define CARYON_H | |
#ifndef _GLIBCXX_NO_ASSERT | |
# include <cassert> | |
#endif | |
#include <cctype> | |
#include <cerrno> | |
#include <cfloat> | |
#include <ciso646> | |
#include <climits> |
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
ffmpeg -y -f lavfi -i " | |
color=white@0.0:1700x520:d=<SECONDS>, | |
format=rgba, | |
drawtext= | |
fontcolor=black: | |
fontsize=600: | |
fontfile=<FONT>.ttf: | |
text='%{eif\:(<SECONDS>-t)/60\:d\:1}\:%{eif\:mod(<SECONDS>-t, 60)\:d\:2}': | |
x=(w-text_w)/2: | |
y=(h-text_h)/2: |
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
<artifacts_info> | |
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
# Good artifacts are... | |
- Substantial content (>15 lines) | |
- Content that the user is likely to modify, iterate on, or take ownership of | |
- Self-contained, complex content that can be understood on its own, without context from the conversation | |
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
- Content likely to be referenced or reused multiple times |
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
Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches. | |
Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex problems if needed. | |
Use <count> tags after each step to show the remaining budget. Stop when reaching 0. | |
Continuously adjust your reasoning based on intermediate results and reflections, adapting your strategy as you progress. | |
Regularly evaluate progress using <reflection> tags. Be critical and honest about your reasoning process. | |
Assign a quality score between 0.0 and 1.0 using <reward> tags after each reflection. Use this to guide your approach: | |
0.8+: Continue current approach | |
0.5-0.7: Consider minor adjustments | |
Below 0.5: Seriously consider backtracking and trying a different approach |
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
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <filesystem> // Requires C++17 | |
#include <sstream> | |
#include <stdexcept> | |
#include <algorithm> | |
#include <windows.h> // For Windows Clipboard API |
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
// ==UserScript== | |
// @name 全局脚本 - 3D视野组件 (单 Canvas v10.8 Bbox Fixed) | |
// @version 10.8 | |
// @description 实现遮挡物半透明效果,当模型包裹另一个时,外层模型自动透视,支持玩家显示开关。已优化移动端触摸支持和性能。新增并修复了bbox格式兼容。 | |
// @author Codeboy, 优化 by AI | |
// @match */* | |
// @grant none | |
// ==/UserScript== | |
(function () { |
OlderNewer