Skip to content

Instantly share code, notes, and snippets.

View theDreamer911's full-sized avatar

Handhika Yanuar Pratama theDreamer911

View GitHub Profile
const getPositions = (s) => [Math.floor(s % 3), Math.floor(s / 3) % 3, Math.floor(s / 9) % 3];
const getPositions = (s) => [~~s % 3, ~~(s / 3) % 3, ~~(s / 9) % 3];
from pdf2image import convert_from_path
images = convert_from_path('example.pdf', 50)
for image in images:
image.save('output.png')
from pdf2image import convert_from_path
title = input("Pdf files name: ")
def menu():
global quality
print("""
Image format:
1. Very High Resolution - 700 dpi
const fetch = require("node-fetch");
fetch("https://type.fit/api/quotes")
.then((response) => response.json())
.then((data) => console.log(data))
const fetch = require("node-fetch");
fetch("https://type.fit/api/quotes")
.then((response) => response.json())
.then((data) => console.log(data[Math.floor(Math.random() * 1000)]));
def flip(text, arr):
return sorted(arr) if text == 'R' else sorted(arr, reverse=True)
LANGUAGES = {
'af': 'afrikaans',
'sq': 'albanian',
'am': 'amharic',
'ar': 'arabic',
'hy': 'armenian',
'az': 'azerbaijani',
'eu': 'basque',
'be': 'belarusian',
'bn': 'bengali',