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
""" | |
This comes from Mahmoud Hashemi @mhashemi found at: | |
https://gist.github.com/mahmoud/db02d16ac89fa401b968 | |
This is an extension of the technique first detailed here: | |
http://sedimental.org/remap.html#add_common_keys | |
In short, it calls remap on each container, back to front, using the accumulating | |
previous values as the default for the current iteration. |
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
diff --git a/hangupsbot/plugins/slackrtm/core.py b/hangupsbot/plugins/slackrtm/core.py | |
index 4b316b4..e73930b 100644 | |
--- a/hangupsbot/plugins/slackrtm/core.py | |
+++ b/hangupsbot/plugins/slackrtm/core.py | |
@@ -596,6 +596,19 @@ class SlackRTM(object): | |
_slackrtm_conversations_set(self.bot, self.name, syncs) | |
return | |
+ def close(self): | |
+ for s in self.syncs: |
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
{{- $src := .Page.Resources.GetMatch (printf "*%s*" .Destination) }} | |
{{- $altText := .PlainText }} | |
{{- $imgTitle := replaceRE "{.*}$" "" .Title }} | |
{{- /* Parse attributes */ -}} | |
{{- $attrs := split ( trim ( index (findRE `{.*}` .Title ) 0 ) "{}" ) " " -}} | |
{{- $attributes := (dict) -}} | |
{{ range $attrs -}} | |
{{- if index (findRE `(\#)(.+)` .) 0 -}} | |
{{- /* IDs */ -}} |