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
using Oracle.ManagedDataAccess.Client; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace OracleConn | |
{ |
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
-- CATEGORY TABLE | |
INSERT INTO category VALUES('ca-1', 'Fruits and Vegetables', GETDATE()) | |
INSERT INTO category VALUES('ca-2', 'Meat and Fish', GETDATE()) | |
INSERT INTO category VALUES('ca-3', 'Cooking', GETDATE()) | |
INSERT INTO category VALUES('ca-4', 'Beverages', GETDATE()) | |
INSERT INTO category VALUES('ca-5', 'Home and Cleaning', GETDATE()) | |
INSERT INTO category VALUES('ca-6', 'Pest Control', GETDATE()) | |
INSERT INTO category VALUES('ca-7', 'Office Products', GETDATE()) | |
INSERT INTO category VALUES('ca-8', 'Beauty Products', GETDATE()) | |
INSERT INTO category VALUES('ca-9', 'Health Products', GETDATE()) |
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
DROP TABLE logins | |
DROP TABLE sales | |
DROP TABLE products | |
DROP TABLE category | |
DROP TABLE employee | |
DROP TABLE users | |
---------- CREATE TABLES ---------- |
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 <GL/gl.h> | |
#include <GL/glu.h> | |
#include <GL/glut.h> | |
#include <math.h> | |
#include <ctime> | |
#include <cstdlib> | |
#include <iostream> |
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
// normal version | |
const random = ([...arr]) => { | |
let rand; | |
for (let i = 0; i < arr.length; i++) { | |
rand = Math.floor(Math.random() * (arr.length - i) + i); | |
[arr[i], arr[rand]] = [arr[rand], arr[i]]; | |
} |
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
let limit = 15; // Must be odd number | |
let output = ''; | |
let middle = Math.floor(limit/2); // middle index of the limit | |
let indexes = []; // Indexes of where to start outputing X | |
let show; // how many X will be shown | |
let __i = 0; // to access the indexes | |
function log(o) { | |
console.log(o); | |
} |