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
| // Hide images in ad containers | |
| document.querySelectorAll('[class*="ad"], [id*="ad"], [class*="banner"], [id*="banner"]').forEach(el => { | |
| el.querySelectorAll('img').forEach(img => { | |
| img.style.display = 'none'; | |
| }); | |
| }); | |
| // Also hide images with ad-related attributes | |
| document.querySelectorAll('img').forEach(img => { | |
| const allText = (img.src + img.alt + img.className + img.id).toLowerCase(); |
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 React, { useState, useEffect } from 'react'; | |
| import { Play, Pause, Square, Clock, QrCode, User, Store, Gift, Star, Check, X, Menu, Home, History, Settings, Baby, BookOpen, Mic, Timer, Users, ShoppingCart, Camera, UserCheck } from 'lucide-react'; | |
| const FoomFakApp = () => { | |
| const [currentUser, setCurrentUser] = useState<any>(null); | |
| const [activeTab, setActiveTab] = useState('home'); | |
| const [showLogin, setShowLogin] = useState(false); | |
| const [showRegister, setShowRegister] = useState(false); | |
| const [showQRScanner, setShowQRScanner] = useState(false); | |
| const [showStoryReader, setShowStoryReader] = useState(false); |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.19; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
| contract SelfSellingNFT is ERC721, Ownable, ReentrancyGuard { | |
| uint256 private _tokenIdCounter; | |
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 { | |
| Connection, | |
| PublicKey, | |
| Keypair, | |
| Transaction, | |
| TransactionMessage, | |
| VersionedTransaction, | |
| AddressLookupTableAccount, | |
| ComputeBudgetProgram, | |
| SystemProgram, |
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 { | |
| Connection, | |
| PublicKey, | |
| Keypair, | |
| Transaction, | |
| TransactionMessage, | |
| VersionedTransaction, | |
| AddressLookupTableAccount, | |
| ComputeBudgetProgram, | |
| } = require('@solana/web3.js'); |
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
| // นำเข้า Google Font Kanit | |
| let fontLink = document.createElement('link'); | |
| fontLink.href = 'https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700&display=swap'; | |
| fontLink.rel = 'stylesheet'; | |
| document.head.appendChild(fontLink); | |
| // สร้าง style element ใหม่ | |
| let styleElement = document.createElement('style'); | |
| styleElement.textContent = ` | |
| * { |
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
| # LangChain Blockchain Analysis MVP with Claude in Python | |
| # This application analyzes blockchain transactions and provides natural language insights using LangChain with Claude | |
| # Required dependencies | |
| from langchain_anthropic import ChatAnthropic | |
| from langchain.prompts import PromptTemplate | |
| from langchain.chains import LLMChain | |
| from langchain.tools import Tool | |
| from langchain.agents import initialize_agent, AgentType | |
| from web3 import Web3 |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| /** | |
| * @dev Interface of the ERC20 standard as defined in the EIP. | |
| */ | |
| interface IERC20 { | |
| /** | |
| * @dev Returns the amount of tokens in existence. | |
| */ |
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
| async function fetchFileByURL(url: string): Promise<File> { | |
| const res = await fetch(url, { | |
| credentials: 'include', | |
| method: 'GET', | |
| }) | |
| if (!res.ok) { | |
| throw new Error(`Failed to fetch file from ${url}, status: ${res.status}`) | |
| } |
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
| // MCP Server with Claude Integration | |
| const express = require('express'); | |
| const http = require('http'); | |
| const WebSocket = require('ws'); | |
| const { Anthropic } = require('@anthropic/sdk'); | |
| const dotenv = require('dotenv'); | |
| // Load environment variables from .env file | |
| dotenv.config(); |
NewerOlder