I love both of you Discord and Spotify, but this new 30 seccond rule gets pretty annoying when my music gets turned off while just talking "to much." I mean talking kind of is the whole point of Discord...
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
/********************************************************************************* | |
** CIS 26B Extra Credit | |
** Advanced C | |
****************** | |
Multi-dimensional Arrays | |
Find a path of maximum value. |
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
#!/bin/bash | |
# args: browser | |
# example: ./getOpenTabs.sh "Brave Browser" | |
# credits: | |
# https://gist.github.com/samyk/65c12468686707b388ec43710430a421 | |
# TODO: | |
# validate args | |
# don't open app if not already open |
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
from http.server import HTTPServer | |
class HTTPAndHTTPSServer(HTTPServer): | |
def __init__(ssl_context, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.ssl_context = ssl_context | |
def get_request(self): | |
conn, addr = self.socket.accept() | |
if self.context and conn.recv(1, socket.MSG_PEEK) == b'\x16': |
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: [email protected] | |
from os import path | |
def split_path(location): | |
"""splits the path into a tuple of all it's parts using recursion""" | |
head, tail = path.split(location) | |
if tail: |
Ran into an issue where I needed to access a Postgres backup today. To my dismay I realized it was compressed and could only be accessed by importing it into a Postgres database. After fumbleing around for about 20 minutes setting one up, I decided I never wanted to do it again.
Put this in your PATH
and use it (pg_quick_recover backup.sql.db
) to quickly spin
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 : Noah Cardoza | |
School : De Anza | |
Class : MATH 22 | |
Useage : python rabbit.py <number-of-months> | |
""" | |
from argparse import ArgumentParser | |
from tabulate import tabulate |
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
from tabulate import tabulate | |
def linear_gcd(a, b): | |
table_cols = [] | |
(a0, s, t) = (a, 1, 0) | |
(b0, u, v) = (b, 0, 1) | |
remainder = quotient = new_u = new_v = None |
OlderNewer