Skip to content

Instantly share code, notes, and snippets.

View dulek's full-sized avatar

Michal Dulko dulek

View GitHub Profile
[/]
default='a8e03ada-26f5-4b6f-8122-3a590353229e'
list=['0e155764-d452-41d5-a4ca-24a24527b40f', 'a8e03ada-26f5-4b6f-8122-3a590353229e', '3a2b8c86-288f-4f25-8f71-6545aefb5756']
[:0e155764-d452-41d5-a4ca-24a24527b40f]
audible-bell=false
background-color='#1b1918'
background-transparency-percent=3
bold-color='#a8a19f'
bold-color-same-as-fg=true

Warsztaty OpenStack - OpenStack Meetup Wrocław

Wymagania

Laptop z:

  • Przeglądarką (Horizon)
  • Klient SSH (na Windows PuTTY)
import multiprocessing
import time
def foo(d, manager):
q = manager.Queue()
q.put('test')
d[0] = q
@dulek
dulek / nbp-rates.py
Created March 6, 2017 19:27
Gets you average NBP rate for given date and currency.
#!/usr/bin/env python
import argparse
from datetime import datetime
import json
import requests
def date_type(s):
try:
return datetime.strptime(s, "%d-%m-%Y")
#!/bin/python
import argparse
from datetime import datetime
from pytz import common_timezones, timezone
parser = argparse.ArgumentParser(description="Tells you if it's Thursday "
"anywhere in the world.")
parser.add_argument('--all', action='store_true', default=False,
help='Print all timezones with Thursday.')