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
| #------------------------------------------------------------------------------------------------- | |
| # libraries | |
| rm(list=ls()) | |
| # install.packages("TraMineR") # example data | |
| # install.packages("OpenRepGrid")# random words for headings | |
| # install.packages("khroma") # color palletttes | |
| # install.packages("tidyverse") | |
| # install.packages("modeldb") | |
| # install.packages("car") |
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
| def add_edge(a,b,x): | |
| graph[a][b]+=x | |
| n=5 | |
| graph=[[0]*(n+1) for _ in range(n+1)] | |
| seen=[False]*(n+1) | |
| path=[] |
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
| verbose=False | |
| from random import randint | |
| class Risk: | |
| def __init__(self): | |
| self.results_counter=[0]*3 | |
| self.percentages=[None]*3 | |
| def throw_dice(self): |
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 sqlite3 | |
| import os | |
| os.chdir(os.path.dirname(__file__)) | |
| print(os.getcwd()) | |
| db = sqlite3.connect("bikes.db") | |
| db.isolation_level = None | |
| def distance_of_user(user): |
OlderNewer