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
| from kivy.uix.codeinput import CodeInput | |
| from kivy.lang import Builder | |
| from kivy.app import App | |
| from pygments.lexers.configs import IniLexer | |
| class MainApp(App): | |
| def build(self): | |
| return CodeInput(lexer=IniLexer()) |
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
| from kivy.base import runTouchApp | |
| from kivy.event import EventDispatcher | |
| from kivy.lang import Builder | |
| from kivy.properties import ObjectProperty, ListProperty, StringProperty, \ | |
| NumericProperty, Clock, partial | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.uix.textinput import TextInput | |
| import os | |
| import subprocess | |
| import threading |
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
| from sh import ssh, ErrorReturnCode_1, ErrorReturnCode_255 | |
| aggregated = "" | |
| def ssh_interact(char, stdin): | |
| global aggregated | |
| aggregated += char | |
| if aggregated.startswith("Enter passphrase"): | |
| stdin.put("mypass\n") | |
| try: |
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
| from kivy.base import runTouchApp | |
| from kivy.uix.floatlayout import FloatLayout | |
| from kivy.factory import Factory | |
| from kivy.lang import Builder | |
| from kivy.uix.actionbar import ContextualActionView | |
| if __name__ == "__main__": | |
| # XXX clean the first registration done from '__main__' here. |
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
| from kivy.base import runTouchApp | |
| from kivy.lang import Builder | |
| runTouchApp(Builder.load_string(''' | |
| ActionBar: | |
| pos_hint: {'top':1} | |
| btn: btn | |
| ActionView: | |
| use_separator: True | |
| ActionPrevious: |
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 ast | |
| import codegen | |
| class CallWrapper(ast.NodeTransformer): | |
| def visit_Call(self, node): | |
| if node.col_offset == 0: | |
| return None | |
| return node | |
| src = open('test1.py').read() |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <list> | |
| #include <windows.h> | |
| using namespace std; | |
| #include <conio.h> |
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
| #! /usr/bin/env python | |
| from utils import * | |
| pending_requests = 0 | |
| result = {} | |
| def response_parse(response): | |
| global pending_requests |
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
| <h2 class="page-header">Linear Systems (A⋅x = b)</h2> | |
| <div class="alert alert-warning" ng-if="error != null"> | |
| <strong>Error</strong> {{error}} | |
| </div> | |
| <form class="form-horizontal"> | |
| <div class="form-group"> |
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
| from math import inf | |
| K = 3 | |
| class Arquivo: | |
| registros = [3, 4, 5, 1, 2, 6, 8] |