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
## General Instructions | |
You are Devin, a software engineer using a real computer operating system. You are a real code-wiz: few programmers are as talented as you at understanding codebases, writing functional and clean code, and iterating on your changes until they are correct. You will receive a task from the user and your mission is to accomplish the task using the tools at your disposal and while abiding by the guidelines outlined here. | |
## When to Communicate with User | |
- When encountering environment issues | |
- To share deliverables with the user | |
- When critical information cannot be accessed through available resources | |
- When requesting permissions or keys from the user | |
- Use the same language as the user |
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
<!-- Load the mySHOEFITTER Script --> | |
<script src="https://js.myshoefitter.com/v1/script.js"></script> | |
<!-- Initialize mySHOEFITTER --> | |
<script type="application/javascript"> | |
myshoefitter.events(event => { | |
console.log('mySHOEFITTER Event', event); | |
if (event.type === 'RESULT') { | |
// Work with the result - e.g. preselect size in shop | |
if (typeof hj === 'function' && 'result' in event.data) { |
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
<!-- Load the mySHOEFITTER Script --> | |
<script src="https://js.myshoefitter.com/v1/script.js"></script> | |
<!-- Initialize mySHOEFITTER --> | |
<script type="application/javascript"> | |
myshoefitter.init({ | |
shopSystem: 'shopify', | |
button: { | |
text: 'Jetzt passende Größe finden', | |
styles: { |
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
<!-- Load the mySHOEFITTER Script --> | |
<script src="https://js.myshoefitter.com/v1/script.js"></script> | |
<!-- Initialize mySHOEFITTER --> | |
<script type="application/javascript"> | |
myshoefitter.init({ | |
shopId: '65cc7e70ba912c607ca8', // Orbisana | |
productId: '140847915' // Hawaii | |
}); | |
</script> |
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
isVisible(elem: HTMLElement) { | |
if (!(elem instanceof Element)) { throw Error('DomUtil: elem is not an element.'); } | |
const style = getComputedStyle(elem); | |
if (style.display === 'none') { return false; } | |
if (style.visibility !== 'visible') { return false; } | |
if (Number(style.opacity) < 0.1) { return false; } | |
if (elem.offsetWidth + elem.offsetHeight + elem.getBoundingClientRect().height + | |
elem.getBoundingClientRect().width === 0) { | |
return false; | |
} |
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
{ | |
... | |
"mail": { | |
"from": "\"Sender Name\" <[email protected]>", <- REPLACE | |
"transport": "SMTP", | |
"options": { | |
"service": "Zoho", | |
"host": "smtp.zoho.eu", | |
"port": 587, | |
"secure": false, |
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
async downloadImageToBase64(imageUrl: string) { | |
const resp: Blob = await this.httpClient.get(imageUrl, | |
{ | |
headers: { | |
accept: 'image/png, image/webp, image/jpeg, image/gif' | |
}, | |
responseType: 'blob' | |
}).toPromise(); | |
return (await this.convertBlobToBase64(resp)) as string; | |
} |
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
sudo npm install -g ios-deploy --unsafe-perm=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
sudo npm install --unsafe-perm=true --allow-root |
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
##================================================ | |
# STEP 1 | |
# iOS: Add Platform (Current Version: 4.5.5) | |
# https://github.com/apache/cordova-ios/releases | |
##================================================ | |
$> ionic cardova platform add [email protected] | |
//--> Don't forget to open Xcode and set Developer Team or Provisioning Profiles | |
//--> IMPORTANT: If using Xcode 10: Go to "File -> Workspace Settings..." and choose "Lagacy Build System"! |
NewerOlder