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
#include <stdio.h> | |
#include <string.h> | |
#include <inttypes.h> | |
// OLED hardware versions | |
#define OLED_V1 0x01 | |
#define OLED_V2 0x02 | |
// commands | |
#define LCD_CLEARDISPLAY 0x01 |
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
{ | |
"table_name" :"product_information", | |
"column_value": "3", | |
"user_id":"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
curl -i -H "Content-Type: application/json" -X POST --data "@test.json" http://oracle12c2:8080/ords/soe/utilities/like |
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
curl -X GET "http://oracle12c2:8080/ords/soe/utilities/getlikes?table_name=product_information&column_value=2&user_id=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> |
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
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
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
-- Author : Dominic Giles | |
-- Date : 21/7/2016 | |
-- File : utilities_module.sql | |
-- Description : Relational ORDS module definitions and test data for ORDS Demo | |
-- Run As : This script should be run by the app user. soe in this example | |
begin | |
ORDS.enable_schema( | |
p_enabled => TRUE, |
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 |
OlderNewer