Skip to content

Instantly share code, notes, and snippets.

View pixobe's full-sized avatar

Pixobe pixobe

View GitHub Profile
@pixobe
pixobe / api.upload.tsx
Created December 19, 2025 07:51
Shopify Staged Upload
// app/routes/apps.customizer.upload.tsx
import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";
import { authenticate } from "../shopify.server";
import { uploadFileToStaged } from "../utils/staged-file";
const sanitizeCartId = (value: FormDataEntryValue | null): string | null => {
if (typeof value !== "string") {
return null;
}
from playwright.sync_api import sync_playwright, Playwright,TimeoutError as PlaywrightTimeoutError
import re
import csv
import os
from datetime import datetime
text_to_search=r"TCS|Tata Consultancy Services"
def write_to_csv(publish_date,header, content, filename='tata-2023.csv'):
import 'package:flutter/material.dart';
class ProductCard extends StatefulWidget {
final String name;
final String category;
ProductCard({required this.name, required this.category});
@override
_ProductCardState createState() => _ProductCardState();
@pixobe
pixobe / dart
Created November 29, 2023 07:46
import 'package:dio/dio.dart';
class WooCommerceService {
final String baseUrl = 'https://your-woocommerce-site.com/wp-json/wc/v3/';
final String consumerKey = 'your_consumer_key';
final String consumerSecret = 'your_consumer_secret';
Dio dio = Dio();
WooCommerceService() {