Skip to content

Instantly share code, notes, and snippets.

View santoshlite's full-sized avatar
🦁
Grrrr....

santosh santoshlite

🦁
Grrrr....
View GitHub Profile
@santoshlite
santoshlite / document_to_text.py
Created May 28, 2023 13:31 — forked from bufke/document_to_text.py
Convert odt, doc, docx, pdf to text with python and some linux programs. Doesn't require Libreoffice.
from subprocess import Popen, PIPE
from docx import opendocx, getdocumenttext
#http://stackoverflow.com/questions/5725278/python-help-using-pdfminer-as-a-library
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
from pdfminer.pdfpage import PDFPage
from cStringIO import StringIO
@santoshlite
santoshlite / test.md
Created March 29, 2023 04:27 — forked from ityonemo/test.md
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@santoshlite
santoshlite / get_started_with_empyrial.ipynb
Last active May 30, 2021 09:38
get_started_with_empyrial.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.