###phd###
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
| module Program | |
| open Chiron | |
| open Suave | |
| open Suave.Filters | |
| open Suave.Json | |
| open Suave.Operators | |
| open Suave.Successful | |
| type User = |
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 "topfind" | |
| #thread | |
| #require "core" | |
| open Core | |
| let rec factorial (number : int) = | |
| if number >= 1 then number * factorial (number - 1) | |
| else 1 ;; |
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
| let rec factorial (number : int) = | |
| if number >= 1 then number * factorial (number - 1) | |
| else 1 | |
| print_int (factorial 242);; |
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
| if resp.status_code == 200: | |
| return resp | |
| if resp.status_code == 404: | |
| raise ModelNotFound(instance_type, self.model_names) | |
| if resp.status_code == 500: | |
| raise InternalInventoryError |
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
| bash-4.2# which python3.6 | |
| /usr/local/bin/python3.6 | |
| bash-4.2# echo $PATH | |
| /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/oracle/12.2/client64/bin | |
| bash-4.2# |
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
| bash-4.2# head $(which pip3.6) | |
| #!/usr/bin/python3.6 | |
| # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6' | |
| __requires__ = 'pip==9.0.1' | |
| import re | |
| import sys | |
| from pkg_resources import load_entry_point | |
| if __name__ == '__main__': | |
| sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) |
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
| bash-4.2# python3.6 -m site | |
| sys.path = [ | |
| '/syncro', | |
| '/usr/local/lib/python36.zip', | |
| '/usr/local/lib/python3.6', | |
| '/usr/local/lib/python3.6/lib-dynload', | |
| '/usr/local/lib/python3.6/site-packages', | |
| ] | |
| USER_BASE: '/root/.local' (doesn't exist) | |
| USER_SITE: '/root/.local/lib/python3.6/site-packages' (doesn't exist) |
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
| bash-4.2# pip3.6 install cx_Oracle | |
| Requirement already satisfied: cx_Oracle in /usr/lib64/python3.6/site-packages | |
| bash-4.2# python3.6 app.py | |
| Traceback (most recent call last): | |
| File "app.py", line 1, in <module> | |
| import cx_Oracle | |
| ModuleNotFoundError: No module named 'cx_Oracle' |
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
| open Suave | |
| open Suave.Successful | |
| open Suave.Filters | |
| open Suave.Operators | |
| open FSharp.Data | |
| open System | |
| open Apache.NMS.ActiveMQ | |
| let factory = ConnectionFactory "tcp://wk:32779" |