Skip to content

Instantly share code, notes, and snippets.

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Base box to build off, and download URL for when it doesn't exist on the user's system already
config.vm.box = "ubuntu/trusty32"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
# As an alternative to precise32, VMs can be built from the 'django-base' box as defined at
# https://github.com/torchbox/vagrant-django-base , which has more of the necessary server config
@mekhami
mekhami / test.py
Last active February 27, 2016 19:30
calendar = {
'2016': {
'January': [],
'February': [],
'March': [],
'April': [],
'May': [],
'June': [],
'July': [],
'August': [],
[Event "Casual game"]
[Site "http://lichess.org/dN39XuzP"]
[Date "2016.02.26"]
[Round "?"]
[White "chiless"]
[Black "mekhami"]
[Result "0-1"]
[WhiteElo "1560"]
[BlackElo "1819"]
[ECO "E61"]
@mekhami
mekhami / test.py
Last active February 27, 2016 19:30
calendar = {
'2016': {
'January': ['01/03/2016 : Quadrantids Meteor Shower','01/04/2016 : Quadrantids Meteor Shower Continued','01/10/2016 : New Moon','01/24/2016 : Full Moon'],
'February': ['02/07/2016 : Mercury at Greast WEstern Elongation','02/08/2016 : New Moon','02/22/2016 : Full Moon','3'],
'March': ['03/08/2016 : Jupiter at Oppostion','03/09/2016 : New Moon & Total Solar Eclipse','03/20/2016 : March Equinox','03/23/2016 : Full Moon & Penumbral Lunar Eclipse'],
'April': ['04/07/2016 : New Moon,', '04/18/2016 : Mercury at Greatest Easter Elongation','04/22/2016 : Full Moon & Lyrids Metero Shower','04/23/2016 : Lyrids Meteor Shower Continued'],
'May': ['05/06/2016 : New Moon & Eta Aquarids Meteor Shower','05/07/2016 : Eta Aquarids Meteor Shower Continued','05/09/2016 : Rare Tansit of Mercury Across the Sun','05/14/2016 : Internation Astronomy Day!!','05/21/2016 : Full Moon & Its a Blue Moon!','05/22/2016 : Mars at Oppostion'],
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
def update_rsvp(request):
if request.method == 'GET':
person = Invitee.objects.get(code=request.session['code'])
form = InviteeForm(instance=person)
elif request.method == 'POST':
form = InviteeForm(request.POST)
if form.is_valid():
form.save()
return redirect('invites:success')
else:
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#i3blocks config file
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard