Exemple #1
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 5, 5),
]

start, end = nextevent.get(dates, '10:00')
nextevent.printmsg("Electromagnetic Wave", 'booze', start)
Exemple #2
0
#!/usr/bin/env python
import nextevent

dates = [
  (2013, 5, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg("Spacewarming party", 'beer', start)
Exemple #3
0
#!/usr/bin/env python
import nextevent

dates = [
  (2014,  3, 13),
]

try:
    start, end = nextevent.get(dates, '12:00')
    nextevent.printmsg("Pub Standards 100", 'party poppers and beer', start)
except TypeError:
    print "Pub Standards 100 was amazing."
Exemple #4
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 8, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg('Next Kernel launch', 'unrelenting bullshit', start)
Exemple #5
0
#!/usr/bin/env python
import nextevent

dates = [(2013, 5, 5)]

start, end = nextevent.get(dates, "10:00")
nextevent.printmsg("Boat thingy", "booze", start)
Exemple #6
0
#!/usr/bin/env python
import nextevent

dates = [(2012, 7, 21)]

start, end = nextevent.get(dates, "9:00")
nextevent.printmsg("Jonty's torch run", "lols", start)
Exemple #7
0
#!/usr/bin/env python
import nextevent

dates = [(2011, 7, 27)]

start, end = nextevent.get(dates, "20:00")
nextevent.printmsg("Next general meeting", "beer", start)
Exemple #8
0
#!/usr/bin/env python
import nextevent

dates = [
  (2013,  3,  1),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg("Last Wenlock", 'tears', start)
Exemple #9
0
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  8, 31),
]

start, end = nextevent.get(dates, '8:00')
nextevent.printmsg("Electromagnetic Field", 'hacking', start)
Exemple #10
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 5, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg("Spacewarming party", 'beer', start)
Exemple #11
0
#!/usr/bin/env python
from datetime import timedelta
import nextevent


def next_meet(d):
    return d + timedelta(days=(1 - d.weekday()) % 7)


try:
    start, end = nextevent.get(next_meet, '19:30', '22:30')
except nextevent.EventInProgress:
    print 'The weekly meeting is currently under way! Quick! Run to the space!'
else:
    nextevent.printmsg('Next weekly meeting', 'beer', start)
Exemple #12
0
#!/usr/bin/env python
from datetime import timedelta
import nextevent

def next_meet(d):
  return d + timedelta(days=(1 - d.weekday()) % 7)

try:
  start, end = nextevent.get(next_meet, '19:30', '22:30')
except nextevent.EventInProgress:
  print 'The weekly meeting is currently under way! Quick! Run to the space!'
else:
  nextevent.printmsg('Next weekly meeting', 'beer', start)


Exemple #13
0
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  4, 1),
]

start, end = nextevent.get(dates, '01:00')
nextevent.printmsg("Wenlock Arms Closing", 'CLOSED FOR EVER', start)
Exemple #14
0
#!/usr/bin/env python
import nextevent

dates = [
  (2014,  3, 13),
]

start, end = nextevent.get(dates, '18:00')
nextevent.printmsg("Pub Standards 100", 'beer', start)
Exemple #15
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 7, 21),
]

start, end = nextevent.get(dates, '9:00')
nextevent.printmsg("Jonty's torch run", 'lols', start)
Exemple #16
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 02, 10),
    (2013, 02, 8),
    (2014, 02, 10),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next Birthday', 'beer', start)
Exemple #17
0
#!/usr/bin/env python
import nextevent

dates = [
  (2011,  7, 27),
  (2013, 11, 27),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next general meeting', 'beer', start)
Exemple #18
0
#!/usr/bin/env python
import nextevent

dates = [(year, 12, 25) for year in range(2011, 2031)]

start, end = nextevent.get(dates, '00:00')
nextevent.printmsg('Christmas day', 'presents', start)
Exemple #19
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 5, 5),
]

start, end = nextevent.get(dates, '10:00')
nextevent.printmsg("Boat thingy", 'booze', start)
Exemple #20
0
#!/usr/bin/env python
import nextevent

dates = [
    (2015, 1, 6, 11, 20),  # Dragon, scrubbed
    (2015, 1, 10, 9, 47),  # Dragon
    (2015, 2, 8, 23, 10),  # DSCOVR, scrubbed
    (2015, 2, 10, 23, 5),  # DSCOVR
    (2015, 2, 17, 12, 0),  # Eutelsat
    (2015, 3, 2, 3, 50),
    (2015, 6, 28, 15, 21),
    (2015, 12, 22, 1, 29),  # ORBCOMM-2
]

start, end = nextevent.get(dates)
nextevent.printmsg('Next SpaceX launch', 'liftoff', start)
Exemple #21
0
#!/usr/bin/env python
import nextevent

dates = [
    (2013, 3, 1),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg("Last Wenlock", 'tears', start)
Exemple #22
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 12, 25),
]

start, end = nextevent.get(dates, '17:15')
nextevent.printmsg('Next Dr Who', 'teh fear', start)
Exemple #23
0
#!/usr/bin/env python
import nextevent

dates = [
  (2011, 11, 30),
  (2011, 12, 28),
  (2012,  1, 25),
  (2012,  2, 29),
  (2012,  3, 28),
  (2012,  4, 25),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next Science Museum lates','beer', start)
Exemple #24
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 8, 31),
]

start, end = nextevent.get(dates, '8:00')
nextevent.printmsg("Electromagnetic Field", 'hacking', start)
#!/usr/bin/env python
import nextevent

dates = [(2012, 9, 12)]

start, end = nextevent.get(dates, "18:00")
nextevent.printmsg("iPhone 5 Announcement", "snark", start)
Exemple #26
0
#!/usr/bin/env python
import nextevent

dates = [
    (2011, 1, 25),
    (2011, 2, 22),
    (2011, 3, 22),
    (2011, 4, 20),
    (2011, 5, 24),
    (2011, 6, 21),
    (2011, 7, 19),
    (2011, 8, 23),
    (2011, 9, 20),
    (2011, 10, 18),
    (2011, 11, 15),
    (2011, 12, 13),
    (2012, 1, 24),
    (2012, 2, 21),
    (2012, 3, 20),
    (2012, 4, 24),
    (2012, 5, 22),
    (2012, 6, 19),
    (2012, 7, 17),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next monthly meeting', 'beer', start)
Exemple #27
0
#!/usr/bin/env python
from datetime import timedelta
import nextevent

def next_meet(d):
  return d + timedelta(days=(4 - d.weekday()) % 7)

try:
  start, end = nextevent.get(next_meet, '18:00', '23:00')
except nextevent.EventInProgress:
  print 'Friday drinking is currently under way! Quick! Run to the pub!'
else:
  nextevent.printmsg('Next Friday drinking', 'beer', start)


Exemple #28
0
#!/usr/bin/env python
import nextevent

dates = [
  (2011,  8,  2),
]

start, end = nextevent.get(dates, '17:00')
nextevent.printmsg('Next beer festival', 'beer', start)

Exemple #29
0
    (2013, 10, 29),
    (2013, 11, 26),
    (2013, 12, 17),
    (2014, 1, 28),
    (2014, 2, 25),
    (2014, 3, 25),
    (2014, 4, 29),
    (2014, 5, 27),
    (2014, 6, 24),
    (2014, 7, 29),
    (2014, 8, 26),
    (2014, 9, 30),
    (2014, 10, 28),
    (2014, 11, 25),
    (2014, 12, 15),
    (2015, 1, 27),
    (2015, 2, 24),
    (2015, 3, 31),
    (2015, 4, 28),
    (2015, 5, 26),
    (2015, 6, 30),
    (2015, 7, 28),
    (2015, 8, 25),
    (2015, 9, 29),
    (2015, 10, 27),
    (2015, 11, 24),
]

