Skip to content

Instantly share code, notes, and snippets.

View honzapara's full-sized avatar

Jan Pára honzapara

  • Morpht
  • Czech Republic
View GitHub Profile
[
{
"quoteText": "Quote # 1 text goes here",
"author": "Author #1"
},
{
"quoteText": "Quote # 2 text goes here",
"author": "Author #2"
},
{
{
"firstName": "Rack",
"lastName": "jackson",
"gender": "man",
"age": 24,
"address": {
"streetAddress": "126 Udhna",
"city": "san jone",
"state": "CA",
"postalCode": "394221"
@honzapara
honzapara / MYTHEME.theme
Created May 13, 2020 09:12
Form element templates in Drupal 8
<?php
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
function MYTHEME_theme_suggestions_form_element_alter(&$suggestions, $variables) {
array_unshift($suggestions, 'form_element__' . $variables['element']['#type']);
}
/**
@honzapara
honzapara / gist:2c07814ec1dccc552046363b28d9f702
Created January 8, 2020 19:24 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@honzapara
honzapara / iterm2-solarized.md
Created July 8, 2019 21:05 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k