Skip to content

Instantly share code, notes, and snippets.

@etasi
etasi / maven-commands.md
Created September 21, 2017 09:25
MAVEN: Often used commmands

Load Maven Artifakt on the command line

mvn org.apache.maven.plugins:maven-dependency-plugin:2.4:get -DartifactId=[artifactId] -DgroupId=[groupId] -Dversion=[version]

@etasi
etasi / recipes-kokosrollen.md
Last active March 5, 2017 12:00
Recipes: Kokosrollen

Kokosrollen

für Keksbasis:

  • 0,5 kg Keks (am Besten aus Türkische laden)
  • 20 g Puderzucker
  • 4 dkg Kakao
  • 30 g Butter
  • Rum aroma nach geschmack (ich habe es nicht reingetan)
@etasi
etasi / genesis-add-search.php
Created February 18, 2015 18:18
Genesis: Add Search Form and Date to Primary Navigation
<?php
//* Do NOT include the opening php tag
add_filter( 'wp_nav_menu_items', 'theme_menu_extras', 10, 2 );
/**
* Filter menu items, appending either a search form or today's date.
*
* @param string $menu HTML string of list items.
* @param stdClass $args Menu arguments.
*
@etasi
etasi / functions.php
Last active August 29, 2015 14:15 — forked from srikat/functions.php
Genesis: Add Search Form and Simple Social Icons to Primary Navigation
genesis_register_sidebar( array(
'id' => 'nav-social-menu',
'name' => __( 'Nav Social Menu', 'your-theme-slug' ),
'description' => __( 'This is the nav social menu section.', 'your-theme-slug' ),
) );
add_filter( 'genesis_nav_items', 'sws_social_icons', 10, 2 );
add_filter( 'wp_nav_menu_items', 'sws_social_icons', 10, 2 );
function sws_social_icons($menu, $args) {
@etasi
etasi / vim-great-cheatsheet.md
Created February 17, 2015 23:05
VIM: A Great Vim Cheat Sheet
layout title
default
A Great Vim Cheat Sheet

#A Great Vim Cheat Sheet

Note: If you’re decent at vim and want your mind blown, check out Advanced Vim.

@etasi
etasi / functions.php
Created February 16, 2015 19:51
Genesis: Make primary menu sticky
//Enqueue script for sticky primary menu
add_action( 'wp_enqueue_scripts', 'enqueue_jquery_pin' );
/**
* Enqueue script for Sticky Primary Menu/Widgets
*/
function enqueue_jquery_pin() {
wp_enqueue_script( 'jquery-pin', get_stylesheet_directory_uri() . '/js/jquery.pin.js', array( 'jquery' ), '1.0.0', true );
wp_enqueue_script( 'jquery-pin-init', get_stylesheet_directory_uri() . '/js/jquery.pin.init.js', array( 'jquery-pin' ), '1.0.0', true );
}
@etasi
etasi / functions.php
Last active January 20, 2018 07:24 — forked from srikat/functions.php
Genesis: Display Featured images above Posts with Title as overlay
//* Register a custom image size for Featured images above entries on list pages
add_image_size( 'archive-featured-image', 800, 300, true );
add_action( 'genesis_before_entry', 'sk_featured_image_above_posts' );
/**
* Display Featured Image above Post Titles regardless of Content Archives settings
*
* Context: Posts page, all archives and search results pages.
*
* @author Sridhar Katakam
@etasi
etasi / functions.php
Last active November 6, 2017 19:49 — forked from srikat/functions.php
Genesis: Display a Fixed Mini Header when Scrolling down in Genesis
add_action( 'genesis_after_header', 'sk_mini_fixed_header' );
/**
* Mini header with a logo image at left and menu at right.
*
* @author Sridhar Katakam
* @link http://sridharkatakam.com/
*/
function sk_mini_fixed_header() { ?>
<div class="mini-header">
<div class="wrap">
@etasi
etasi / sublime-shortcuts-linux.md
Created February 15, 2015 18:11
Sublime: Keyboard Shortcuts - Linux/Windows

.. sublime: wordWrap false

Keyboard Shortcuts - Windows/Linux

.. warning:: This topic is a draft and may contain wrong information.

Editing

@etasi
etasi / vim-shortcuts.md
Last active August 29, 2015 14:15
VIM: Shortcuts

VIM Keyboard Shortcuts Cheat Sheet

Main

Shortcut Function
Escape Gets out of the current mode into the “command mode”. All keys are bound of commands.
i “Insert mode” for inserting text. Keys behave as expected.
: “Last-line mode” where Vim expects you to enter a command such asto save the document.

Basic Navigation Keys