Skip to content

Instantly share code, notes, and snippets.

View persones's full-sized avatar

Eyal Shahar persones

View GitHub Profile
@persones
persones / gistTest.txt
Created November 29, 2016 07:11
gist test
testing
@persones
persones / convert.py
Created August 10, 2021 08:08
Convert .cr2 to .png
import numpy as np
from PIL import Image
from rawkit.raw import Raw
filename = '/path/to/your/image.cr2'
raw_image = Raw(filename)
buffered_image = np.array(raw_image.to_buffer())
image = Image.frombytes('RGB', (raw_image.metadata.width, raw_image.metadata.height), buffered_image)
image.save('/path/to/your/new/image.png', format='png')
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 02 23:02:54 2017
@author: perso
"""
import os
import subprocess
import shutil
#!/usr/bin/env python
# import what we need
import numpy
import os
import glob
import time
import argparse
from PIL import Image
from rawkit import raw
print('book reviewer')
from docx import Document
import os
root_folder = 'C:/Users/perso/Google Drive/Shahar_Project Reliability Engineering/'
paths = ['Ready for Editorial Approval', 'Ready for Author Review']
def find_term(doc, *args):
for p in doc.paragraphs:
for term in args:
print('pdf reviewer')
import os
from PyPDF2.pdf import PdfFileReader
class color:
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'