start, end = nextevent.get(dates, "19:30")
nextevent.printmsg("Next monthly meeting", "beer", start)
Exemple #30
0
  (2014,  9, 30),
  (2014, 10, 28),
  (2014, 11, 25),
  (2014, 12, 15),
  (2015,  1, 27),
  (2015,  2, 24),
  (2015,  3, 31),
  (2015,  4, 28),
  (2015,  5, 26),
  (2015,  6, 30),
  (2015,  7, 28),
  (2015,  8, 25),
  (2015,  9, 29),
  (2015, 10, 27),
  (2015, 11, 24),
  (2016,  1, 26),
  (2016,  2, 23),
  (2016,  3, 29),
  (2016,  4, 26),
  (2016,  5, 31),
  (2016,  6, 28),
  (2016,  7, 26),
  (2016,  8, 30),
  (2016,  9, 27),
  (2016, 10, 25),
  (2016, 11, 29),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next monthly meeting', 'beer', start)
Exemple #31
0
#!/usr/bin/env python
import nextevent

dates = [(2012, 02, 10), (2013, 02, 8), (2014, 02, 10)]

start, end = nextevent.get(dates, "19:30")
nextevent.printmsg("Next Birthday", "beer", start)
Exemple #32
0
#!/usr/bin/env python
import nextevent

dates = [
    (2011, 7, 27),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next general meeting', 'beer', start)
Exemple #33
0
#!/usr/bin/env python
import nextevent

dates = [
  (2011,  8,  2),
  (2013,  8,  13),
]

start, end = nextevent.get(dates, '17:00')
nextevent.printmsg('Next beer festival', 'beer', start)

Exemple #34
0
#!/usr/bin/env python
import nextevent

dates = [
  (2013,  8, 12),
]

start, end = nextevent.get(dates, '12:00')
nextevent.printmsg('Next Kernel launch', 'unrelenting bullshit', start)

Exemple #35
0
#!/usr/bin/env python
import nextevent

dates = [
  (2015,  1,  6, 11, 20), # Dragon, scrubbed
  (2015,  1, 10,  9, 47), # Dragon
  (2015,  2,  8, 23, 10), # DSCOVR, scrubbed
  (2015,  2, 10, 23,  5), # DSCOVR
  (2015,  2, 17, 12,  0), # Eutelsat
  (2015,  3,  2,  3, 50),
  (2015,  6, 28, 15, 21),
  (2015, 12, 22,  1, 29), # ORBCOMM-2
]

start, end = nextevent.get(dates)
nextevent.printmsg('Next SpaceX launch', 'liftoff', start)
Exemple #36
0
#!/usr/bin/env python
from datetime import timedelta
import nextevent


def next_meet(d):
    return d + timedelta(days=(4 - d.weekday()) % 7)


try:
    start, end = nextevent.get(next_meet, '18:00', '23:00')
except nextevent.EventInProgress:
    print 'Friday drinking is currently under way! Quick! Run to the pub!'
else:
    nextevent.printmsg('Next Friday drinking', 'beer', start)
Exemple #37
0
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 1, 16),
    (2012, 1, 23),
    (2012, 1, 30),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next Gadget Geeks', 'trolling', start)
Exemple #38
0
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  1, 16),
  (2012,  1, 23),
  (2012,  1, 30),
]

start, end = nextevent.get(dates, '20:00')
nextevent.printmsg('Next Gadget Geeks', 'trolling', start)
#!/usr/bin/env python
import nextevent

dates = [
    (2012, 9, 12),
]

start, end = nextevent.get(dates, '18:00')
nextevent.printmsg("iPhone 5 Announcement", 'snark', start)
Exemple #40
0
#!/usr/bin/env python
import nextevent

dates = [
    (2011, 11, 30),
    (2011, 12, 28),
    (2012, 1, 25),
    (2012, 2, 29),
    (2012, 3, 28),
    (2012, 4, 25),
]

start, end = nextevent.get(dates, '19:30')
nextevent.printmsg('Next Science Museum lates', 'beer', start)
Exemple #41
0
#!/usr/bin/env python
import nextevent

dates = [
  (2012,  12, 25),
]

start, end = nextevent.get(dates, '17:15')
nextevent.printmsg('Next Dr Who', 'teh fear', start)