Skip to content

Instantly share code, notes, and snippets.

View Decko048's full-sized avatar
💭
Urip sepisan ngudiya laku utama, aja nandur dur angkara

Eko Wahyudi, S.T., M.Kom. Decko048

💭
Urip sepisan ngudiya laku utama, aja nandur dur angkara
View GitHub Profile
import plotly.express as px
fig = px.scatter(x=data['tenure'], y=data['TotalCharges'],
color = data['Churn'], template = 'presentation',
opacity = 0.5, facet_col = data['Contract'],
title = 'Customer Churn by Tenure, Charges, and Contract Type',
labels = {'x' : 'Customer Tenure', 'y' : 'Total Charges $'})
fig.show()
@Decko048
Decko048 / gist:951a48ae3ad51921957928353baa8cc3
Last active January 4, 2022 01:36 — forked from zcakzwa/gist:aebffa8eecd13022ba125b03a721b247
5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Enter the numbers from the book …
largest = None
smallest = None
while True:
num = raw_input("Enter a number: ")
if num == "done" : break
try:
num = int(num)
except:
print("Invalid input")
continue
@Decko048
Decko048 / sql_dork_list
Created December 9, 2021 01:47 — forked from mokiding/sql_dork_list
Google SQL dork list
trainers.php?id=
play_old.php?id=
declaration_more.php?decl_id=
Pageid=
games.php?id=
newsDetail.php?id=
staff_id=
historialeer.php?num=
product-item.php?id=
news_view.php?id=
@Decko048
Decko048 / Interpolation
Created November 16, 2021 03:20 — forked from vahid-m/Interpolation
Polynomial interpolation/extrapolation using Python and Numpy
import numpy as np
import matplotlib.pyplot as plt
x = np.array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0])
y = np.array([0.0, 0.8, 0.9, 0.1, -0.8, -1.0])
z = np.polyfit(x, y, 3)
print (z)
# create polynomial
p = np.poly1d(z)