Skip to content

Instantly share code, notes, and snippets.

View rlopez0689's full-sized avatar

Rodrigo rlopez0689

View GitHub Profile
from unittest import TestCase
from utility_class import UtilityClass
class TestUtilityClass(TestCase):
def test_reverse_list(self):
result = UtilityClass.reverse_list([1, 2, 3, 4, 5])
self.assertEqual([5, 4, 3, 2, 1], result)
from functools import reduce
orders = [
{
'order_id': 98348,
'title': 'A Moon Shaped Pool',
'quantity': 4,
'price': 40
},
def example1():
for i in range( 3 ):
x = int( input( "enter a number: " ) )
y = int( input( "enter another number: " ) )
print( x, '/', y, '=', x/y )
def example2( L ):
print( "\n\nExample 2" )
sum = 0
sumOfPairs = []
import os
csv_directory = "CSVs"
signals_search = ["temperatura", "otracosa"]
missing_signals_file = {}
for csv_file in os.listdir(csv_directory):
with open("{}/{}".format(csv_directory, csv_file)) as file_csv:
header = file_csv.readline()
missing_signals_file[csv_file] = [signal for signal in signals_search if signal not in header]
@rlopez0689
rlopez0689 / keybase.md
Created August 19, 2018 18:59
keybase.md

Keybase proof

I hereby claim:

  • I am rlopez0689 on github.
  • I am rlopez0689 (https://keybase.io/rlopez0689) on keybase.
  • I have a public key whose fingerprint is F02E 8E1F 397A 78E1 5812 FCC9 AB48 DA16 D7E0 2737

To claim this, I am signing this object: