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 python3 | |
| """ | |
| Expose Ollama models to LM Studio by symlinking its model files. | |
| NOTE: On Windows, you need to run this script with administrator privileges. | |
| """ | |
| import json | |
| import os | |
| from pathlib import Path |
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
| <?php | |
| namespace HWID\ACFGravity; | |
| class ACF_GF_DropDown { | |
| public static function init() { | |
| add_filter( 'acf/load_field/key=FIELDKEY', [ 'HWID\ACFGravity\ACF_GF_DropDown', 'populate_gform_dropdown' ] ); | |
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
| <?php | |
| namespace HWID\SampleCode; | |
| class GravityForms { | |
| public static function init() { | |
| add_filter( 'gform_custom_merge_tags', [ 'HWID\SampleCode\GravityForms', 'custom_merge_tags' ], 10, 4 ); | |
| add_filter( 'gform_replace_merge_tags', [ 'HWID\SampleCode\GravityForms', 'replace_merge_tags' ], 10, 3 ); | |
| } | |
| /** |
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
| <?php | |
| /** | |
| * Gravity Wiz // Gravity Forms // Display Price for Drop Down and Radio Button Product Fields | |
| * http://gravitywiz.com/ | |
| * Source: https://www.gravityhelp.com/documentation/article/gform_field_choice_markup_pre_render/#2-include-price-for-product-fields | |
| */ | |
| add_filter( 'gform_field_choice_markup_pre_render', function ( $choice_markup, $choice, $field, $value ) { | |
| if ( $field->type == 'product' ) { | |
| $new_string = sprintf( '>%s - %s<', $choice['text'], GFCommon::to_money( $choice['price'] ) ); |
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
| <?php | |
| /** | |
| * @package Gravity XL Scheduled Entries Export | |
| * @version 1.0 | |
| * @name gravityxl -scheduled-entries-export | |
| * @author Gravity XL | |
| */ | |
| /** | |
| * Schedule gform Entry export | |
| * |
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
| <?php | |
| class Sasha_pl_uploads_url { | |
| function __construct() { | |
| add_filter( 'pl_uploads_url', array( $this, 'filter' ) ); | |
| } | |
| function filter( $url ) { | |
| return 'http://my.cdn.url/wp-content/uploads'; | |
| } | |
| } |
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
| {% comment %} this is a barebones menu with submenu items for Shopify {% endcomment %} | |
| {% comment %} see shopify docu for creating submenu items: https://help.shopify.com/manual/sell-online/online-store/menus-and-links#create-a-drop-down-menu {% endcomment %} | |
| {% comment %} first assign the menu - this is the only thing you need to change {% endcomment %} | |
| {% assign linklist = settings.collections_nav %} | |
| {% comment %} in the above line change the collections_nav to the handle of your main naivgation {% endcomment %} | |
| {% comment %} the code below will do the rest {% endcomment %} |
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 ruby | |
| toc = "# Table of Contents\n" | |
| newmd = "" | |
| ARGF.each_line do |line| | |
| newmd << line | |
| next if !line.start_with?("#") | |
| heading = line.gsub("#", "").strip |
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
| $gravity_form_id = 6; // gravity form id, or replace {$gravity_form_id} below with this number | |
| add_filter("gform_after_submission_{$gravity_form_id}", 'jdn_set_post_acf_gallery_field', 10, 2); | |
| function jdn_set_post_acf_gallery_field($entry, $form) | |
| { | |
| $gf_images_field_id = 42; // the upload field id | |
| $acf_field_id = 'field_54804833b3067'; // the acf gallery field id | |
| // get post |
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
| <div class="outer-square"> | |
| <div class="square slide-up-fade-in"> | |
| <h3 class="slide-up-fade-in">Title</h3> | |
| <p class="slide-up-fade-in">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.</p> | |
| <p class="slide-up-fade-in">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> | |
| <div class="clearfix"></div> | |
| </div> |
NewerOlder