I hereby claim:
- I am ryanb58 on github.
- I am ryanb58 (https://keybase.io/ryanb58) on keybase.
- I have a public key ASBWzKdm8QwSV0rBOy-yc6Ml3apXU36BUHJgp3019cjnAwo
To claim this, I am signing this object:
| if /i "%processor_architecture%"=="x86" ( | |
| IF NOT DEFINED PROCESSOR_ARCHITEW6432 ( | |
| echo Run 32 bit command | |
| ) ELSE ( | |
| echo Run 64 bit command 1 | |
| ) | |
| ) else ( | |
| echo Run 64 bit command 2 | |
| ) |
| # Base Vehicle: | |
| class Vehicle: | |
| # Constructor | |
| def __init__(self, owner): | |
| self.owner = owner | |
| def get_owner(self): | |
| return self.owner | |
| # Methods in which every subclass will be required to implement. |
| import signal | |
| import logging | |
| # class based on: http://stackoverflow.com/a/21919644/487556 | |
| class DelayedInterrupt(object): | |
| def __init__(self, signals): | |
| if not isinstance(signals, list) and not isinstance(signals, tuple): | |
| signals = [signals] | |
| self.sigs = signals |
| import othermodule, types | |
| function_names = [othermodule.__dict__.get(a).__name__ for a in dir(othermodule) if isinstance(othermodule.__dict__.get(a), types.FunctionType)] | |
| for item in items: | |
| print "from ... import " + item |
| # WOrks in python 2.7 not sure if it works in python 3. | |
| # Just straight up connect by any means possible. | |
| from ftplib import FTP_TLS | |
| def connect(): | |
| ftp = FTP_TLS() | |
| ftp.debugging = 2 | |
| ftp.connect('localhost', 2121) | |
| ftp.login('developer', 'password') |
I hereby claim:
To claim this, I am signing this object:
| # Setup folder to be browseable via webdav or a webbrowser. | |
| pip install cherrypy | |
| pip install wsgidav | |
| wsgidav --host=0.0.0.0 --port=8000 --root=/home/ryanb58/Documents |
| $ curl -XPUT 'http://localhost:9200/twitter/' -d '{ | |
| index : { | |
| number_of_shards : 3 | |
| number_of_replicas : 2 | |
| } | |
| }' |
| Author: David Lund | |
| IdentTypes | |
| ---- | |
| ID Desc DataType | |
| 1 First Name Char | |
| 2 Last Name Char | |
| 3 SSN Char | |
| 4 StateId Int | |
| 5 Foo |