Skip to content

Instantly share code, notes, and snippets.

View stoll's full-sized avatar
🚧
Digital construction worker

Sebastian Stoll stoll

🚧
Digital construction worker
View GitHub Profile
@stoll
stoll / Shopify: Refund Notification in HTML (Danish)
Created April 30, 2015 12:26
Shopify: Refund Notification in HTML (Danish)
{% if customer.name %}
<p>Hej, {{ customer.name }}!</p>
<p></p>
{% endif %}
<p>{{ shop_name }} har refunderet din ordre ({{ name }}) {% if amount > 0 %}til i alt {{ amount | money_with_currency }}{% endif %}{% if refund_line_items.size > 0 %} for:</p>
<p>
{% for line in refund_line_items %}
{{ line.quantity }} x {{ line.line_item.title }}</p>
{% endfor %}
{% else %}
@stoll
stoll / Shopify: Shipping confirmation in HTML (Danish)
Created April 30, 2015 12:32
Shopify: Shipping confirmation in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
{% if billing_address.name %}
<p>Hej, {{ billing_address.name }}!</p>
<p></p>
{% endif %}
<p>{% if fulfillment.item_count == item_count %}Alle{% elsif fulfillment_status == 'fulfilled' %}De seneste{% else %}Nogle af{% endif %} varerne fra ordren {{ name }} er nu blevet afsendt:</p>
<p>{% for line in fulfillment.fulfillment_line_items %}<img src="{{ line.line_item | img_url: 'small' }}" />{{ line.quantity }} x {{ line.line_item.title }}<br>
{% endfor %}</p>
<p>{% if requires_shipping %}De er afsendt {% if fulfillment.tracking_company %}via {{ fulfillment.tracking_company }} {% endif %}til den følgende adresse:</p>
@stoll
stoll / Shopify: Shipping update in HTML (Danish)
Created April 30, 2015 12:39
Shopify: Shipping update in HTML (Danish)
<!-- TRANSLATED BY: Sebastian Stoll from www.justonline.dk -->
{% if billing_address.name %}
<p>Hej, {{ billing_address.name }}!</p>
{% endif %}
<p>De følgende, afsendte varer {{ name }} er blevet opdateret med ny leveringsstatus:</p>
<ul style="list-style-type:none">
{% for line in fulfillment.fulfillment_line_items %}<li>
<img src="{{ line.line_item | img_url: 'small' }}" />
@stoll
stoll / gist:36dfed3f2bfa322f54b7
Last active August 29, 2015 14:20
Tooltips Example - Bootstrap 3
<!-- Tooltip example -->
<button type="button" class="btn btn-default"
data-toggle="tooltip"
data-placement="top"
title="Tooltip on top">Tooltip on top</button>
<!-- The following code will enable all tooltips in the document -->
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
@stoll
stoll / Cors.php
Created June 12, 2017 13:22
Cors middleware
<?php
namespace App\Http\Middleware;
use Closure;
class Cors
{
/**
* Handle an incoming request.
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
function str_slug($title, $separator = '-') {
// Convert all dashes/underscores into separator
$flip = $separator == '-' ? '_' : '-';
$title = preg_replace('!['.preg_quote($flip).']+!u', $separator, $title);
// Replace @ with the word 'at'
$title = str_replace('@', $separator.'at'.$separator, $title);
@stoll
stoll / checkout.liquid
Created June 25, 2020 05:05 — forked from bxmas13/checkout.liquid
Shopify Plus Checkout.liquid template. Can be used with Timber
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="{{ locale }}" dir="{{ direction }}" class="{{ checkout_html_classes }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, height=device-height, minimum-scale=1.0, user-scalable=0">
<title>{{ shop.name }} - {{ page_title }}</title>
{{ content_for_header }}
@stoll
stoll / INSTALL-SHOPWARE-SIX.md
Last active July 2, 2020 13:47 — forked from MadMikeyB/INSTALL-SHOPWARE-SIX.md
Shopware 6 - Laravel Valet Driver

Install Shopware 6 (For Development)

cd ~/sites
valet park
# clone shopware
git clone -b 6.1 https://github.com/shopware/development.git shopware
# change directory
cd shopware
# install dependencies
@stoll
stoll / greeting.txt
Last active September 14, 2020 17:09
🙋‍♂️ Welcome to my Github!
Nice to see you :-)