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
#!/bin/bash | |
find /yourpath/ -path /yourpath/vendor -prune -o -type f -name "*.inc" -print0 | while read -d $'\0' file | |
do | |
DIR=$(dirname "${file}") | |
filename=$(basename -- "$file") | |
filename_without_ext="${filename%.*}" | |
NEWFILENAME="$DIR"/"$filename_without_ext".php | |
echo "$NEWFILENAME" | |
git -C /yourpath/ mv "$file" "$NEWFILENAME" | |
done |
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
parseUrlForEbayItemId(url) { | |
if (url) { | |
if (url.toLowerCase() | |
.indexOf('ebay') >= 0) { | |
console.log('ebay found'); | |
// this url is on ebay, try to get the item id | |
const splited = url.split('/'); | |
// search for "/itm/" | |
if (splited.indexOf('itm') > 0) { | |
console.log('itm found'); |
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
<link rel="stylesheet" href="https://mydomain.com/css/styles.css"> | |
<script type="text/javascript"> | |
var _runtimeES2015 = document.createElement('script'); | |
_runtimeES2015.setAttribute('type', 'text/javascript'); | |
document.getElementsByTagName('head')[0].appendChild(_runtimeES2015); | |
_runtimeES2015.setAttribute('src', 'https://mydomain.com/js/runtime-es2015.js'); | |
var _polyES2015 = document.createElement('script'); | |
_polyES2015.setAttribute('type', 'text/javascript'); |
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 | |
/** | |
the composer.json used here: | |
{ | |
"require": { | |
"guzzlehttp/guzzle": "^6.3" | |
}, | |
"require-dev": { | |
"kint-php/kint": "^3.2" |
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 | |
$request = new HttpRequest(); | |
$request->setUrl('https://api.ebay.com/identity/v1/oauth2/token'); | |
$request->setMethod(HTTP_METH_POST); | |
$request->setHeaders(array( | |
'Postman-Token' => '3bdefdd5-8df9-4fc1-a8b1-71f6143935cc', | |
'cache-control' => 'no-cache', | |
'Authorization' => 'Basic xxxxxxxxxxxx==', |
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 | |
$request = new HttpRequest(); | |
$request->setUrl('https://api.ebay.com/identity/v1/oauth2/token'); | |
$request->setMethod(HTTP_METH_POST); | |
$request->setHeaders(array( | |
'Postman-Token' => '5db47236-6d6b-48fe-b43f-912caa72a793', | |
'cache-control' => 'no-cache', | |
'Authorization' => 'Basic xxxxxxxxxxxx==', |
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" encoding="UTF-8"?> | |
<wsdl:definitions | |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xmime="http://www.w3.org/2005/05/xmlmime" | |
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" | |
xmlns:ns="urn:ebay:apis:eBLBaseComponents" | |
xmlns="urn:ebay:apis:eBLBaseComponents" | |
targetNamespace="urn:ebay:apis:eBLBaseComponents" | |
> |
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
<style> | |
.uk-scrollable-box { | |
border: none; | |
padding-top: 0; | |
padding-left: 0; | |
} | |
.collection-grid-avatar-container { |
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
{ | |
"11-05": { | |
"Day": "Friday", | |
"Pro": "Prügler", | |
"Con": "Glas", | |
"Element": "Solar" | |
}, | |
"12-05": { | |
"Day": "Saturday", | |
"Pro": "Schwergewicht", |
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 | |
/*** | |
* | |
* -- | |
-- Set character set the client will use to send SQL statements to the server | |
-- | |
SET NAMES 'utf8'; | |
-- |