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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>cdim-plan — Wiki</title> | |
| <script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script> | |
| <style> |
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
| # Minimal GitHub Copilot token generator | |
| # Usage: | |
| # iex (Invoke-RestMethod -Uri 'https://gist.githubusercontent.com/dgehriger/f9fd2fc33b6642fe12da5d85f50f8661/raw/get-copilot-token.ps1') | |
| # Step 1: Start device flow | |
| $deviceCodeResponse = Invoke-RestMethod -Method Post -Uri "https://github.com/login/device/code" -Headers @{ | |
| "Accept" = "application/json" | |
| } -Body @{ | |
| "client_id" = "01ab8ac9400c4e429b23" | |
| "scope" = "user:email" |
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
| { | |
| "type": "Feature", | |
| "geometry": { | |
| "type": "Polygon", | |
| "coordinates": [[[6.62988,46.51945],[6.63629,46.51945],[6.63629,46.51484],[6.62988,46.51484],[6.62988,46.51945]]] | |
| }, | |
| "properties": { | |
| "label": "Centre-ville de Lausanne", | |
| "kind": "area", | |
| "precision": "quartier", |
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
| # GitHub OAuth Token Generator for Aider with Copilot | |
| # This script generates the GitHub OAuth token needed to access Copilot API | |
| # | |
| # Run using `iex (Invoke-RestMethod -Uri ('https://gist.githubusercontent.com/dgehriger/62e0284a5ed55f32bbe22f9a28ddcf39/raw'))` | |
| Write-Host "`n====================================" -ForegroundColor Cyan | |
| Write-Host " Aider Config Script v2.21" -ForegroundColor White | |
| Write-Host "====================================" -ForegroundColor Cyan | |
| # Check if aider is installed |
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
| use embassy_sync::channel::{Channel, Sender, Receiver}; | |
| use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | |
| use embassy_time::{Duration, Ticker}; | |
| use core::sync::atomic::{AtomicUsize, Ordering}; | |
| use embedded_hal_async::i2c::{AddressMode, Operation}; | |
| // Request ID generator | |
| static REQUEST_ID_COUNTER: AtomicUsize = AtomicUsize::new(0); | |
| fn generate_request_id() -> usize { |
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 USE_SCRIPT | |
| # define USE_SCRIPT | |
| #endif | |
| #ifndef USE_SML_M | |
| # define USE_SML_M | |
| #endif | |
| #ifdef USE_RULES | |
| # undef USE_RULES |
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
| >D 48 | |
| ; Your encryption key | |
| KEY="4cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
| ; The meter ID | |
| METER_ID="1234567" | |
| ; Variables |
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
| #pragma once | |
| #include <algorithm> | |
| class IncrementalPID | |
| { | |
| public: | |
| /** | |
| * @param kp Proportional gain, K_p | |
| * @param ki Integral gain, K_i | |
| * @param kd "Derivative" gain for the incremental form |
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
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "$schema": { | |
| "type": "string", | |
| "format": "uri", | |
| "const": "https://gist.githubusercontent.com/dgehriger/4486084b0bbbff0a99c4c3918e634e84/raw/mav_movie_definition.v1.schema.json" | |
| }, |
NewerOlder