BVB Source Codes

voltron Show angularview.py Source code

Return Download voltron: download angularview.py Source code - Download voltron Source code - Type:.py
  1. import logging
  2. import pygments
  3. from voltron.plugin import *
  4. from voltron.lexers import *
  5. from voltron.api import *
  6.  
  7. from flask import *
  8.  
  9. log = logging.getLogger('api')
  10.  
  11.  
  12. class AngularViewPlugin(WebPlugin):
  13.     name = 'angularview'
  14.  
  15.  
  16. class FormatDisassemblyRequest(APIRequest):
  17.     _fields = {'disassembly': True}
  18.  
  19.     def dispatch(self):
  20.         try:
  21.             res = FormatDisassemblyResponse(
  22.                 disassembly=pygments.highlight(self.disassembly.strip(), LLDBIntelLexer(), pygments.formatters.HtmlFormatter()))
  23.         except Exception as e:
  24.             msg = "Exception formatting disassembly: {}".format(repr(e))
  25.             log.exception(msg)
  26.             res = APIGenericErrorResponse(msg)
  27.  
  28.         return res
  29.  
  30.  
  31. class FormatDisassemblyResponse(APIResponse):
  32.     _fields = {'disassembly': True}
  33.  
  34.  
  35. class FormatDisassemblyPlugin(APIPlugin):
  36.     request = "format_disasm"
  37.     request_class = FormatDisassemblyRequest
  38.     response_class = FormatDisassemblyResponse
  39.  
downloadangularview.py Source code - Download voltron Source code
Related Source Codes/Software:
IGListKit - A data-driven UICollectionView framework for build... 2017-01-11
androidmvp - MVP Android Example 2017-01-11
svelte - The magical disappearing UI framework ... 2017-01-11
kcptun - A Simple UDP Tunnel Based On KCP 2017-01-11
poisontap - Exploits locked/password protected computers over ... 2017-01-10
ecma262 - Status, process, and documents for ECMA262 ... 2017-01-11
react-native-elements - React Native Elements UI Toolkit 2017-01-11
tensorflow-zh - Google new open source ai system TensorFlow Chines... 2017-01-11
forum - Blue light (the Lantern) the official BBS 2017-01-11
socketcluster - Highly scalable realtime framework ... 2017-01-11
react-templates - Light weight templates for react ... 2017-04-28
afterglow-theme - A minimal dark Theme for Sublime Text 2 and 3 2017-04-28
jwt-go - Golang implementation of JSON Web Tokens (JWT) 2017-04-28
DeerResume - Tool MarkDown online resume, online preview, edit,... 2017-04-28
mailgen - A Node.js package that generates clean, responsive... 2017-04-28
desk - A lightweight workspace manager for the shell 2017-04-28
Glimpse - The open source diagnostics platform for the web ... 2017-04-28
xonsh - Python-powered, cross-platform, Unix-gazing shell ... 2017-04-28
react-monocle - A developer tool to visualize a React application'... 2017-04-28

 Back to top