Skip to content

Instantly share code, notes, and snippets.

View akshayapte's full-sized avatar

Akshay Apte akshayapte

View GitHub Profile
@akshayapte
akshayapte / beam_example.py
Last active March 30, 2019 07:44
Get list of lists for tokenizing
from __future__ import absolute_import
from __future__ import print_function
import logging
import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
class TestTokenizerDoFn(beam.DoFn):
@akshayapte
akshayapte / vowels.py
Created September 11, 2017 08:39
Solution to interview problem
import string
import ast
import sys
rhyme_notes = string.ascii_lowercase+string.ascii_uppercase
vowels = ['a','e','i','o','u','y']
idx = 0
rhyme_dict = {}
ans = ''
ip = raw_input("Enter String Tuple\n")
input_list = ast.literal_eval(ip)