Skip to content

Instantly share code, notes, and snippets.

@cpfiffer
cpfiffer / text_to_sql.py
Created February 7, 2025 20:03
Ultra-simple text-to-SQL with Outlines, using a small subset of the SQL grammar.
import outlines
import os
from pydantic import BaseModel, Field
from transformers import AutoTokenizer
model_str = 'Qwen/Qwen2.5-7B-Instruct-1M'
model = outlines.models.transformers(
model_str,
device='cuda'
)
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 24 (Failed: 0, Cancelled 0), Incomplete: 1, Skipped: 7
[set-github-started-label : post-comment] + EXTRA_ARGS=
[set-github-started-label : post-comment] + [[ ! -z operator-release-pipeline/started ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --add-labels operator-release-pipeline/started'
[set-github-started-label : post-comment] Editing GitHub labels to PR https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/5922
[set-github-started-label : post-comment] + [[ ! -z pipeline/trigger-release ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --remove-labels pipeline/trigger-release'
[set-github-started-label : post-comment] + [[ true == \t\r\u\e ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --remove-matching-namespace-labels'
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <ChronosESP32.h>
// Button pins
#define BTN_UP 12
#define BTN_DOWN 13
@Diederikjh
Diederikjh / pingrt.sh
Created February 7, 2025 20:03
Window split output
#!/bin/bash
# use tmux to output ping and tracepath to the same address on left and right panels or windows
# Pass the argument to the two scripts
HOST=$1
tmux new-session \; split-window -h \; send-keys "ping -c 20 $HOST" C-m \; select-pane -t 0 \; send-keys "tracepath $HOST" C-m
@choco-bot
choco-bot / Install.txt
Created February 7, 2025 20:03
sunset-screen.install v1.50 - Passed - Package Tests Results
2025-02-07 20:02:08,958 5604 [DEBUG] - XmlConfiguration is now operational
2025-02-07 20:02:09,110 5604 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,110 5604 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,128 5604 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,128 5604 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,128 5604 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,140 5604 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,140 5604 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 20:02:09,140 5604 [DEBUG] - Adding new typ
Option Explicit
Sub FindCombinationOptimized()
' --- Declare all variables at the procedure level ---
Dim ws As Worksheet
Dim targetSum As Double
Dim debitCredit As String
Dim lastRow As Long
Dim accountsColl As Collection, typesColl As Collection
Dim i As Long, cellVal As Variant
1.mp4
@choco-bot
choco-bot / Install.txt
Created February 7, 2025 20:01
sunset-screen v1.50 - Passed - Package Tests Results
2025-02-07 20:00:08,421 5604 [DEBUG] - XmlConfiguration is now operational
2025-02-07 20:00:08,559 5604 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,576 5604 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,576 5604 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,576 5604 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,576 5604 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,593 5604 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,593 5604 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 20:00:08,593 5604 [DEBUG] - Adding new typ
@forkyau
forkyau / hourly_rainfall_data-2025-02-08|03-45.csv
Created February 7, 2025 20:01
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
1 湿地公园 RF002 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
2 水边围 N12 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
3 石岗 RF003 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
4 大美督 RF004 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
5 大埔墟 RF005 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
6 北潭涌 RF006 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
7 滘西洲 RF007 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
8 西贡 N15 0 mm 2025-02-08T03:45:00+08:00 2025-02-08
@rafidhoda
rafidhoda / index.html
Created February 7, 2025 20:00
Created with Learning Machines
<h1>I am beautiful 3</h1>
<button onclick="console.log(1)">neener</button>