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
eval "$(/opt/homebrew/bin/brew shellenv)" | |
alias python="python3" | |
alias pip="pip3" | |
alias ll='ls -l' | |
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew' | |
export PYENV_ROOT="$HOME/.pyenv" | |
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" |
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 __future__ import print_function | |
import json | |
import urllib | |
import boto3 | |
import csv | |
import StringIO | |
print('Loading function') |
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 __future__ import absolute_import, print_function, unicode_literals | |
from streamparse.spout import Spout | |
import boto | |
from boto.sqs.connection import SQSError | |
import threading | |
try: | |
from Queue import Queue, Empty | |
except ImportError: | |
from queue import Queue, Empty |
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 random | |
import csv | |
import re | |
data0 = [] | |
target0 = [] | |
with open('first.file') as th: | |
temp = th.readlines() | |
data2= [line.strip() for line in temp] |