Skip to content

Instantly share code, notes, and snippets.

View 9Dave9's full-sized avatar
🍸
Bartender...Moonshots all round please!

David 9Dave9

🍸
Bartender...Moonshots all round please!
View GitHub Profile
(function() {
'use strict';
// map viewport dimensions
var width = 460,
height = 650;
// create a scale of colours for each party, so we can map results to constituency segments
var quantize = d3.scale.quantize()
.domain([1, 11])
@9Dave9
9Dave9 / gist:2ad73f8de7ee7893dc8d179872319b3d
Created December 10, 2025 17:25
Versions http response
{
"items": [
{
"alerts": [],
"collection_id": "cmdweeklydeathsbyregion-4c59ec99571265d18ea4812ce6663bdf22f9030a27463fc77c59134ab470ef51",
"dataset_id": "weekly-deaths-region",
"dimensions": [
{
"label": "Time",
"links": {
@9Dave9
9Dave9 / gist:73b76682330368f065548c07ed4514bb
Created December 10, 2025 02:10
Options from dimensions - to get human readable locations instead of codes
{
"items": [
{
"label": "England",
"links": {
"code": {
"href": "https://api.beta.ons.gov.uk/v1/code-lists/administrative-geography/codes/E92000001",
"id": "E92000001"
},
"code_list": {
{
"items": [
{
"edition": "dummy_edition_1",
"id": "dummy_id_1",
"links": {
"dataset": {
"href": "https://example.com/dummy/dataset",
"id": "dummy_dataset"
},
@9Dave9
9Dave9 / gist:768eac02ad25bf04ed13b48bb4533e0e
Last active December 9, 2025 20:37
Dimensions response example
{
"items": [
{
"label": "dummy_label_1",
"links": {
"code_list": {
"href": "https://example.com/dummy/code-list-1",
"id": "dummy_code_list_1"
},
"options": {
@9Dave9
9Dave9 / gist:f005329592cd3de0248bd9a2fbc4ed02
Created December 6, 2025 13:06
latest version view response
{
"alerts": [],
"collection_id": "cmdwellbeingquarterly-db828f15ada89418dd4a42b7f5f5d23ec7fcb5f8fc7715abbea8a5091fdbf3e3",
"dimensions": [
{
"label": "Time",
"links": {
"code_list": {},
"options": {},
"version": {}
{
"openapi": "3.1.0",
"info": {
"title": "Gradio PaddleOCR Text Extraction API",
"description": "\n# PaddleOCR Text Extraction API\n\nA comprehensive web application for extracting text from images using PaddleOCR with AI-powered text cleanup.\n\n## Features\n\n* **Single Image Processing**: Extract text from individual images with column-based reading order\n* **Batch Processing**: Process entire folders of images in parallel\n* **AI-Powered Cleanup**: Automatic text correction using Ollama (dolphin3 model)\n* **Debug Tools**: Detailed OCR process visualization and analysis\n* **Playlists**: AI-powered image collections based on OCR text content\n* **Database Persistence**: MySQL integration for storing OCR results\n\n## Supported Image Formats\n\nJPG, JPEG, PNG, BMP, TIFF, TIF, WEBP\n\n## Main Interface\n\nThis API serves a Gradio web interface at the root path (`/`) with the following tabs:\n- **Single Image**: Upload and process individual images\n- **Batch Processing**: Manage bat
https://askubuntu.com/questions/814555/i-cant-install-gdebi-package-installer
1 - - 2
| |
| |
4 - - 3
A = [
# 1 2 3 4
[0, 1, 0, 1], #1
[1, 0, 1, 0], #2
[0, 1, 0, 1], #3
[1, 0, 1, 0], #4
]