I hereby claim:
- I am 4383 on github.
- I am 4383 (https://keybase.io/4383) on keybase.
- I have a public key whose fingerprint is 0695 6466 CF91 B28D EEB4 554F 07C1 7441 3641 8D7A
To claim this, I am signing this object:
import subprocess, os, sys | |
# Unbuffer output | |
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) | |
tee = subprocess.Popen(["tee", "log.txt"], stdin=subprocess.PIPE) | |
os.dup2(tee.stdin.fileno(), sys.stdout.fileno()) | |
os.dup2(tee.stdin.fileno(), sys.stderr.fileno()) |
# First export manualy your google bookmarks in place exported file in the same directory of this script | |
# After launch this script (python google-bookmarks-to-markdown-format.py) and have fun ! | |
def run(): | |
output = [] | |
with open('GoogleBookmarks.html') as export: | |
html = export.readlines() | |
for line in html: | |
if 'H3' in line: | |
output.append('## {0}'.format(line[36:-6].capitalize())) | |
if 'A HREF' in line: |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: UTF-8 -*- | |
import argparse | |
import os | |
from const import BASE_PATH | |
from const import VERSION | |
def sample(): | |
pass |
First I would say thank you to Jerry Gamblin for allowing me to reuse its work.
This checklist is based on Jerry Gamblin works:
import string #fixed typo was using | |
text = str(input('tip your text to convert: ', )) | |
rot13 = string.maketrans( | |
"ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz", | |
"NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm") | |
string.translate(text, rot13) | |
# Example | |
# 'Hello World! | |
# 'Uryyb Jbeyq! |