The fishbowl api itself is... weird.
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 crossterm::{ | |
| event::{self, Event, KeyCode}, | |
| terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, | |
| ExecutableCommand, | |
| }; | |
| use ratatui::{prelude::*, widgets::*}; | |
| use std::io::{self, stdout, Error}; | |
| #[derive(Debug, Default)] | |
| struct App { |
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
| kubessh() { | |
| local namespace="" | |
| local pod="" | |
| local init_container="" | |
| local main_container="" | |
| while getopts ":n:" opt; do | |
| case $opt in | |
| n) | |
| namespace="$OPTARG" |
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
| from typing import Any, List, Type, Union | |
| from django.apps import apps | |
| from django.db import transaction | |
| from django.db.models import Model | |
| from django.db.models.fields import Field | |
| from django.db.models.fields.related import ForeignKey, ForeignObjectRel, OneToOneField | |
| class MigrateUser: | |
| def __init__(self, _from_id: int, to_id: int) -> None: |
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
| #include "Adafruit_PM25AQI.h" | |
| Adafruit_PM25AQI aqi = Adafruit_PM25AQI(); | |
| int redLed=9; | |
| int yellowLed=10; | |
| int greenLed=11; | |
| float LOWER_BOUND=100.00; | |
| float UPPER_BOUND=151.00; |
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
| class SQSClient: | |
| def __init__(self, queue): | |
| self.delete = False | |
| self.client = boto3.client("sqs") | |
| self.url = self.get_queue(queue) | |
| self.receipt_handles = None | |
| def __enter__(self): | |
| return self |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Python: Django Shell", | |
| "type": "python", | |
| "request": "launch", | |
| "program": "${workspaceFolder}/manage.py", | |
| "args": ["shell_plus"], | |
| "django": true |
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
| const pdf = require("pdfjs"); | |
| const fs = require("fs"); | |
| const run = async () => { | |
| const doc = new pdf.Document(); | |
| doc.pipe(fs.createWriteStream("./test.pdf")); | |
| doc.text("Hello World"); |
boto3 does not have a built-in sync ability, but awscli does. Since awscli is just a python package I figured there had to be a way to use the sync command. Here is how.
pip install boto3
pip install awscli
Run the code in the sync.py file.
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
| [profile myprofile] | |
| region=us-east-2 | |
| [profile amplify-test] | |
| region=us-east-1 |
NewerOlder