Skip to content

Instantly share code, notes, and snippets.

View devxpy's full-sized avatar

Dev Aggarwal devxpy

View GitHub Profile
|MODEL |TEM4A0C37S31SB |TEM4A0C42S41SB |TEM4A0C48S41SB |TEM4A0C60S51SB|
|--|--|--|--|--|
|RATED VOLTS/PH/HZ |208-230/1/60 | | ||
|RATINGS(a) |See O.D. Specifications | | ||
|INDOOR COIL - Type |Plate Fin | | ||
|Rows - F.P.I. |3 - 14 |3 - 14 |3 - 14 |4 - 14|
|Face Area (sq. ft.) |5.50 |5.50 |5.50 |5.91|
|Tube Size (in.) |3/8 | | ||
|Refrigerant Control |TXV | | ||
|Drain Conn. Size (in. )(b) |3/4 NPT | | ||
def reposition_object_img_bytes(
*,
img_bytes: bytes,
mask_bytes: bytes,
out_size: (int, int) = (512, 512),
out_obj_scale: float = 0.2,
out_pos_x: float = 4 / 9,
out_pos_y: float = 3 / 9,
) -> (bytes, bytes):
image_cv2 = bytes_to_cv2_img(img_bytes)
@devxpy
devxpy / out.txt
Last active August 22, 2023 16:54
from llama_index import (
VectorStoreIndex,
SimpleWebPageReader,
set_global_service_context,
ServiceContext,
)
from llama_index.callbacks import CallbackManager, TokenCountingHandler
from llama_index.chat_engine.types import ChatMode
[('https://assets.interplaylearning.com/videos/learning_path/1530282924685_ACDiagnostics3.mp4',
3),
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687286505745_0_IntroWhatisHVACRev.mp4',
2),
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687286573158_1_HVACoverviewRev.mp4',
2),
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687286713437_2_HVACsystemsRev.mp4',
2),
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687293233864_3_SystemComponentsRev.mp4',
2),
import torch
from PIL import Image
from diffusers import StableDiffusionPipeline, StableDiffusionControlNetImg2ImgPipeline, ControlNetModel, DDIMScheduler
from diffusers.utils import load_image
controlnet = ControlNetModel.from_pretrained("DionTimmer/controlnet_qrcode-control_v11p_sd21",
torch_dtype=torch.float16)
model_id = "stabilityai/stable-diffusion-2-1"
pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
@devxpy
devxpy / gist:f3b224d28a8634193b4296dcfae6779d
Created May 2, 2023 16:03
import react-markdown in remix
serverDependenciesToBundle: [
"react-markdown",
"react-markdown-preview",
/^@mdx-js*/,
/^estree*/,
/^hast-*/,
/^parse5*/,
/^mdast*/,
/^micromark*/,
/^remark*/,
@devxpy
devxpy / gist:747e18a5dfeba4a05d0b975b70cc4805
Created April 30, 2023 00:42
SentenceSplitter splits between sentences
www.ramanuj.evenweb.com
---
The 3 Mistakes
of My Life
A Story about Business, Cricket and Religion
Chetan Bhagat
Rupa & Co
@devxpy
devxpy / main.dart
Created August 24, 2022 09:11
crimson-glacier-2866
import 'package:flutter/material.dart';
void main() => runApp(MainApp());
class MainApp extends StatefulWidget {
const MainApp({
Key? key,
}) : super(key: key);
@override
@devxpy
devxpy / mem_usage.dart
Created January 21, 2022 00:17
dart print out memory usage
import 'dart:developer' as developer;
import 'package:intl/intl.dart';
// https://pub.dev/packages/vm_service
import 'package:vm_service/vm_service.dart' show MemoryUsage, VM, VmService;
import 'package:vm_service/vm_service_io.dart' show vmServiceConnectUri;
Future<void> printHeapUsage() async {