Skip to content

Instantly share code, notes, and snippets.

View faxemaxee's full-sized avatar

Max Höffner faxemaxee

View GitHub Profile
@faxemaxee
faxemaxee / navigation.css
Last active March 25, 2020 13:50
navigation extension for static starter
.NavigationWrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
}
.NavigationSpacer {
display: block;
width: 100%;
@faxemaxee
faxemaxee / .zshrc
Last active November 9, 2021 13:37
slightly altered terminal theme based on: https://github.com/carloscuesta/materialshell
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/m.hoeffner/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
function getFormData($form) {
var unindexed_array = $form.serializeArray();
var indexed_array = {};
$.map(unindexed_array, function (n, i) {
if (n["name"].indexOf('[]') >= 0) {
var key = n["name"].slice(0, -2);
if (!indexed_array[key]) indexed_array[key] = [];
indexed_array[key].push(n['value']);
// } else {