A Model Context Protocol (MCP) server that integrates Google's Gemini AI for code review, technical consultation, and AI-assisted development workflows. This server provides seamless integration with Claude Code and other MCP-compatible clients.
I have included working code examples that can be run throughout, as well as graphs. I hope this helps make this easier to understand in a more hands on way.
Suppose you know that there are 10 balls in an urn, some are red and some are blue. So there are 11 different possible models for this situation:
- M0: 0 red, 10 blue
- M1: 1 red, 9 blue
- ...
- M10: 10 red, 0 blue
| from pprint import PrettyPrinter | |
| import requests | |
| pp = PrettyPrinter() | |
| def query(search) | |
| url = f"https://wwwapi.lcsc.com/v1/search/global-search?keyword={search}" | |
| r = requests.get(url) | |
| pp.pprint(r.json()) |
| M117 Heating... ;Put printing message on LCD screen | |
| M300 S2500 P100; Beep | |
| M204 T1250 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2 | |
| M221 S{if layer_height<0.075}100{else}100{endif} ; Set flow | |
| M104 S140 ; set extruder temp | |
| M140 S[first_layer_bed_temperature] ; set bed temp | |
| ;G1 Z50 ; this is a good start heating position | |
| G28 X Y; Home X Y | |
| G1 Y10 ; this is a good start heating position |
| #include "Arduino.h" | |
| #include "Wire.h" | |
| /* | |
| ** IP5306 Power Module | |
| */ | |
| /* M5 Defaults | |
| KeyOff: Enabled | |
| BoostOutput: Disabled |
| FROM darthsim/imgproxy:latest | |
| RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ | |
| && apk --no-cache upgrade \ | |
| && apk add --no-cache nginx | |
| RUN echo -e "#!/bin/bash\nnginx && imgproxy" > /usr/local/bin/imgproxy-nginx | |
| RUN chmod +x /usr/local/bin/imgproxy-nginx | |
| RUN mkdir -p /run/nginx |
| param ( | |
| [switch]$RenameOrphanLayers | |
| ) | |
| If ($RenameOrphanLayers) { | |
| Write-Warning "$($env:COMPUTERNAME) -RenameOrphanLayers option enabled, will rename all orphan layers" | |
| } | |
| # Get known layers on Docker images | |
| [array]$ImageDetails += docker images -q | ForEach { docker inspect $_ | ConvertFrom-Json } |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]
struct foo {
struct bar {
int x;| import hmac | |
| import hashlib | |
| import base64 | |
| class ImgProxy: | |
| """ | |
| The class generates a signature for the imgproxy (https://github.com/DarthSim/imgproxy). | |
| Author: Yehor Smoliakov (https://github.com/egorsmkv) |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
