Skip to content

Instantly share code, notes, and snippets.

View mariusbolik's full-sized avatar
🏠
Working from home

Marius B. mariusbolik

🏠
Working from home
View GitHub Profile
@mariusbolik
mariusbolik / empressofheels.html
Created November 7, 2024 12:23
mySHOEFITTER x Empress of Heels
<!-- 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: {
styles: {
border: '2px solid var(--secondary_button_background_gradient)',
@mariusbolik
mariusbolik / script.html
Last active June 12, 2024 08:55
Triple20 mySHOEFITTER
<!-- 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: {
@mariusbolik
mariusbolik / orbisana.html
Created February 14, 2024 09:21
mySHOEFITTER x Orbisana Demo Code
<!-- 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>
@mariusbolik
mariusbolik / isVisible.ts
Created November 11, 2022 10:18
Check if HTML Element is visible in Viewport
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;
}
@mariusbolik
mariusbolik / package.json
Last active January 15, 2022 14:00
Ghost Blog Zoho Email Configuration (Nodemailer)
{
...
"mail": {
"from": "\"Sender Name\" <[email protected]>", <- REPLACE
"transport": "SMTP",
"options": {
"service": "Zoho",
"host": "smtp.zoho.eu",
"port": 587,
"secure": false,
@mariusbolik
mariusbolik / image.service.ts
Last active December 10, 2021 07:48
Angular - Download Image as Base64
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;
}
sudo npm install -g ios-deploy --unsafe-perm=true
sudo npm install --unsafe-perm=true --allow-root
@mariusbolik
mariusbolik / Ionic & Cordova Build Commands
Last active November 11, 2018 08:45
The right way to build a cordova app without errors
##================================================
# 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"!
@mariusbolik
mariusbolik / build.gradle
Created October 1, 2018 16:44
Cordova: Fix Android build error by adding com.google.gms:google-services to build.gradle
buildscript {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong