Skip to content

Instantly share code, notes, and snippets.

View oxyc's full-sized avatar

oxyc

View GitHub Profile
<div class="compare" data-compare-product>
<input type="text" class="compare__product-search" />
<div class="compare__suggestions"></div>
<div class="compare__details"></div>
</div>
/////
for (const el of document.querySelectorAll('[data-compare-product]')) {
compareProduct.init(el);
}
{
"phpVersion": "8.0",
"plugins": [
".",
"../woocommerce"
],
"config": {
"WP_TESTS_DOMAIN": "localhost:8080",
"WP_TESTS_EMAIL": "test@test.org",
"WP_TESTS_TITLE": "M3 Customers",
@oxyc
oxyc / product.json
Last active February 24, 2022 16:13
{
"datalists": {
"bcpg:ingLabelingList":[
// We need only this one, but seems there's no proper identifier besides the uuids
// Are the uuid same on all products?
{
"cm:name":"8ffa0582-acc2-4590-85b8-7e6cbad80caf",
"attributes":{
"bcpg:illValue_sv_SE":"ham, water, salt, socker 0,7%, stabiliseringsmedel 0,5%, kryddor 0,1%, mjölkpulver (<b>mjölk<\/b>) 0,08%, antioxidationsmedel 0,03%: E301 0,03%, konserveringsmedel 0,01%: E250 0,01%",
"bcpg:illValue":"ham, water, salt, sugar 0.7%, stabilizer 0.5%, spices 0.1%, <b>milk<\/b> powder 0.08%, antioxidant 0.03%: E301 0.03%, preservative 0.01%: E250 0.01%",
<?php
namespace App\Providers;
use Roots\Acorn\ServiceProvider;
use Illuminate\Support\Str;
use function Roots\view;
class WooCommerceServiceProvider extends ServiceProvider
@oxyc
oxyc / README.md
Created October 16, 2019 15:37 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@mixin custom-foundation-typography($reset: true) {
@if ($reset) {
// Typography resets
div,
dl,
dt,
dd,
ul,
ol,
li,
@oxyc
oxyc / drupalvm.patch
Last active September 19, 2017 17:46
diff --git a/Vagrantfile b/Vagrantfile
index 774121e..bb20d7b 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -29,9 +29,11 @@ vconfig = load_config([
provisioner = vconfig['force_ansible_local'] ? :ansible_local : vagrant_provisioner
if provisioner == :ansible
+ ansible_config_file = "#{host_drupalvm_dir}/provisioning/ansible.cfg"
playbook = "#{host_drupalvm_dir}/provisioning/playbook.yml"
// Before (build)
// -------------------------------------------------------------------------------
sage genero*: yarn run build
yarn run v0.24.5
$ webpack --progress --config resources/assets/build/webpack.config.js
Asset Size Chunks Chunk Names
styles/main.css 266 kB 0 [emitted] [big] main
fonts/fontello/fontawesome.eot 42.8 kB [emitted]
fonts/fontello/fontawesome.woff 24.1 kB [emitted]
fonts/fontello/fontawesome.ttf 42.6 kB [emitted]
@oxyc
oxyc / config.yml
Last active January 6, 2017 15:12 — forked from vyasamit2007/config.yml
---
vagrant_box: geerlingguy/ubuntu1404
vagrant_hostname: project.local
vagrant_machine_name: project
vagrant_ip: 192.168.88.89
vagrant_synced_folders:
- local_path: ..
destination: /var/www/project
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0+",
"authors": [
{
"name": "",
"role": ""
}