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
directives.directive('headerSwitcher', function() { | |
return { | |
restrict: 'A', | |
scope: { | |
elementType: '=' | |
}, | |
link: function(scope, element, attrs) { | |
var headers = $(element).children(scope.elementType), | |
headerIndex = -1; |
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 time | |
class keyStore: | |
def __init__(self): | |
self.storage = {} | |
def put(self, key, value): | |
# create array if it doesn't exist | |
if key not in self.storage: | |
self.storage[key] = [] |
NewerOlder