Skip to content

Instantly share code, notes, and snippets.

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK

@eaCe
eaCe / semantic-commit-messages.md
Created April 12, 2021 12:43 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@eaCe
eaCe / filters.php
Created March 24, 2021 10:46 — forked from eolant/filters.php
Contact form 7 Bootstrap 4 custom radio and checkbox buttons filter to remove spans and change HTML structure
/**
* Adjust contact form 7 radios and checkboxes to match bootstrap 4 custom radio structure.
*/
add_filter('wpcf7_form_elements', function ($content) {
$content = preg_replace('/<label><input type="(checkbox|radio)" name="(.*?)" value="(.*?)" \/><span class="wpcf7-list-item-label">/i', '<label class="custom-control custom-\1"><input type="\1" name="\2" value="\3" class="custom-control-input"><span class="wpcf7-list-item-label custom-control-label">', $content);
return $content;
});
$.Redactor.prototype.counter = function ()
{
return {
init: function ()
{
this.core.editor().on('keyup.redactor-plugin-counter', $.proxy(this.counter.count, this));
this.countContainer = $('<div class="redactor-styles counter"></div>');
this.core.editor().after(this.countContainer);
this.counter.count();
},
IM HEAD
############
<script>
var elricco = {};
elricco.funcs = [];
</script>
MODULAUSGABE
############
<?php if (!rex::isBackend()): ?>
// Alerts
@include alert-variant($background, $border, $text-color);
// Background Variant
@include bg-variant($parent, $color);
// Border Radius
@include border-top-radius($radius);
@include border-right-radius($radius);
@include border-bottom-radius($radius);