This file contains 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
<?xml version='1.0' encoding='UTF-8'?> | |
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd"> | |
<meta lastmodifieddate="2023-10-24"> | |
<creator>Gephi 0.10.1</creator> | |
<title></title> | |
<description></description> | |
</meta> | |
<graph defaultedgetype="directed" mode="static"> | |
<attributes class="node" mode="static"> | |
<attribute id="0" title="color" type="string"/> |
This file contains 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
<?xml version='1.0' encoding='UTF-8'?> | |
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd"> | |
<meta lastmodifieddate="2023-10-24"> | |
<creator>Gephi 0.10.1</creator> | |
<title>EU Regulatory Universe Graph Network Demo</title> | |
<description></description> | |
</meta> | |
<graph defaultedgetype="undirected" mode="static"> | |
<attributes class="node" mode="static"> | |
<attribute id="0" title="color" type="string"/> |
This file contains 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
Running all lines of code in: | |
Windows path seperator: \ | |
OS X & Linux path sep: / | |
(On Windows)Shift + Right Click (on looped_data_loading.py)| Copy as Path:"C:\Users\XGOBY\LSTMforSHM\src\looped_data_loading.py" | |
>>>os.getcwd() | |
'C:\\Users\\XGOBY\\LSTMforSHM\\src' | |
>>>os.path.abspath(__file__) | |
'C:\\Users\\XGOBY\\LSTMforSHM\\src\\looped_data_loading.py' |
This file contains 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
# 1] | |
# Get the absolute path to directory which contains the Python script you want to/are run(ning) | |
# Note: Folder <==> Directory | |
# E.g.: Absolute (abs) path to the directory (dir): C:\Users\John\ProjectXFolder\ProjectXSubFolder | |
# E.g.: Absolute (abs) path to the Python script: C:\Users\John\ProjectXFolder\ProjectXSubFolder\get_data.py | |
# get_data.py | |
import os | |
script_path = os.path.dirname(os.path.abspath(__file__)) | |
print("script_path: ", script_path) |
This file contains 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
# 1] | |
# Get the absolute path to directory which contains the Python script you want to/are run(ning) | |
# Note: Folder <==> Directory | |
# E.g.: Absolute (abs) path to the directory (dir): C:\Users\John\ProjectXFolder\ProjectXSubFolder | |
# E.g.: Absolute (abs) path to the Python script: C:\Users\John\ProjectXFolder\ProjectXSubFolder\get_data.py | |
# get_data.py | |
import os | |
script_path = os.path.dirname(os.path.abspath(__file__)) | |
print("script_path: ", script_path) |
This file contains 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
# 1] | |
# Get the absolute path to directory which contains the Python script you want to/are run(ning) | |
# Note: Folder <==> Directory | |
# E.g.: Absolute (abs) path to the directory (dir): C:\Users\John\ProjectXFolder\ProjectXSubFolder | |
# E.g.: Absolute (abs) path to the Python script: C:\Users\John\ProjectXFolder\ProjectXSubFolder\get_data.py | |
# get_data.py | |
import os | |
script_path = os.path.dirname(os.path.abspath(__file__)) | |
print("script_path: ", script_path) |
This file contains 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
# Misc | |
## Emphasis | |
**This is bold text** | |
__This is bold text__ | |
*This is italic text* |
This file contains 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 lxml import html | |
import requests | |
from time import sleep | |
import json | |
import argparse | |
from collections import OrderedDict | |
from time import sleep | |
def parse(ticker): | |
url = "http://finance.yahoo.com/quote/%s?p=%s"%(ticker,ticker) |
This file contains 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 json | |
import os | |
class Settings: | |
_config_location = 'config.json' | |
def __init__(self): | |
if os.path.exists(self._config_location): | |
self.__dict__ = json.load(open(self._config_location)) |
This file contains 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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
NewerOlder