The first time you use this script, you will have to give it permissions:
chmod 0777 split_database.sh
chmod 0777 combine_database.sh
Then you can run the scripts like this:
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>App</title> | |
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script> | |
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> | |
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js"></script> | |
<style> | |
import discord | |
import os | |
import requests | |
from discord.ext import commands | |
DISCORD_BOT_TOKEN = os.environ["DISCORD_BOT_TOKEN"] | |
RANDOM_CAT_URL = "https://cataas.com" |
-- The only properties with 10 or more full bathrooms are apartments. | |
SELECT class | |
WHERE fbath >= 10 | |
-- On average, properties designed from an architect's plan sold for twice as much as properties designed from a stock plan. | |
SELECT tp_plan, AVG(sale_price) | |
WHERE tp_plan IN (1, 2) | |
GROUP BY tp_plan |
/* | |
* 1. Go to https://iit.campuslabs.com/engage/organization/acm/roster | |
* 2. Open the browser console | |
* 3. Copy and paste this script into the console and run | |
* 4. Keep tab open and do not click anywhere until the script completes | |
* 5. Save the page output as a .csv | |
*/ | |
var showing = document.querySelector('#roster-members').parentElement.children[1].children[0].innerText.split(' '); | |
var total = parseInt(showing[3]); |
/* | |
* 1. Go to https://iit.campuslabs.com/engage/organization/acm/roster | |
* 2. Open the browser console | |
* 3. Copy and paste this script into the console and run | |
* 4. Keep tab open and do not click anywhere until the script completes | |
* 5. Save the page output as a .csv | |
*/ | |
var showing = document.querySelector('#roster-members').parentElement.children[1].children[0].innerText.split(' '); | |
var total = parseInt(showing[3]); |
SELECT RD_NO | |
WHERE weather_condition = "RAIN" | |
AND crash_type = "INJURY AND / OR TOW DUE TO CRASH" | |
AND (INJURIES_FATAL = 0 or injuries_fatal is null) | |
AND crash_hour IN (13,14,15) | |
AND DAMAGE = "OVER $1,500" | |
and first_CRASH_type not in ('REAR END','TURNING' | |
,'ANGLE', 'PARKED MOTOR VEHICLE', 'HEAD ON' | |
, 'FIXED OBJECT', "SIDESWIPE SAME DIRECTION") | |
AND STREET_DIRECTION in ("E","W") |