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 os, sys, subprocess, pty, select, re | |
| BUFSIZ = 1024 | |
| MAGIC = '\004\004' # ctrl-D x2 | |
| escape = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]') | |
| data = '\n'.join([ | |
| '1 + 1', | |
| '2000', | |
| '(function() {})', |
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
| *-------------------------------------------------------------------------- | |
| * Model generated by Motega software: | |
| * | |
| * Modeling Of Tubes Employing Genetic Algorithms | |
| * | |
| * Models contain 1G resistors from all nodes to earth in order to avoid | |
| * floating nodes. Triode and tetrode/pentode models contain a diode for | |
| * simulating grid current. | |
| * | |
| * Non-commercial use is permitted, but at your own risk... This model |
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
| #!/bin/bash | |
| # https://gist.github.com/robwierzbowski/5430952/ | |
| # Create and push to a new github repo from the command line. | |
| # Grabs sensible defaults from the containing folder and `.gitconfig`. | |
| # Refinements welcome. | |
| # Gather constant vars | |
| CURRENTDIR=${PWD##*/} | |
| GITHUBUSER=$(git config github.user) |