Skip to content

Instantly share code, notes, and snippets.

View ChrisRoss5's full-sized avatar

Chris ChrisRoss5

View GitHub Profile
@ChrisRoss5
ChrisRoss5 / test.html
Created September 29, 2022 01:01
Firebase CDN sample
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://www.gstatic.com/firebasejs/ui/6.0.1/firebase-ui-auth.js"></script>
<link
type="text/css"
rel="stylesheet"
function z1(l: number[]) {
if (!l.length) return [];
return [
l.reduce((a, b) => a + (b > 0 ? b : 0), 0),
l.reduce((a, b) => a + (b < 0 ? b : 0), 0),
];
}
function z2(s: string) {
return [...new Set(s.split(" "))].join(" ");
@ChrisRoss5
ChrisRoss5 / INFOKUP - Evaluator za natjecanje
Created May 16, 2019 15:49
INFOKUP - Evaluator za natjecanje
Ovaj evaluator nudi 100 puta jednostavniji pregled rjesenja, a baziran je na GUI izradjenom u Pythonu s Tkinterom.
UPUTE:
Download -> https://mega.nz/#!Lmp1hQ7S!UoGd0F7OVAHuPYhDHOZy7dc6n0L4Qu1_Y-EahLvKK-A
Prije pokretanja potrebno je instalirani Evaluator.exe staviti u mapu
zajedno s vlastitim .py rjesenjima i mapom 'Test' koja sadrzi testne podatke,
a moze se preuzeti s INFOKUP stranica zajedno sa zadacima.
@ChrisRoss5
ChrisRoss5 / Useless TkInter program
Last active May 16, 2019 07:18
Android Lock Patterns w/UI
import tkinter as tk
import tkinter.messagebox as msg
import itertools
import time
import webbrowser
import threading
import sqlite3
import smtplib
import os
# Searching through and extracting from scraped http data
from bs4 import BeautifulSoup
# Short pause for exiting the program and animations
from time import sleep, time
# Infinite iteration over the for loop
from itertools import cycle
# Processing multiple tasks at once
from threading import Thread
# Enable colored output
from colorama import init