Skip to content

Instantly share code, notes, and snippets.

View rudensm's full-sized avatar

Martins Rudens rudensm

  • Indie iOS / Python developer
  • Riga, Latvia
View GitHub Profile
@rudensm
rudensm / sample.py
Last active February 12, 2023 13:30
Python Selenium Yahoo
from seleniumwire import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
# open browser;
options = webdriver.ChromeOptions()
options.add_argument("--window-size=1920,2000")
driver = webdriver.Chrome(chrome_options=options)
@rudensm
rudensm / gitignore_global.txt
Last active August 29, 2024 14:32
.gitignore_global
*.sublime-*
*.tmPreferences.cache
*.xccheckout
*.xcscmblueprint
*.xcuserstate
*.xcworkspace
*~
.cache
.coverage
.coverage.*
@rudensm
rudensm / TEST.md
Last active March 4, 2018 12:25
Basic Django Skills Test

TASK

  • make new virutalenv with python3
  • install django and create sample project (with name "sample")
    • create git repo inside project's root folder
    • pull this repo to github.com
  • to configure django project use https://github.com/jazzband/django-configurations/
  • create abstract super class "CoreModel" for models with fields:
    • enabled: bool
    • created: datetime: "auto now" when create
  • updated: datetime: "auto now" when update