Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 __future__ import print_function | |
import argparse | |
import os | |
import time | |
import humanize | |
import psutil | |
from colorama import Fore, Back | |
from colorama import Style, init |
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 argparse | |
import datetime | |
import os | |
import socket | |
import cx_Oracle | |
import paramiko | |
from colorama import Fore | |
from colorama import Style |
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 matplotlib.pyplot as plt | |
import numpy as np | |
# Simple projectile calculations using numpy and matplotlib | |
# Author : Dominic Giles | |
g = 9.8 # gravity | |
h = 0 # height where projectile is launched from | |
v = 10.0 # velocity of launch |
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 argparse | |
import time | |
import cx_Oracle | |
from prettytable import PrettyTable | |
class RedoLogManager(): | |
def get_log_files_info(self, cursor): |
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 matplotlib import style | |
import pandas as pd | |
from matplotlib import dates | |
import matplotlib.pyplot as plt | |
timings = pd.Series(['2016-12-25 08:10:00', '2016-12-25 08:30:00', '2016-12-25 08:50:00', '2016-12-25 08:58:00', | |
'2016-12-25 09:08:00', '2016-12-25 09:14:00', '2016-12-25 09:20:00', '2016-12-25 09:26:00', | |
'2016-12-25 09:35:00', '2016-12-25 09:46:00', '2016-12-25 09:55:00', '2016-12-25 10:05:00', | |
'2016-12-25 10:15:00', '2016-12-25 10:30:00', '2016-12-25 10:55:00', '2016-12-25 11:10:00', | |
'2016-12-25 11:30:00', '2016-12-25 11:54:00', '2016-12-25 12:15:00']) |
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 requests | |
url = 'http://tpc12server:8080/ords/soe/soda/latest/OrdersCollection' | |
# Delete Collection | |
response = requests.delete(url) | |
# Create Collection | |
response = requests.put(url) |
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
// Author : Dominic Giles | |
// Date : 21/7/2016 | |
// File : liketable.js | |
// Description : Javascript to enable rows to be liked in a given table | |
// Note : DataTable paging is excluded for brevity | |
// Javascript Libraries : JQuery, JQuery UI, BootStrap, DataTable | |
$(document).ready(function () { | |
var $userName = 'dominic.giles'; |
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
<!--Author : Dominic Giles--> | |
<!--Date : 21/7/2016--> | |
<!--File : products.html--> | |
<!--Description : HTML to display simple table--> | |
<!--Javascript Libraries : JQuery, JQuery UI, DataTable--> | |
<!--CSS Files : BootStrap, Font-Awesome--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |