This file contains 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
<?xml version="1.0"?> | |
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd"> | |
<table name="quote_item_file" resource="default" engine="innodb" comment="Quote Item File Table"> | |
<column xsi:type="int" name="entity_id" padding="11" unsigned="false" nullable="false" identity="true" | |
comment="Entity ID"/> | |
<column xsi:type="varchar" name="filename" nullable="false" length="255" | |
comment="Filename"/> | |
<column xsi:type="varchar" name="location" nullable="false" length="255" | |
comment="Location of file"/> | |
<column xsi:type="int" name="quote_item_item_id" padding="10" unsigned="true" nullable="false" identity="false" |
This file contains 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
<?xml version="1.0"?> | |
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd"> | |
<table name="quote_item_file" resource="default" engine="innodb" comment="Quote Item File Table"> | |
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true" | |
comment="Entity ID"/> | |
<column xsi:type="varchar" name="filename" nullable="false" length="255" | |
comment="Filename"/> | |
<column xsi:type="varchar" name="location" nullable="false" length="255" | |
comment="Location of file"/> |
This file contains 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 gulp = require('gulp'); | |
const responsive = require('gulp-responsive'); | |
gulp.task('build:responsive', () => { | |
return gulp | |
.src(['static/media/*.{gif,jpg,jpeg,png}']) | |
.pipe(responsive({ | |
'**/*': [{ | |
width: 2240, | |
height: 320, |
This file contains 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 gulp = require('gulp'); | |
const responsive = require('gulp-responsive'); | |
gulp.task('build:responsive', () => { | |
return gulp | |
.src(['static/media/*.{gif,jpg,jpeg,png}']) | |
.pipe(responsive({ | |
'**/*': [{ | |
width: 2240, | |
height: 320, |
This file contains 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
<script> | |
import { onMount } from "svelte"; | |
let articles = []; | |
let show = false; | |
function getContent(xmlObj, tagName) { | |
return xmlObj.getElementsByTagName(tagName)[0].textContent | |
} | |
onMount(async () => { |
This file contains 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
'use strict' | |
for(let i=0;i<100;i++)console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i); |
This file contains 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 | |
/* | |
* OAuth 1.0a client (Example) for Magento 2 | |
* | |
* @see: https://oauth.net/core/1.0a | |
* @see: https://tools.ietf.org/html/rfc5849 | |
*/ | |
class Api | |
{ | |
const OAUTH_VERSION = '1.0'; |
This file contains 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 | |
/* | |
Read a csv file and remove duplicate values, | |
and update the csv with unique values | |
*/ | |
($argc > 1) | |
or die('No argument has been given! Example: script.php foo.csv'.PHP_EOL); | |
(pathinfo($argv[1], PATHINFO_EXTENSION) === 'csv') |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: sans-serif; | |
font-size: 1.3em; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to Vue</title> | |
<script src="https://unpkg.com/vue"></script> | |
<style id="jsbin-css"> | |
.dashboard { | |
display: flex; | |
flex-direction: row; | |
width: 100%; |