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 | |
while : | |
do | |
if [ $1 == '-bib' ] | |
then | |
lualatex -interaction nonstopmode $2 > /dev/null | |
bibtex $2 | |
lualatex -interaction nonstopmode $2 > /dev/null |
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
#!/usr/bin/python3 | |
''' | |
Converts files from the notetaking program I use to pdfs for sharing. | |
''' | |
import os, sys | |
import cairosvg | |
import img2pdf | |
from PIL import Image |
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/env python3 | |
import cv2 | |
import os | |
vidcap = cv2.VideoCapture('norm.mp4') | |
success, image = vidcap.read() | |
dir = os.getcwd() | |
count = 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
<!doctype html> | |
<html> | |
<body style="background:rgba(255, 180, 108, 0.78)"> | |
<div class="beginning" style="font-family:arial"> | |
<svg width="1400" height="900" xmlns="http://www.w3.org/2000/svg" version="1.1"> |
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/sh | |
green='\e[0;32m' | |
cyan='\e[0;36m' | |
white='\e[0m' | |
blue='\e[1;34m' | |
echo "${cyan}Enter a package from pypi:${green}" | |
read package |
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/env bash | |
#https://gist.github.com/Fitzy1293/5c6019479456054b267764354df2a899 | |
if [ $# -eq 0 ]; then | |
echo "Enter a pdf to create a bibtex citation for" | |
ls *.pdf | tr ' ' '\n' | |
exit 1 | |
fi |
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
''' | |
Program to solve differentiable functions of one variable. | |
LHS defines what variable it's a function of. | |
No format checking right now. | |
Example of line separated file, one equation per line. | |
c(x) = r * (cos(x) + sqrt(-1)*sin(x)) | |
a(t) = 1/2 * g * t ** 2 | |
f(x) = sin(x**2) * x^2 |
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
def append_10(the_list=None): | |
if the_list is None: | |
the_list = [] | |
the_list.append(10) | |
return the_list | |
original_list = [4, 5] | |
print('unused list in top level scope') | |
print('\toriginal_list: ', original_list, sep='\t') |
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 urllib.parse | |
import urllib.request | |
BASE_URL = 'http://libgen.rs/search.php' | |
def libgen_post_request(query, pagenumber): | |
url_encoded_query = urllib.parse.urlencode({'req':query}) | |
extra_params = '&open=0&res=25&view=simple&phrase=1&column=def&res=100' | |
libgen_current_page = f'&page={pagenumber}' | |
full_url = f'{BASE_URL}?{url_encoded_query}{extra_params}{libgen_current_page}' |
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 subprocess | |
import os | |
import argparse | |
parser = argparse.ArgumentParser(description='Process some integers.') | |
parser.add_argument('-c,', '--convert', dest='CONVERT_TYPE', help='filetype to convert to') | |
ARGS = parser.parse_args() | |
def convert_to_other_ebook_format(input_ebook, output_format): |
OlderNewer