This file contains hidden or 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 getPositions = (s) => [Math.floor(s % 3), Math.floor(s / 3) % 3, Math.floor(s / 9) % 3]; |
This file contains hidden or 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 getPositions = (s) => [~~s % 3, ~~(s / 3) % 3, ~~(s / 9) % 3]; |
This file contains hidden or 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 pdf2image import convert_from_path | |
images = convert_from_path('example.pdf', 50) | |
for image in images: | |
image.save('output.png') |
This file contains hidden or 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 pdf2image import convert_from_path | |
title = input("Pdf files name: ") | |
def menu(): | |
global quality | |
print(""" | |
Image format: | |
1. Very High Resolution - 700 dpi |
This file contains hidden or 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 fetch = require("node-fetch"); | |
fetch("https://type.fit/api/quotes") | |
.then((response) => response.json()) | |
.then((data) => console.log(data)) |
This file contains hidden or 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 fetch = require("node-fetch"); | |
fetch("https://type.fit/api/quotes") | |
.then((response) => response.json()) | |
.then((data) => console.log(data[Math.floor(Math.random() * 1000)])); |
This file contains hidden or 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 flip(text, arr): | |
return sorted(arr) if text == 'R' else sorted(arr, reverse=True) |
This file contains hidden or 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
// handhikayp | |
/*<!--*/ | |
(function () { | |
var qss = '&cb=' + Math.floor(99999999999 * Math.random()); | |
try { | |
qss += '&ref=' + encodeURIComponent(document.referrer); | |
} catch (e) {} | |
try { | |
qss += '&sc_r=' + encodeURIComponent(screen.width + 'x' + screen.height); |
This file contains hidden or 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
// handhikayp | |
/*<!--*/ | |
(function () { | |
var qss = '&cb=' + Math.floor(99999999999 * Math.random()); | |
try { | |
qss += '&ref=' + encodeURIComponent(document.referrer); | |
} catch (e) {} | |
try { | |
qss += '&sc_r=' + encodeURIComponent(screen.width + 'x' + screen.height); |
This file contains hidden or 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
LANGUAGES = { | |
'af': 'afrikaans', | |
'sq': 'albanian', | |
'am': 'amharic', | |
'ar': 'arabic', | |
'hy': 'armenian', | |
'az': 'azerbaijani', | |
'eu': 'basque', | |
'be': 'belarusian', | |
'bn': 'bengali', |