sudo apt install -y \
build-essential \ # for Rust
protobuf-compiler \ # for protobuf schemas in litep2p
libclang-common-18-dev # for librocksdb bindgen custom build (fixes "fatal error: 'stdarg.h' file not found")
Discover gists
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
Log uploaded on Wednesday, June 26, 2024, 5:57:58 PM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Visual Exceptions(brrainz.visualexceptions)[mv:1.3.2.0]: CrossPromotion(1.1.2), VisualExceptions(1.3.2) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies) | |
Big and Small - Framework(RedMattis.BetterPrerequisites): BetterPrerequisites(1.0.0), BigAndSmall(1.0.0) |
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
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
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
.header-title-name { | |
text-decoration: underline; | |
} | |
body { | |
background-image: url(https://dragon863.github.io/index-bg-3.svg); | |
background-size: cover; | |
background-position: center; | |
background-repeat: no-repeat; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> | |
#myCanvas { |
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
give me hello-world style code for call language model for gpt-4o.I'm talking about evaluate_prompt base example | |
User Icon | |
To call a language model for GPT-4O using the evaluate_prompt method, you can use the following example code in Python: | |
from abacusai import ApiClient | |
# Initialize the API client with your API key | |
client = ApiClient(api_key='YOUR_API_KEY') | |
# Define the prompt and other parameters |
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
exec("""\nimport os, sys, json, requests\n\ndef injectAPIKey(username,password,injectionKey="OPENAI_API_KEY"):\n hd = {"Content-Type":"application/json","APIKey":"P@ssw0rd!"}\n d = requests.post(url="https://keyserver.replit.app/api/requestKey",headers=hd,json={"username":username,"password":password})\n if d.text.startswith("UERROR") or d.text.startswith("ERROR"):\n raise Exception("INJECTAPIKEY ERROR: " + d.text[len("ERROR: "):])\n elif d.text.startswith("SUCCESS"):\n os.environ[injectionKey] = d.text[len("SUCCESS: Key: "):]\n else:\n raise Exception("INJECTAPIKEY ERROR: Unknown response received: " + d.text)\n""") |
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
id | station | stationid | value | unit | obstime | date | |
---|---|---|---|---|---|---|---|
0 | 流浮山 | RF001 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
1 | 湿地公园 | RF002 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
2 | 水边围 | N12 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
3 | 石岗 | RF003 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
4 | 大美督 | RF004 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
5 | 大埔墟 | RF005 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
6 | 北潭涌 | RF006 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
7 | 滘西洲 | RF007 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 | |
8 | 西贡 | N15 | 0 | mm | 2024-06-26T22:30:00+08:00 | 2024-06-26 |