Skip to content

Instantly share code, notes, and snippets.

View davidsaccavino's full-sized avatar

David davidsaccavino

View GitHub Profile
#! python 3
# db.py - database query program
Houses = {'San Francisco' : '$1,375,000', 'New York City' : '$1,600,000', 'Austin' : '$579,000'}
Cars = {'F-Type' : '80,000', 'Aventador' : '400,000', 'Civic' : '25,000'}
Laptops = {'Surface 4' : '1000', 'MacBook Pro' : '3000', 'ThinkPad' : '1300'}
subjects = [Houses, Cars, Laptops]
#! python 3
# thebois.py - checks if someone is ya boi
import re
inputName = input('What\'s yo bois name? ')
inputParams1 = input('Does ya boi hit u up often fam? ')
if inputParams1 == 'yes' or inputParams1 == 'y' or inputParams1 == 'Yes':
#! python 3
# griff.py - Makes fortnite unplayable between 9am until 2pm and not after 10pm on weekdays.
import datetime, os, time
dt = datetime.datetime.now()
while True:
if dt.weekday() < 5:
try:
#! python 3
# griff.py - Makes fortnite unplayable between 9am until 2pm and not after 10pm on weekdays.
import datetime, os, time
dt = datetime.datetime.now()
while True:
if dt.weekday() < 5:
try:
let fs = require('fs');
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
let dateTimeNow = new Date();
import re, sys
i = 0
message = ''
for elt in sys.argv:
if i > 0:
message += ' ' + elt
i += 1
langRegex = re.compile(r'visual\s*basic|vb[asic]*?|visual\s*b[asic]?|v[isual]?\s*b[asic]?|javascript|js|java\s*?s[cript]?|php|perl')
langSub = langRegex.sub('python', message, flags=re.I)
#! python 3
# unix.py - authentication app
username = input('What\'s your username? ')
password = input('What\'s your password? ')
users = {
david = {
#! python 3
# checks if certain ip's ping from a json
import json, os, subprocess
dir = "/Users/david/Desktop/programming/scripts n shit/ping.json"
with open(dir, "r") as f:
<html>
<head>
<script>
let editValueState = false;
function editValue(){
if(editValueState == false)
{
editValueState = true;
document.getElementById("editbtn").innerHTML = "editing";
import discord, re
client = discord.Client()
TOKEN = 'your token here'
url = 'https://us17.campaign-archive.com/?u=b0c288d012c3990e6593e76e1&id=79473da32d&e=eb0d880e49'
p = re.compile(r'learn\.joma\.io|joma\'?s (?:resume|cv)')
@client.event