Skip to content

Instantly share code, notes, and snippets.

View heroisaprinciple's full-sized avatar
🎯
Focusing

Arina Sofiyeva heroisaprinciple

🎯
Focusing
View GitHub Profile
import numpy as np
from numpy.linalg import norm
class Kmeans:
'''Implementing Kmeans algorithm.'''
def __init__(self, n_clusters, max_iter=100, random_state=123):
self.n_clusters = n_clusters
self.max_iter = max_iter
@shoesCodeFor
shoesCodeFor / selenium-webdriver-cheatsheet.md
Last active November 14, 2024 00:54 — forked from huangzhichong/selenium-webdriver-cheatsheet.md
Ruby Selenium Webdriver CheatSheet

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore