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
create table | |
alternative_medium ( | |
id bigint unsigned auto_increment, | |
medium int not null, | |
alternative_release int not null, | |
name varchar(255) null, | |
constraint id unique (id), | |
constraint name check (`name` <> '') | |
) collate utf8_unicode_ci charset = utf8 engine = InnoDB; |
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
create table blog_posts | |
( | |
post_id bigint(32) UNSIGNED not null unique auto_increment, | |
post_title varchar(255) not null default '', | |
post_content varchar(255) not null default '', | |
post_tags tinytext not null default 'Blog Post', | |
post_slug varchar(255) not null unique, | |
post_status enum ('Draft','Published','Scheduled','Removed') not null default 'Draft', | |
category_id bigint(32) UNSIGNED not null default 0, | |
created_at timestamp default NOW() not null, |
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
# ---------------------------------------------------------------------------------------------------------------------- | |
# Create the continense table | |
# ---------------------------------------------------------------------------------------------------------------------- | |
DROP TABLE IF EXISTS `continents`; | |
CREATE TABLE `continents` | |
( | |
'global_id' int NOT NULL AUTO_INCREMENT DEFAULT '0' COMMENT 'Global ID', | |
'code' char(2) NOT NULL DEFAULT '' COMMENT 'Code', |
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
DROP TABLE IF EXISTS accounts; | |
CREATE TABLE accounts | |
( | |
id INTEGER PRIMARY KEY NOT NULL, | |
name VARCHAR(255), | |
hashed_password VARCHAR(255), | |
salt VARCHAR(255), | |
created_at DATETIME, | |
updated_at DATETIME, |
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
#!/usr/bin/python | |
import pandas as pd | |
import os | |
path = 'D:/IdeaProjects/Dara.gov/data/' # Directory where the data is stored | |
url = 'https://data.mesaaz.gov/resource/39rt-2rfj.csv' # URL of the data | |
filename = 'mesa_police_incidents.csv' # Name of the file to save the data | |
# Check if the path and file 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
.red.lighten-5{background-color:#ffebee} | |
.red-text.text-lighten-5{color:#ffebee} | |
.red-border.border-lighten-5{border-color:#ffebee} | |
.red-i.lighten-5{background-color:#ffebee!important} | |
.red-text-i.text-lighten-5{color:#ffebee!important} | |
.red-border-i.border-lighten-5{border-color:#ffebee!important} | |
.red.lighten-4{background-color:#ffcdd2} | |
.red-text.text-lighten-4{color:#ffcdd2} | |
.red-border.border-lighten-4{border-color:#ffcdd2} |
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
CREATE DATABASE IF NOT EXISTS `inventory` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */; | |
USE `inventory`; | |
-- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64) | |
-- | |
-- Host: 127.0.0.1 Database: inventory | |
-- ------------------------------------------------------ | |
-- Server version 8.0.14 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */; |
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
-- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64) | |
-- | |
-- Host: 127.0.0.1 Database: notification | |
-- ------------------------------------------------------ | |
-- Server version 8.0.14 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION */; | |
SET NAMES utf8; |
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
-- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64) | |
-- | |
-- Host: 127.0.0.1 Database: organization | |
-- ------------------------------------------------------ | |
-- Server version 8.0.14 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION = @@COLLATION_CONNECTION */; | |
SET NAMES utf8; |
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
CREATE DATABASE IF NOT EXISTS `calendar` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */; | |
USE `calendar`; | |
-- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64) | |
-- | |
-- Host: 127.0.0.1 Database: calendar | |
-- ------------------------------------------------------ | |
-- Server version 8.0.14 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */; |
OlderNewer