Skip to content

Instantly share code, notes, and snippets.

@mohsendro
mohsendro / wcvsosp.php
Created February 11, 2025 22:08 — forked from Acephalia/wcvsosp.php
Woocommerce Variation Selectors & Add To Cart Button For Variable Products On Shop Pages
/*
* @snippet Display Variation Selectors & Add To Cart Button For Variable Products On Woocommerce Shop Pages
* @author u/acephaliax
* @source https://insomniainc.com/resources/uncategorized/variation-selectors-add-to-cart-button-for-variable-products-on-woocommerce-shop-pages/
* @compatibility Last tested on WooCommerce 9.0.1
* @community r/wordpress, r/woocommerce
* @caffeinate https://buymeacoffee.com/acephaliax
*/
// Enqueue necessary scripts for shop and archive pages
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:08
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 10:08:45 PM
Loaded mods:
Harmony(brrainz.harmony)[v:2.3.1.0][mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Humanoid Alien Races(erdelf.HumanoidAlienRaces): 0Harmony(av:2.3.3,fv:2.3.1.1), AlienRace(1.0.0)
from dataclasses import dataclass
import simple_parsing as sp
from typing import Literal
import modal
from modal import Image
from evals import EVALUATIONS_CONFIGS
from evals.runner import run_eval
{
"name": "My workflow",
"nodes": [
{
"parameters": {
"options": {}
},
"id": "32a160fa-88df-41dd-9949-18d98a70574d",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 22:08
ndm v1.2.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2270195762-3335344054-2709297393-1000</user>
<keys>
<key installerType="Unknown" displayName="ndm 1.2.0 (only current user)" displayVersion="1.2.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c2d26df8-0c3f-5dc9-bc1f-458ff14cf2f5</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Local\Programs\ndm\Uninstall ndm.exe" /currentuser]]></UninstallString>
@strarsis
strarsis / service-workers.md
Created February 11, 2025 22:08 — forked from Rich-Harris/service-workers.md
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 22:08
texstudio.install v4.8.6 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-3145728412-1752322905-909997274-1000</user>
<keys>
<key installerType="Custom" displayName="TeXstudio - TeXstudio is a fully featured LaTeX editor." displayVersion="4.8.6">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TeXstudio</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA["C:\Program Files\texstudio"]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files\texstudio\uninstall.exe" /S]]></UninstallString>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:07
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 5:07:49 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Allow Tool(UnlimitedHugs.AllowTool): AllowTool(av:3.6.0,fv:3.13.1)
Graphics Settings+(Telefonmast.GraphicsSettings)[mv:1.0.0]: GraphicSetter(1.0.0)
@EthanH234
EthanH234 / index.html
Created February 11, 2025 22:06
Media Queries
<h1>Media Queries</h1>
<h2>Subheading</h2>
<div class="flex-row">
<div class="image-container">
<img src="https://picsum.photos/900/600" alt="">
</div>
<div class="image-container">
<img src="https://picsum.photos/900/600" alt="">
</div>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:05
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 10:05:56 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Research Reinvented: Stepping Stones(PeteTimesSix.ResearchReinvented.SteppingStones): ResearchReinvented_SteppingStones(1.0.0)
Tribal Essentials Reborn(zal.tribalessentials)[mv:1.2.3.0]: (no assemblies)