Skip to content

Instantly share code, notes, and snippets.

Avatar
👁️
Whats poppin’?

Patrick Ludewig Maybach91

👁️
Whats poppin’?
View GitHub Profile
@Maybach91
Maybach91 / formular.html
Created Aug 19, 2020
[wordpress email template] #wordpress
View formular.html
<div class="row">
<div class="col-md-6">
<div class="form-item">
<label> Vorname
[text* vorname placeholder "z.B. Chris"] </label>
</div>
</div>
<div class="col-md-6">
<div class="form-item">
<label> Nachname
@Maybach91
Maybach91 / Pull-Merge-Request-Template.md
Last active Aug 19, 2020
[Pull Request / Merge Request Template for Gitworkflow] When creating a new Pull Request this template should be used as prefilled content for the PR description. Has to be placed in .github/ folder in the DEFAULT branch of the repo. #github #pullrequest #mergerequest #template
View Pull-Merge-Request-Template.md

Description:

Describe what you have changed in this Pull Request and why.

Related User Story:

https://jira.atlassian.net/browse/XX-XXX

Tasks:

  • Add a list of tasks here that need to done to implement the change
  • All tasks must be checked before a (final) review is requested on the Pull Request
@Maybach91
Maybach91 / onEdit.gs
Last active Aug 17, 2020
[Google Sheet Script - increment cell value onEdit() of specific row] #gsheet #actionscript #onedit #googlesheet #onedit #increment
View onEdit.gs
/*
** Increment a cell value by number, when edit a specific cell.
*/
/*
** Edit ONLY these ↓ variables
**/
// The name of the sheet, where the values has to be updated
var sheetName = 'Tabellenblatt1';
@Maybach91
Maybach91 / netlify-function.js
Last active Jun 5, 2020
[gatsby + shopify + recurring payments] "instead of taking the user to shopify's checkout, you need to create a recharge's checkout. This can be only done from a server (backend) so you will either have to set one up or use serverless functions (I am using functions from netlify)." – https://github.com/blancomaberino - https://spectrum.chat/gats…
View netlify-function.js
/* eslint-disable */
const fetch = require('node-fetch')
const rechargeToken = process.env.RECHARGE_TOKEN
const subscriptionIntervalFrequency = process.env.SUBSCRIPTION_INTERVAL_FREQUENCY || 30
const subscriptionIntervalUnit = process.env.SUBSCRIPTION_INTERVAL_UNIT || 'day'
/**
* Builds request headers
* @return {Array}
*/
const buildHeaders = () => ({
@Maybach91
Maybach91 / related-blogposts-articles-json.liquid
Last active Apr 10, 2020
[Shopify iterate over more than 50 - all collection items] Shopify has a limit to only give 50 items back per collection. So we have to offset the loops till we got all items.
View related-blogposts-articles-json.liquid
@Maybach91
Maybach91 / bash.sh
Created Apr 6, 2020
[run php locally]
View bash.sh
php -S localhost:5000
@Maybach91
Maybach91 / git-log-changed-files-to-csv
Created Mar 11, 2020
git log changed files in branch into csv
View git-log-changed-files-to-csv
git log --since='last 4 months' --stat --pretty=format:'%h;%an;%ad;%s' > log.csv
View pert-pricing-method-optimistic-realistic-pessimistic
// (optimistic + (2 * realistic) + (3 * pessimistic)) / 6
(1h + (2 * 2h) + (3 * 5h)) / 6 = 3,33 h
@Maybach91
Maybach91 / wordpress-theme-or-design-costs-mail.md
Last active Apr 6, 2020
[wordpress theme mail] Wordpress: Theme benutzen oder eigenes Design. Vorteile und Nachteile erläutert, zur besseren Budgetdefinierung
View wordpress-theme-or-design-costs-mail.md

Möglichkeit 1:

Ihr oder Ich sucht ein Theme raus, was so verwendet wird, wie es in der Demo angezeigt wird. Und man nur Bilder und Texte austauscht sowie Schriftart und Farbe ändert.

Vorteil:

Relativ schnell umsetzbar, kostengünstiger, bereits getestet, oft viele fertige Seitentemplates

Nachteil:

Viele (Plugin)abhängigkeiten (bedarf vieler Updates und hohe Wartung), evtl. optisch nicht so wie angedacht, limitiert was Entwicklung/Erweiterbarkeit/Gestaltung angeht, viel Recherchearbeit (auch was funktionale Möglichkeiten angeht), angewiesen an den Theme-Entwickler und deren Motivation Bugs etc. zu beheben, funktionelle Einschränkungen, nicht performant umgesetzt, kein sauberer Code