I hereby claim:
- I am arecker on github.
- I am arecker (https://keybase.io/arecker) on keybase.
- I have a public key whose fingerprint is 578D 068C 8ED4 4A0C 64F1 8B1A 1CFC 4A42 3E70 9CAF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
driver.find_element_by_name('notice').click() # same as billing address... | |
driver.find_element_by_id('submit').click() |
fields = {'name': 'Alex Recker', | |
'Address': '123 Sesame St', | |
'City': 'Madison', | |
'State': 'WI', | |
'Zip': '53704', | |
'email': '[email protected]'} | |
for name, value in fields.items(): | |
elem = driver.find_element_by_name(name) | |
if name == 'State': # State Dropdown |
fields = {'name': 'Alex Recker', | |
'Address': '123 Sesame St', | |
'City': 'Madison', | |
'Zip': '53704', | |
'email': '[email protected]'} | |
for name, value in fields.items(): | |
elem = driver.find_element_by_name(name) | |
elem.send_keys(value) |
quantity_text = driver.find_element_by_id('product_62') | |
quantity_text.send_keys('1') |
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get('https://www.cityofmadison.com' | |
'/epayment/metro/busPass/index.cfm') | |
checkbox = driver.find_element_by_id('acceptTerms') | |
checkbox.click() | |
submit = driver.find_element_by_id('submit') |
from selenium import webdriver | |
driver = webdriver.Firefox() | |
driver.get('http://google.com') |
#!/bin/bash | |
# moolah.sh | |
# Runs moolah.scripts.rates | |
python_path=/home/alex/envs/moolah/bin/python | |
script_path=/home/alex/git/moolah/manage.py | |
${python_path} ${script_path} runscript rates |
from tracking.models import Transaction | |
def run(): | |
Transaction.objects.transact_rate_balance() |
class TransactionQuerySet(TransactionBaseQuerySet): | |
def transact_rate_balance(self): | |
transaction = self.model() | |
transaction.description = ('Rate Balance for {0}' | |
.format(get_timestamp() | |
.strftime("%m/%d/%Y"))) | |
transaction.amount = Rate.objects.total() | |
return transaction.save() |