Skip to content

Instantly share code, notes, and snippets.

View tobiasbaehr's full-sized avatar

Tobias Bähr tobiasbaehr

View GitHub Profile
@tobiasbaehr
tobiasbaehr / date_popup.js
Created February 9, 2016 10:56
Sync End with Date + minDate
diff --git a/date_popup.js b/date_popup.js
index bbf25e2..4b11bca 100644
--- a/date_popup.js
+++ b/date_popup.js
@@ -11,6 +11,25 @@
$(this)
.datepicker(datePopup.settings)
.addClass('date-popup-init');
+ var startDateId = this.id;
+ if (startDateId.indexOf('value-datepicker') > -1) {
# Version number compare helper function
# Created by Dennis Williamson (http://stackoverflow.com/questions/4023830/bash-how-compare-two-strings-in-version-format)
function compareVersions() {
if [[ $1 == $2 ]]
then
return 0
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty fields in ver1 with zeros
<?php
/**
* @file
* Features export for core components.
*
* - date_format_types
*
* date_format_types_features_revert() and date_format_types_features_rebuild()
* should be managed by hook_date_format_types().
*
if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w $(parse_git_branch)$(parse_git_status)$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
parse_git_branch() {
local BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'`
echo -e "\033[m${BRANCH}\033[m"