This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function date_difference(from_date, to_date) { | |
| if (to_date < from_date) { | |
| return date_difference(to_date, from_date); | |
| } | |
| var DAY_IN_MS = 1000 * 60 * 60 * 24; | |
| // count first day | |
| from_date = new Date(from_date.getTime() - DAY_IN_MS); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository -y ppa:libreoffice/libreoffice-4-1 | |
| sudo apt-get install \ | |
| libreoffice=1:4.1.6-0ubuntu1~trusty1~ppa1 \ | |
| libreoffice-base=1:4.1.6-0ubuntu1~trusty1~ppa1 \ | |
| libreoffice-base-core=1:4.1.6-0ubuntu1~trusty1~ppa1 \ | |
| libreoffice-core=1:4.1.6-0ubuntu1~trusty1~ppa1 \ | |
| libreoffice-calc=1:4.1.6-0ubuntu1~trusty1~ppa1 \ | |
| libreoffice-draw=1:4.1.6-0ubuntu1~trusty1~ppa1 \ | |
| libreoffice-impress=1:4.1.6-0ubuntu1~trusty1~ppa1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/ruby | |
| # uppercase characters | |
| uchar = 'A-ZÄÖÜÁÀÉÈ' | |
| # lowercase characters | |
| lchar = 'a-zäöüßáàéè' | |
| # all characters | |
| char = uchar + lchar | |
| # whitespace characters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ -n "$1" ] | |
| then | |
| host -t mx $1 | awk '{print $7}' | sed 's/.$//' | |
| fi |
NewerOlder