Skip to content

Instantly share code, notes, and snippets.

View Maybach91's full-sized avatar
👁️
Whats poppin’?

Patrick Ludewig Maybach91

👁️
Whats poppin’?
View GitHub Profile
@Maybach91
Maybach91 / git-log-changed-files-to-csv
Created March 11, 2020 09:08
git log changed files in branch into csv
git log --since='last 4 months' --stat --pretty=format:'%h;%an;%ad;%s' > log.csv
// (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 April 6, 2020 08:30
[wordpress theme mail] Wordpress: Theme benutzen oder eigenes Design. Vorteile und Nachteile erläutert, zur besseren Budgetdefinierung

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

@Maybach91
Maybach91 / gatsby-starter-fsevents-build-fail-yarn-clean.sh
Last active April 6, 2020 08:29
[gatsby build fail] Gatsby Starter Build Fail fsevents, just run this within the downloaded gatsby starter https://github.com/yarnpkg/yarn/issues/3926#issuecomment-519922903 #gatsby #yarn #cache
yarn cache clean && yarn upgrade && yarn
@Maybach91
Maybach91 / git-branch-delete-without-remote.sh
Last active May 11, 2020 09:31
Remove MERGED local Branches without Remote https://stackoverflow.com/a/33548037/1468576 #git #branch #gitflow #remote
// https://stackoverflow.com/a/59912825/1468576
git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Maybach91
Maybach91 / fuzzySearch.js
Last active November 17, 2022 18:00
Simple Fuzzy Search Vanilla Javascript #fuzzysearch #javascript
// Source: https://slimvoice.co/static/js/client_select.js
// Referenced by Owner at https://dev.to/winduptoy/a-javascript-free-frontend-2d3e
const clientSelects = document.querySelectorAll('.clientsSelect__client');
const emptyMessage = document.getElementById('clientsSelect__noneFound');
const clientNames = [];
clientSelects.forEach(function(el) { clientNames.push(el.dataset.clientName); });
function fuzzySearch(query, dataset) {
const q = query ? query.trim().toLowerCase() : '';
@Maybach91
Maybach91 / javascript_resources.md
Last active August 29, 2015 14:21 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@Maybach91
Maybach91 / css_resources.md
Last active August 29, 2015 14:21 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@Maybach91
Maybach91 / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console