Skip to content

Instantly share code, notes, and snippets.

@dmitry-markin
dmitry-markin / QUICKSTART.md
Last active June 26, 2024 15:02
polkadot-sdk dev quick start guide Ubuntu 24.04

polkadot-sdk dev quick start guide for Ubuntu 24.04

System packages

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")
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created June 26, 2024 14:58
Rimworld output log published using HugsLib
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)
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
@Dragon863
Dragon863 / style.css
Created June 26, 2024 14:54
CSS uploaded by scrapbook.hackclub.com/customizer
.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;
}
@ahmtcn123
ahmtcn123 / frameBuffer.html
Last active June 26, 2024 14:53
A Pixel density scaleable framebuffer implementation in js canvas
<!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 {
@rajivmehtaflex
rajivmehtaflex / Abacus.ai.txt
Created June 26, 2024 14:52
Abacus AI References.
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
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""")
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