--- [system prompt] --- You have access to a set of functions you can use to answer the user's question. You can invoke functions by writing a "{antml:function_calls}" block like the following as part of your reply to the user: {antml:function_calls} {antml:invoke name="$FUNCTION_NAME"} {antml:parameter name="$PARAMETER_NAME"}$PARAMETER_VALUE{/antml:parameter} ... {/antml:invoke}
Use this when the Codex Chrome Extension can list the user's real Chrome tabs with browser.user.openTabs(), but browser.user.claimTab(...) fails with:
Grouping is not supported by tabs in this window.
This is a Chrome control-plane issue, not a login issue. The extension can see the user's profile, but cannot take over the grouped or unsupported window. The reliable recovery is to create a fresh, profile-scoped blank Chrome tab, claim that new tab, and navigate it to the authenticated target site.
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
| ### Tailwindcss V4 | |
| **Tailwind CSS Cheat Sheet** | |
| Theming without config.js: Tailwind v4.0 allows direct CSS customization. Variables can be declared within your css files and used. For example, you can declare color variables in your main css file, and then use them within your tailwind classes. This allows for css first configuration. | |
| **Core Concepts:** | |
| * **Utility-First:** Class-based styling. | |
| * **Responsive:** Breakpoint prefixes (sm:, md:, lg:, xl:, 2xl:). | |
| * **Dark Mode:** `dark:` prefix. |
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
| { | |
| "YSETCOLI": "YSETCONSES", | |
| "YSETCODD": "YSETCONSES", | |
| "YSETCOBB": "YSETCOJSES", | |
| "YSETCOFF": "YSETCOJSES", | |
| "YSETCOLF": "YSETCOJSES", | |
| "YSETCOFL": "YSETCOJSES", | |
| "YSETCOQV": "YSETCOJSES", | |
| "YSETCOTX": "YSETCOJSES", | |
| "COPA": "YSETCOJSES", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Convert this script from jquery to vanilla js. Be careful about null scenarios, for example when you convert $('.class').show() to document.querySelector('.class').style.display = 'block' keep in mind result of querySelector might be null. I solve this issue like this: (document.querySelector('.class') || { style: {}}).style.display = 'block' | |
| Also use fetch and es6 as much as you can. | |
| Do not make any explanations, only try to convert and comment the parts you think can not be converted easily. | |
| Here is the script: |
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
| (() => { | |
| Array.from(document.querySelectorAll('.description textarea')).forEach(tx => { | |
| tx.value = tx.value.replace(/(.+)petek:(.+)/, '$2 $1petek') | |
| .replace(/^\s*([^\[\s]+)\s/, '[$1] '); | |
| }); | |
| const spaces = {}; | |
| let total = 0; | |
| Array.from(document.querySelectorAll('#invoice_item_rows>tr')).forEach(row => { | |
| const description = row.querySelector('textarea').value; | |
| const identifier = description.match(/\[[^\]]+\]/)[0].split('-')[0].replace('[', ''); |
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.4; | |
| import "@openzeppelin/contracts@4.6.0/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts@4.6.0/token/ERC721/extensions/ERC721Enumerable.sol"; | |
| import "@openzeppelin/contracts@4.6.0/security/Pausable.sol"; | |
| import "@openzeppelin/contracts@4.6.0/access/Ownable.sol"; | |
| import "@openzeppelin/contracts@4.6.0/token/ERC721/extensions/ERC721Burnable.sol"; | |
| import "@openzeppelin/contracts@4.6.0/utils/Counters.sol"; | |
| import "@openzeppelin/contracts@4.6.0/token/ERC721/extensions/ERC721URIStorage.sol"; |
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
| video-container { | |
| position: relative; | |
| } | |
| .video-container:after { | |
| display: block; | |
| content: ''; | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| top: 0; |
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
| window.turkishStemmer = function() { | |
| var g = true; | |
| var p = false; | |
| function C() { | |
| this.p = function(k) { | |
| this.j = k; | |
| this.cursor = 0; | |
| this.a = this.j.length; | |
| this.f = 0; |
NewerOlder