Skip to content

Instantly share code, notes, and snippets.

View RHDZMOTA's full-sized avatar
👨‍💻
More info at: rhdzmota.com

Rodrigo H. Mota RHDZMOTA

👨‍💻
More info at: rhdzmota.com
View GitHub Profile
i, a, b = (0, 0, 1); s=(
'i, a, b = (i+1, b, a+b);'
'print(f"i, a, b = ({i}, {a}, {b}); s={repr(s)}; exec(s) # fib({i})={a} ")'
); exec(s) # fib(0)=0
@RHDZMOTA
RHDZMOTA / complex-python-lambdas.py
Created December 14, 2021 05:07
An updated version of George Lydakis python script on lambda functions: http://ldkge.com/complex-python-lambdas.html
_ = (
lambda: [
_
# Imports
for sys in [__import__('sys')]
for math in [__import__('math')]
# Helper functions
for sub in [lambda *vals: None]
for fun in [lambda *vals: vals[-1]]
cve_ent poblacion nombre 26-02-2020 27-02-2020 28-02-2020 29-02-2020 01-03-2020 02-03-2020 03-03-2020 04-03-2020 05-03-2020 06-03-2020 07-03-2020 08-03-2020 09-03-2020 10-03-2020 11-03-2020 12-03-2020 13-03-2020 14-03-2020 15-03-2020 16-03-2020 17-03-2020 18-03-2020 19-03-2020 20-03-2020 21-03-2020 22-03-2020 23-03-2020 24-03-2020 25-03-2020 26-03-2020 27-03-2020 28-03-2020 29-03-2020 30-03-2020 31-03-2020 01-04-2020 02-04-2020 03-04-2020 04-04-2020 05-04-2020 06-04-2020 07-04-2020 08-04-2020 09-04-2020 10-04-2020 11-04-2020 12-04-2020 13-04-2020 14-04-2020 15-04-2020 16-04-2020 17-04-2020 18-04-2020 19-04-2020 20-04-2020 21-04-2020 22-04-2020 23-04-2020 24-04-2020 25-04-2020 26-04-2020 27-04-2020 28-04-2020 29-04-2020 30-04-2020 01-05-2020 02-05-2020 03-05-2020 04-05-2020 05-05-2020 06-05-2020 07-05-2020 08-05-2020 09-05-2020 10-05-2020 11-05-2020 12-05-2020 13-05-2020 14-05-2020 15-05-2020 16-05-2020 17-05-2020 18-05-2020 19-05-2020 20-05-2020 21-05-2020 22-05-2020 23-05-2020 24-05-2020 25-05-2020 26-05-202
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
agm7V6ei+IUEIaBeL7uvDRvpssc6bJowXAKZffRDCQ0GIuSi7kL4yl2+tRCBhxAk3TPlQYTgT2p3ZEyTO2Slo6t+o7x0w/DK4srggY+cmJeZN/Thg4LUo3WfozN9pFpsIaoKxBeOfqdWGMl+Th82IXJl9SKxDUCG30nu82I9f28=
R0p+V5d6yhrgIHAOnERoowynY6gOVKE9hWuTZsFRfK/nvTUCXr//p2zuJlavU1+bUqCqys6vyDla00RR1mOVGZwPQpw6JupHKDO/J2JM1No55oIqWvpnkBhRw13q/q5cSmG3m08pbdZEMAnXkG9h0zzLakgxqsltgHWzV7zzAzE=
aYxgTTPTlsepBgYr+676SSrh02qHsavMqfk/K1lBrwBnCNAfsULMgTVXa4r+vCT8Yd3k0hb9trcjZuQwJVag2nZBVEAS6dv+HGN5PNgjHw4TY1KdAEmPQ0HPS90OjOm4PwcEO4/TaszuiATayIHyynzjDIv/uv3NlwVqgwEb/Lg=
LA6Qn1/UkE5i9jtkb5CFKc2kfqQ3FmhXmww+0YpnXQQk2NyGrM9QL7FC0pkm4Uo86AI4qXe90PrGbklMJArXGKra6ccPe1Tq40jEyBNzv2MWzfIPYYo8EcfOIAJg1JBfeGbwIwAnL8avwnHK7S3Hs9gCOE27mdnXXmHgcMubNfo=
RAvCwHXgIv5byPPWonmJ46ZLsBhcQN+Ewt0nOqCvsIUnnQh0V6DnoTMzxi1SRZzwvgNkVyt1ZWq89ge8R22YlR6UEkXkza2X998ut3E0+ZHRrxWaDHiW72ysrzOTX+xEvnY9YmlkhJ9SXh3JYfyxSuJJBLRqTEdLvtYMf6LiXts=
R2ebOGXlBnCmYZJUg620ftUMgN2E8mbtqfbk6/qWhBOJ0vyxcWzdaSe5xSlO3XXhAGgl8kktN5uxdsBMB1Sy52N34kn8RDQ0UP5puDSs6uY0MSF4mXeISAK2pgXmEemTtV1yhroZPmBxe6kYRDdd+20186vOvVt
*[2022-MM-YY Daily Standup (@Rodrigo H. Mota)]*
:male-technologist::skin-tone-2: *What was done today?*
- item
- :calendar: Other meetings:
- DE Daily
:city_sunset: *Next working session*:
- item
import snowflake.connector
# Create the snowflake connector instance
connector_instance = snowflake.connector.connect(
user=<your-user>,
password=<your-password>,
account=<your-snowflake-account>,
)
@RHDZMOTA
RHDZMOTA / brave-search-shortcuts.txt
Last active October 2, 2022 21:27
Brave Search Shortcuts
# Coding
:gh https://github.com/search?q=%s
:myrepo https://github.com/RHDZMOTA?tab=repositories&q=%s
:stackoverflow https://stackoverflow.com/search?q=%s
# Google Services
:mail https://mail.google.com/mail/u/0/#search/%s
:drive https://drive.google.com/drive/u/0/search?q=%s
# RHDZMOTA
student_id first_name last_name gender gpa age
1 Amelia O'Sullivan female 3.7 20
2 Rachel Stevens female 3.5 25
3 Sarah Dunn female 3.2 23
4 Liam Baker male 3.3 24
5 Andrew Owens male 3.0 24
customer_id customer_age months_at_address residence_status employment income months_with_bank other_credits balance status
1 53 62 Tenant Unknown 50000 55 Yes 1055.9 0
2 61 22 HomeOwner Employed 52000 25 Yes 1161.6 0
3 47 30 Tenant Employed 37000 61 No 877.23 0
4 50 75 HomeOwner Employed 53000 20 Yes 157.37 0
5 68 56 HomeOwner Employed 53000 14 Yes 561.84 0
6 65 13 HomeOwner Employed 48000 59 Yes 968.18 0
7 34 32 HomeOwner Unknown 32000 26 Yes 717.82 1
8 50 57 Other Employed 51000 33 No 3041.2 0
9 50 10 Tenant Unknown 52000 25 Yes 115.56 1
We can't make this file beautiful and searchable because it's too large.
funded_amount,term,interest_rate,installment,grade,sub_grade,employment_length,home_ownership,annual_income,verification_status,loan_status,payment_plan,purpose,zip_code,address_state,earliest_credit_line,issue_date
20250, 60 months,15.27,484.63,C,C4,3 years,RENT,43370.0,Verified,Fully Paid,n,debt_consolidation,770xx,TX,Nov-97,Dec-11
21000, 36 months,12.42,701.73,B,B4,10+ years,RENT,105000.0,Verified,Charged Off,n,debt_consolidation,335xx,FL,Feb-83,Dec-11
31825, 36 months,7.9,995.82,A,A4,5 years,MORTGAGE,75000.0,Verified,Fully Paid,n,debt_consolidation,080xx,NJ,Nov-81,Dec-11
25600, 36 months,9.91,824.96,B,B1,9 years,RENT,110000.0,Verified,Fully Paid,n,credit_card,913xx,CA,Jul-99,Dec-11
21000, 60 months,19.91,555.33,E,E4,7 years,RENT,50000.0,Verified,Charged Off,n,debt_consolidation,980xx,WA,Sep-98,Dec-11
16000, 60 months,19.91,423.11,E,E4,7 years,RENT,81000.0,Verified,Fully Paid,n,credit_card,017xx,MA,Dec-98,Dec-11
17675, 60 months,14.65,417.25,C,C3,< 1 year,RENT,50000.0,Source Verified,Fully Paid,n,debt_cons