This file contains hidden or 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
list_of_points = [1, 4, 3, 2, 5] | |
N = len(list_of_points) # ROWS | |
M = len(list_of_points) # COLUMNS | |
matrix = [[None for i in range(N)] for j in range(M)] | |
target_value = [[1, 4, 3, 2, 5], [4, 16, 12, 8, 20], [3, 12, 9, 6, 15], [2, 8, 6, 2, 4, 10], [5, 20, 15, 10, 25]] | |
for i in range(len(matrix)): |
This file contains hidden or 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 requests | |
import json | |
# GLOBAL CONSTANTS | |
headers = { | |
'Content-type': 'application/json' | |
} | |
BASE_URL = 'https://<BASE_URL>/rest/api/2/' | |
# Function that filters out the priorityscheme id from Target Priority Scheme Name |
This file contains hidden or 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 jira import JIRA | |
import requests | |
from requests.auth import HTTPBasicAuth | |
from atlassian import Jira | |
import json | |
username = '<username>' | |
LU_ATL_TOKEN = '<token>' | |
headers = { | |
'Content-type' : 'application/json' |
This file contains hidden or 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
# This script will require user Email, username and fed id | |
from requests import Session | |
from requests.auth import HTTPBasicAuth | |
from zeep import Client | |
from zeep.transports import Transport | |
import zeep | |
import credentials | |
wsdl = 'https://api.five9.com/wsadmin/v11/AdminWebService?wsdl' |
This file contains hidden or 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 pandas as pd | |
import requests | |
import credentials | |
import re, json | |
import emails | |
from json2html import * | |
from datetime import datetime | |
today = datetime.now().date().strftime("%x") |
This file contains hidden or 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 requests | |
import json | |
import credentials | |
from jira import JIRA | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
JIRA_SERVER = 'https://jira.<tenant>.com' | |
jira = JIRA(JIRA_SERVER, basic_auth=(credentials.jira_user, credentials.jira_pwd)) |
This file contains hidden or 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 gspread | |
import json | |
import pandas as pd | |
import requests | |
from oauth2client.service_account import ServiceAccountCredentials | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) |
This file contains hidden or 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
# In release datacompy 0.70 we will have a formatted report | |
import pandas as pd | |
import csv | |
import numpy as np | |
import datacompy | |
df1 = pd.read_csv('/Users/cinguva/Downloads/HR Reports/hr_report_25.csv', encoding='iso-8859-1') | |
df2 = pd.read_csv('/Users/cinguva/Downloads/HR Reports/hr_report_28.csv', encoding='iso-8859-1') |
This file contains hidden or 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 pandas as pd | |
from pandas import ExcelFile, ExcelWriter | |
import csv | |
import requests | |
import credentials | |
# Global Variables | |
appId = '0oam7lkaan7oOodiQ0x7' | |
api_token = credentials.okta_GH_token |
This file contains hidden or 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 csv | |
import pandas as pd | |
df = pd.read_csv('/Users/chanderinguva/Documents/rsvp.csv', encoding='ISO-8859-1') | |
df_login = df['Guest'] | |
rsvpyeslist=[] | |
for row in df_login: | |
row = str(row) | |
if '<' in row: |
NewerOlder