This file contains 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 { | |
Button, | |
FormField, | |
Input, | |
Page, | |
WixDesignSystemProvider, | |
} from "@wix/design-system"; | |
import "@wix/design-system/styles.global.css"; | |
import React, { useEffect, useState } from "react"; | |
import { withDashboard, useDashboard } from "@wix/dashboard-react"; |
This file contains 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
<?php | |
// ... Rest of functions.php | |
/** | |
* Add the question code column to the question custom post type. | |
*/ | |
function add_question_code_column_to_question_cpt($columns) { | |
$columns['question_code'] = 'Question Code'; | |
return $columns; |
This file contains 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 { fireEvent, render, screen, waitFor } from 'from '@testing-library/react' | |
import Modal from './Modal' | |
describe('Modal', () => { | |
it('renders successfully', () => { | |
const onCancel = jest.fn() | |
expect(() => { | |
render(<Modal isOpen onCancel={onCancel} />) | |
}).not.toThrow() |
This file contains 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
<div class="h-screen w-full bg-slate-300 p-5"> | |
<div class="p-5 columns-3 gap-3 bg-white rounded-lg drop-shadow-lg"> | |
<div class="mb-3 bg-amber-600 text-white text-center p-3 rounded"> | |
Lorem ipsum | |
</div> | |
<div class="mb-3 bg-amber-600 text-white text-center p-3 rounded"> | |
Lorem ipsum, hello world! | |
</div> | |
<div class="mb-3 bg-amber-600 text-white text-center p-3 rounded"> | |
Mary had a little lamb. Its fleece was white as snow. |
This file contains 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 | |
function print_help() { | |
GREEN="\033[1;32m" | |
BLUE="\033[1;34m" | |
RESET="\033[0m" | |
echo -e "${GREEN}Usage:${RESET}" | |
echo -e " ${BLUE}gpt [options] [question]${RESET}" | |
echo "" |
This file contains 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 | |
# This script will help you to generate a ChatGPT prompt that you can use to summarize and review the changes between two branches. | |
# It will prompt you for the feature branch, the branch to compare to, the ticket/story/bug description, and any additional feedback. | |
# It will then output the changes and the prompt to a file called summareview.txt. | |
function usage { | |
echo -e "\033[1mUsage:\033[0m $0 [-h | --help] [-o output_file] [-p]" | |
echo "" | |
echo -e "\033[1mOptions:\033[0m" |
This file contains 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
<div class="mt-24 w-96 p-4 mx-auto rounded-lg shadow-lg overflow-hidden relative after:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-16 after:bg-gradient-to-b after:from-transparent after:to-white"> | |
<h1 class="text-3xl mb-3 font-bold underline"> | |
Hello world! | |
</h1> | |
<p class="leading-snug"> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
</p> | |
</div> |
This file contains 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
<?php | |
/** | |
* Add featured image column to WP admin panel - posts AND pages | |
* See: https://bloggerpilot.com/featured-image-admin/ | |
*/ | |
// Set thumbnail size | |
add_image_size( 'j0e_admin-featured-image', 60, 60, false ); |
This file contains 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
export function Tooltip({ content }) { | |
return ( | |
{/* Tailwind's group class will be used trigger the hover */} | |
<span className="group"> | |
{/* Font Awesome question mark icon */} | |
<i className="fas fa-question-circle text-black group-hover:scale-120 ml-1 cursor-pointer ease-in-out duration-300 transition-transform"></i> | |
<span | |
className={` | |
w-full absolute rounded shadow |
This file contains 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
/** | |
* Square loading favicon in Typescript | |
* Author: Drikus Roor | |
* Original author: https://github.com/rpsthecoder/square-loading-favicon | |
*/ | |
interface IFavicon extends Element { | |
href: string; | |
} |
NewerOlder