Discover gists
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
{ | |
"aa": "Afar", | |
"ab": "Abkhazian", | |
"af": "Afrikaans", | |
"am": "Amharic", | |
"ar": "Arabic", | |
"ar-ae": "Arabic (U.A.E.)", | |
"ar-bh": "Arabic (Bahrain)", | |
"ar-dz": "Arabic (Algeria)", | |
"ar-eg": "Arabic (Egypt)", |
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
# pip install "distilabel[vllm] @ git+https://github.com/argilla-io/distilabel.git@develop" | |
# pip install flash-attn --no-build-isolation | |
# huggingface-cli login | |
import time | |
from distilabel.llms import vLLM | |
from distilabel.pipeline import Pipeline | |
from distilabel.steps import KeepColumns, LoadHubDataset | |
from distilabel.steps.tasks import PrometheusEval |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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
// Simple JS snippet to bulk unwatch (stop watching, un-watch) issues in JIRA. | |
// Written and tested for JIRA 5.2, but should work for all 5+ versions. | |
// WHAT IT DOES: | |
// 1. Gets list of issues you watch using JQL search via REST API. You can modify JQL per your needs. | |
// 2. For each issue found, triggers REST API call to unwatch this issue for current user. | |
// HOWTO: | |
// 1. Go to JIRA in your browser, log in. | |
// 2. Open your browser JavaScript console. |
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
// zod schema | |
z.object({ | |
// valid if string or: | |
optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
nullable: z.string().nullable(), // field explicitly `null` | |
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
}); | |
// type | |
{ |
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
/** | |
* Move WooCommerce Related Products to a tab | |
* | |
* Copy code to theme functions.php | |
*/ | |
// Remove standard Related Products section | |
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); | |
/** |
NewerOlder