Skip to content

Instantly share code, notes, and snippets.


Dominik Wilkowski dominikwilkowski

Block or report user

Report or block dominikwilkowski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dominikwilkowski / header.js
Last active Nov 11, 2015
Doc strange outline love
View header.js
//detecting tab key press
$('body').on('keydown', function(e) {
var keyCode = e.keyCode || e.which;
if(keyCode == 9) {
GUI.debugging( 'GUI: Tab detected', 'report' );
View Sticky-Footer.markdown
dominikwilkowski / navigation.liquid
Last active Oct 13, 2016
Jekyll automatic page navigation
View navigation.liquid
{% comment %}
This snippet spits out the HTML navigation derived from the front matter settings in your markdown files.
{% include navigation.liquid %}
HTML direct output
dominikwilkowski / 010-app.js
Last active May 31, 2016
Javascript modulated setup
View 010-app.js
* App framework and settings
* [Description of application]
* @license [url] [description]
* @author [author & @email]
* @repository [url]
dominikwilkowski / jsonnav.html
Last active Aug 29, 2015
Jekyll data-driven navigation
View jsonnav.html
{% comment %}
This snippet checks the data "navigation.json" file for pages not included
{% include jsonnav.html %}
HTML direct output
dominikwilkowski / .bash_profile
Last active Aug 29, 2015
My .bash_profile file
View .bash_profile
export PATH=/usr/local/bin:$PATH
# promt colors
export PS1="\[\033[0;32m\]\w \[\033[0;97m\]\$\[\033[0m\] "
# ls alias for color-mode
alias ls='ls -lhaG'
# cd up
alias ..='cd ..'
dominikwilkowski / Gruntfile.js
Last active Aug 29, 2015
Basic grunt setup
View Gruntfile.js
'use strict';
* dev // files in root just move to ./prod/ and *.html files will look for grunt-includes directives
* ├── HTMLincludes // HTML snippets included by grunt-includes
* │ └── windows.html
* ├── fonts // files will simply be moved to ./prod/fonts/
View gist:19ac1947a6100851887f
/*****************************| MYSQL CONNECTION FUNCTION |*****************************/
* Simple MySQL abstraction layer for the MySQLi absctration as a replacement
* @param resource $mysqli The MySQLi connection link for upgrade to MySQLi
* @param string $query The MySQL query for prepaired statement
* @param array $v The parameters to replace ? in $query. First element must be the type
* @param integer $o Option for more debug infos [0]=no infos(default) [1]=adding debug infos
dominikwilkowski / get-image.liquid
Last active Aug 29, 2015
Get first image from content
View get-image.liquid
{% comment %}
This snippet gets the first image from the parameter text
{% include 'get-image' with page.content %}
{{ imageSrc }} is the string of the original image
dominikwilkowski / shop.js
Last active Jul 3, 2019
Convert variant dropdown into swatches, multiple-option-sollution
View shop.js
/**************************************************************| CONVERT VARIANT TO SWATCHES |*/
$(function() {
if($(".single-option-selector").length) {
$(".single-option-selector").each(function(i) {
var $thisSelect = $(this);
var $newClass = "js-option-selector-" + i;
var $newOptions = '<ul class="new-variant-swatchs">';
var $currentOption = $thisSelect.val();
You can’t perform that action at this time.