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
| // ============================================================================= | |
| // STANDALONE WIDGET - Can be shared via GitHub Gist | |
| // ============================================================================= | |
| // This file has NO dependencies on other project files. | |
| // Only uses Flutter SDK + common 3rd party packages. | |
| // | |
| // Required packages (add to pubspec.yaml): | |
| // - http: ^1.2.2 | |
| // - url_launcher: ^6.3.1 | |
| // - package_info_plus: ^8.1.2 |
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
| import 'package:flutter/material.dart'; | |
| import 'package:google_fonts/google_fonts.dart'; | |
| import 'package:package_info_plus/package_info_plus.dart'; | |
| import 'package:url_launcher/url_launcher.dart'; | |
| import '../../config/app_config.dart'; | |
| import '../../services/json_cache_service.dart'; | |
| // Design colors | |
| const _darkBg = Color(0xFF121212); | |
| const _cardBg = Color(0xFF1E1E1E); |
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 | |
| # Script to remove all user-installed apps from an Android device via ADB | |
| # Author: Generated for Thrive project | |
| # Usage: ./remove_android_apps.sh | |
| echo "==================================" | |
| echo "Android User Apps Removal Tool" | |
| echo "==================================" | |
| echo "" |
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 | |
| # Read JSON input from stdin | |
| input=$(cat) | |
| # Extract data from JSON | |
| current_dir=$(echo "$input" | jq -r '.workspace.current_dir') | |
| project_dir=$(echo "$input" | jq -r '.workspace.project_dir') | |
| model_name=$(echo "$input" | jq -r '.model.display_name') |
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 | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| BLUE='\033[0;34m' | |
| NC='\033[0m' # No Color | |
| # Check if commit message is provided |
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 node | |
| const { exec } = require('child_process'); | |
| const port = process.argv[2] || '3000'; | |
| console.log(`🔍 Checking for processes on port ${port}...`); | |
| // Kill processes on the specified port | |
| exec(`lsof -ti:${port}`, (error, stdout, stderr) => { |
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
| // v4 | |
| import { connect } from "puppeteer-real-browser"; | |
| import fs from 'fs'; | |
| import path from 'path'; | |
| // Use the exact types from puppeteer-real-browser | |
| type ConnectResult = Awaited<ReturnType<typeof connect>>; | |
| type PuppeteerBrowser = ConnectResult['browser']; | |
| type PuppeteerPage = ConnectResult['page']; |
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
| (function () { | |
| const originalConsoleError = console.error; | |
| const errorSocket = io(location.origin); | |
| console.error = function () { | |
| originalConsoleError.apply(console, arguments); | |
| const errorText = Array.from(arguments).join(' '); | |
| const errorInfo = { | |
| type: 'console_error', |
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
| import { useState, useEffect } from 'react'; | |
| const breakpoints = { | |
| // sm: 640, | |
| // md: 768, | |
| lg: 1024, | |
| // xl: 1280, | |
| }; | |
| const getBreakpoint = (width) => { |
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
| import dynamic from 'next/dynamic' | |
| import React from 'react' | |
| const NoSsr = props => ( | |
| <React.Fragment>{props.children}</React.Fragment> | |
| ) | |
| export default dynamic(() => Promise.resolve(NoSsr), { | |
| ssr: false | |
| }) |
NewerOlder