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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "utils/sqlite3.h" | |
#define _MAX_BUFFER 256 | |
#define MOZ_PROFILE_PATH "\\Mozilla\\Firefox\\Profiles\\" | |
#define MOZ_PROFILE_TOKEN "default-release" | |
#define MOZ_WEB_VISITS_FILE "places.sqlite" |
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
#include <iostream> | |
using namespace std; | |
struct Node | |
{ | |
int num; | |
Node *next; | |
}; |
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 fitz | |
import pytesseract | |
def convert_to_img(pdf): | |
doc = fitz.open(pdf) | |
page = doc.loadPage(0) | |
pix = page.getPixmap() | |
output = f"{pdf.split(".")[0]}.png" | |
pix.writePNG(output) |
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 sys import argv | |
import json | |
import requests as req | |
def main(user): | |
res = req.get(f'https://api.github.com/users/{user}') | |
data = res.json() | |
with open(f'{user}.json', 'w', encoding='utf-8') as file: | |
json.dump(data, file, ensure_ascii = False, indent = 4) |
NewerOlder