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
const char bcd27seg[16] = { | |
0x3F, 0x06, 0x5b, 0x4f, | |
0x66, 0x6d, 0x7d, 0x07, | |
0x7f, 0x67, 0x77, 0x7c, | |
0x39, 0x5e, 0x79, 0x71} |
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
youtube.com##[aria-label="Shorts"]:upward(#dismissible):upward(1) | |
||i.ytimg.com/vi/*/hq720_2.jpg*$image | |
||youtube.com/shorts^$all |
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
import sqlite3 | |
from contextlib import redirect_stdout | |
ro_db = lambda a : "file:" + a + "?mode=ro" | |
db = sqlite3.connect("file:out.db?mode=ro", uri=True) | |
db.set_trace_callback(print) | |
c = db.cursor() |
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
""" | |
This script merges two coreprotect databases. It expects databases named '1.db' | |
and '2.db' and outputs 'out.db' (this can be changed on line 26). | |
It doesn't merge entity kills, and filters out hopper transactions and pistons, | |
everything else is merged 100%. It is a little rigid and simple as I wrote it | |
only for personal use and for use one time only. There is plenty of comments | |
though, so it should be fairly easy to understand. Feel free to expand on the code | |
and make it into a real app. | |
""" | |
""" |
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
* { | |
min-height: 100vh; | |
min-height: calc(var(--vh, 1vh) * 100); | |
} |
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
import java.math.BigInteger; | |
/** | |
* KombinacniCislo | |
*/ | |
public class KombinacniCislo | |
{ | |
public static void main(String[] args) | |
{ | |
int n = 0; |
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
/** | |
* KvadratickaSranda | |
*/ | |
public class KvadratickaSranda | |
{ | |
public static void main(String[] args) | |
{ | |
Fraction a = new Fraction(); | |
Fraction b = new Fraction(); | |
Fraction c = new Fraction(); |
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 ping3 import ping | |
import matplotlib.pyplot as plt | |
import datetime | |
from matplotlib.widgets import Button, TextBox | |
class Pingplot: | |
def __init__(self): | |
self.fig, self.ax = plt.subplots() |
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
#this script takes a file and makes it into a c string in a header file | |
file_name = "tetris.ch8" | |
newfile_name = "tetris.h" | |
start_string = '#define LOAD_STRING\nconst char import_string[] = {' | |
end_string = '};' | |
oldFile = open(file_name, "rb") | |
oldFile = oldFile.read() | |
oldFile = "".join( hex(x) +"," for x in oldFile) |
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
#simple script for downloading github repos easily | |
import requests | |
import zipfile | |
import os | |
url = 'https://github.com/jarekt/jlib/archive/master.zip' | |
folder = 'jlib' | |
#zip conents into this ^ folder | |
r = requests.get(url) |