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
| package main | |
| import ( | |
| "fmt" | |
| "encoding/json" | |
| "reflect" | |
| ) | |
| type circle struct { | |
| Radius float64 `json:"radius"` |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "runtime" | |
| ) | |
| func main() { |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "runtime" | |
| "context" | |
| ) | |
| func main() { |
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
| #!/bin/bash | |
| # Usage | |
| # ./flash.sh path/to/your.hex | |
| TARGET=$1 | |
| ls /dev/tty* > /tmp/1 | |
| echo "Reset your Pro Micro now" |
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
| diff --git a/py/chat.py b/py/chat.py | |
| index 93d31bf..1980681 100644 | |
| --- a/py/chat.py | |
| +++ b/py/chat.py | |
| @@ -69,7 +69,7 @@ try: | |
| **openai_options | |
| } | |
| printDebug("[chat] request: {}", request) | |
| - response = openai_request('https://api.openai.com/v1/chat/completions', request, http_options) | |
| + response = openai_request('https://engineering-ai.openai.azure.com/openai/deployments/engineering/chat/completions?api-version=2023-03-15-preview', request, http_options) |
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
| #!/usr/bin/env bash | |
| BASE_URL="https://lcd.archive.osmosis.zone/cosmos/tx/v1beta1/txs" | |
| LIMIT=100 | |
| ORDER_BY="ORDER_BY_DESC" | |
| QUERY="message.sender='osmo1z89utvygweg5l56fsk8ak7t6hh88fd0au3z2n6'" | |
| PAGE=1 | |
| while true; do |
OlderNewer