Skip to content

Instantly share code, notes, and snippets.

View dam1's full-sized avatar

Damien Galan dam1

View GitHub Profile
// custom filter to convert a number to a Day of Week String
angular.module('filters', []).
filter('toDateString', function() {
return function (day) {
var str = dayOfWeekAsString(day);
return str;
}
function dayOfWeekAsString(dayIndex) {
#!/usr/bin/env bash
#
# Compile and install MongoDB with SSL support
# tested an works on Ubuntu 12.04 LTS x64 and Ubuntu 14.04 LTS x64
#
set -e
set -u
set -o pipefail