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
""" | |
@apiDefine admin User access only | |
This optional description belong to to the group admin. | |
@apiDefine owner User access only | |
This optional description belong to to the group owner. | |
""" | |
import foo |
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
'use strict'; | |
/* Singleton AutobahnJS Websocket Connection as AngularJS Service */ | |
angular.module('AutobahnJSWebsocketService', []) | |
.factory('Websocket', ['$q', function($q) { | |
var openSession = null; | |
var isOpening = false; | |
var waitingList = []; |
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
import re | |
def strip_margin(text): | |
return re.sub('\n[ \t]*\|', '\n', text) | |
def strip_heredoc(text): | |
indent = len(min(re.findall('\n[ \t]*(?=\S)', text) or [''])) | |
pattern = r'\n[ \t]{%d}' % (indent - 1) | |
return re.sub(pattern, '\n', text) |