This file contains 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
/** | |
* @ngdoc directive | |
* @name kf.directives:kalendae | |
* @restrict A | |
* | |
* @description | |
* The `kalendae` directive is used to attach a Kalendae datepicker to an element. | |
* | |
* @element ANY | |
* @param {string} kalendae options passed to the Kalendae datepicker; see http://github.com/ChiperSoft/Kalendae |
This file contains 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
angular.module('kf.filters', []). | |
/** | |
* @ngdoc filter | |
* @name kf.filters:dates | |
* @function | |
* | |
* @description | |
* Passed an Array of Dates, returns a String joining them together with a delimiter. The dates | |
* themselves may be customized with an Angular `date` filter specifier. | |
* |
This file contains 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
angular.module('kf.filters', []). | |
/* | |
* Because ngScope $watchCollection uses === to evaluate whether a collection has changed, we | |
* need a way to return the same Date objects -- in the identity (not equality) sense -- to avoid | |
* a $digest death spiral. | |
*/ | |
factory('DateCache', ['$cacheFactory', function($cacheFactory) { | |
return $cacheFactory('dateCache'); | |
}]). |
This file contains 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
import BaseHTTPServer, SimpleHTTPServer, ssl | |
httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler) | |
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./localhost.pem', keyfile='./localhost.key', server_side=True) | |
httpd.serve_forever() |
This file contains 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 | |
# Bash script for fetching ALL of a Drip account's whatevers to file. | |
# Not fancy, but it works. | |
# | |
# Usage: ./drip-fetch-all.sh <resource> | |
# | |
# brian@knotfield.com | |
RESOURCE=$1 # subscribers, campaigns, tags, ... |