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
SELECT `read_ribbons`.`user_id` AS `user_id`, | |
`comments`.`id` AS `comment_id`, | |
`read_ribbons`.`story_id` AS `story_id`, | |
`comments`.`parent_comment_id` AS | |
`parent_comment_id`, | |
`comments`.`created_at` AS | |
`comment_created_at`, | |
`parent_comments`.`user_id` AS | |
`parent_comment_author_id`, |
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 indic_transliteration import sanscript | |
from indic_transliteration.sanscript import SchemeMap, SCHEMES, transliterate | |
def to_hindi(text): | |
return transliterate(text, sanscript.HK, sanscript.DEVANAGARI) | |
def to_roman(text): | |
return transliterate(text, sanscript.DEVANAGARI, sanscript.HK) |
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
# -*- coding: utf-8 -*- | |
#python 3.x | |
import csv | |
import sys | |
#convert a "comma separated values" file to vcf contact cards | |
#USAGE: | |
#CSV_to_Vcards.py CSV_filename |