Skip to content

Instantly share code, notes, and snippets.

View rm17tink's full-sized avatar

TinkInc rm17tink

  • New York misses the old York
View GitHub Profile
@rm17tink
rm17tink / FizzBuzz.py
Created November 11, 2021 17:22 — forked from jaysonrowe/FizzBuzz.py
FizzBuzz Python Solution
def fizzbuzz(n):
if n % 3 == 0 and n % 5 == 0:
return 'FizzBuzz'
elif n % 3 == 0:
return 'Fizz'
elif n % 5 == 0:
return 'Buzz'
else:
return str(n)
@rm17tink
rm17tink / insert2DB.py
Created June 23, 2021 15:26 — forked from lyleaf/insert2DB.py
Insert pandas dataframe to Oracle database using cx_Oracle
"""
ATTENTION:
When using executemany with a list of tuples, the numbers representing the rows has to be strictly from 1 to the last. Or else it won't work.
I really don't understand why.
"""
import cx_Oracle
from parserFWF import getConfigDF
HOTEL_CONFIG = getConfigDF() #dataframe