import { enqueueTransition } from './transition'
// fetch or something getting external content
const myHtmlString = '<section>...</section>'
const range = document.createRange();
const documentFragment = range.createContextualFragment(myHtmlString);
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
From ae5c89e5af2c14dea33b5c5d49ead84d55fd02f8 Mon Sep 17 00:00:00 2001 | |
From: Shomi Adarsh <[email protected]> | |
Date: Thu, 22 Jun 2023 13:48:07 +0530 | |
Subject: [PATCH] GraphQL cannot add product with customizable option to cart | |
#37599 | |
--- | |
vendor/magento/module-quote/Model/Quote.php | 2 ++ | |
1 file changed, 2 insertions(+) |
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
const express = require('express') | |
const app = express() | |
const port = 3001 | |
app.get('/', async (req, res) => { | |
try { | |
const puppeteer = require('puppeteer') | |
const browser = await puppeteer.launch({ | |
headless: true, |
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
name: "Deploy to Production" | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
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
#!/bin/bash | |
# warmly.sh | |
# A wget based, easy, poor man`s cache warmer script | |
# https://gist.github.com/thomasfr/7926314 | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2013,2014 Thomas Fritz <[email protected]> (http://fritzthomas.com) | |
# |
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 | |
$file = file($_FILES['file-name']['tmp_name']); | |
$csv_rows = array_map('str_getcsv', file($_FILES['customer-csv']['tmp_name'])); | |
$csv_header = array_filter(array_shift($csv_rows)); | |
$merged = []; | |
foreach($csv_rows as $row) { | |
$row = array_filter($row); | |
while(count($row) !== count($csv_header)) { | |
if(count($row) > count($csv_header)) { |
Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';
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
#!/bin/bash | |
mkdir -p work | |
cd work | |
curl -fsSL https://downloads.php.net/~pollita/php-7.2.3.tar.xz | tar -xJf - --strip-components=1 | |
./configure \ | |
--disable-cgi \ | |
--enable-mbstring \ |
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
#!/bin/bash | |
# Requirements: curl, sudo, tar, building tools | |
[ -z "${PREFIX}" ] && PREFIX=/usr/local | |
[ -w "${PREFIX}" ] || SUDO=sudo | |
set -e | |
mkdir -p work |
NewerOlder