Skip to content

Instantly share code, notes, and snippets.

View cawecoy's full-sized avatar

Cawe Coy Rodrigues Marega cawecoy

  • Florianópolis
View GitHub Profile
@cawecoy
cawecoy / attributes-pre-map.js
Last active July 22, 2023 05:01
Generate product attributes correctly formated to be imported from Pangaea Digital Agency to WordPress Woocommerce
// replace variable value after =
var attr = [
{
"OptionList.0.ProductId": "62977ef1489dac21a4364b5c",
"OptionList.0.Name": "Kleur",
"OptionList.0.Type": "String",
"OptionList.0.Value": "Blauw",
"OptionList.1.ProductId": "62977ef1489dac21a4364b5c",
"OptionList.1.Name": "Maat",
"OptionList.1.Type": "String",

Privacy Policy

Interpretation and Definitions

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

For the purposes of this Privacy Policy:

@cawecoy
cawecoy / CustomGoogleTagManagerMiddleware.php
Last active November 23, 2021 06:20
Flash multiple events to Google Tag Manager with spatie/laravel-googletagmanager
<?php
namespace App\Http\Middleware;
use Closure;
class CustomGoogleTagManagerMiddleware extends \Spatie\GoogleTagManager\GoogleTagManagerMiddleware
{
/**
* Handle an incoming request.
@cawecoy
cawecoy / JqueryFileUploadHandler.php
Last active August 28, 2020 03:53
Workaround for resumable upload with pionl/laravel-chunk-upload and blueimp/jQuery-File-Upload
<?php
namespace App\Handler;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Pion\Laravel\ChunkUpload\Config\FileConfig;
use Pion\Laravel\ChunkUpload\Handler\ContentRangeUploadHandler;
INFO global: Vagrant version: 2.0.0
INFO global: Ruby version: 2.3.4
INFO global: RubyGems version: 2.5.2.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_OLD_ENV_LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35