View cabal.project
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
packages: . | |
constraints: text >= 2.0 | |
allow-newer: | |
aur:text, | |
aura:hashable, | |
aura:text, | |
cborg-json:text, | |
feed:text, |
View 1.py
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 pandas import Series | |
s = Series({ | |
4: 89.00, | |
6: 109.99, | |
8: 149.14, | |
10: 218.99, | |
12: 239.09, | |
14: 279.99, | |
16: 329.99, | |
18: 409.99, |
View .gitignore
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
# Editors | |
.vscode/ | |
.idea/ | |
# Vagrant | |
.vagrant/ | |
# Mac/OSX | |
.DS_Store |
View python-setup.md
This is my highly opinionated way of developing with Python locally. Use it, don't use it. But you probably know that it's a PITA to manage different projects with different dependencies targeting different Python versions, and there are different ways of installing Python too:
- Using the interpreters preinstalled in the OS
😵 - Using
brew
(orapt
etc.)😅 - Using the binaries from www.python.org
😫 - Using pyenv
😎
View asciidoc-static.adoc
There are 24 static site generators that support AsciiDoc sourcing.
View vtt2text.py
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
""" | |
Convert YouTube subtitles(vtt) to human readable text. | |
Download only subtitles from YouTube with youtube-dl: | |
youtube-dl --skip-download --convert-subs vtt <video_url> | |
Note that default subtitle format provided by YouTube is ass, which is hard | |
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which | |
is easier to process. |
View free-backend-hosting.md
View txt-to-google-keep-notes.py
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 a directory of text files as google keep notes. | |
#Text Filename is used for the title of the note. | |
import gkeepapi, os | |
username = 'username@gmail.com' | |
password = 'your app password' | |
keep = gkeepapi.Keep() | |
success = keep.login(username,password) |
View Makefile
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
# A Simple Makefile for LaTeX | |
# Author: Lester James V. Miranda | |
# E-mail: ljvmiranda@gmail.com | |
# Default variables which can be edited via the terminal | |
BUILDDIR = _build | |
COMPILER = pdflatex | |
PROJECT = main | |
BIBLIOGRAPHY = bibliography |
NewerOlder