This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use('/info', require('../lib/apps/info') ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:58 <jpmckinney> will do :) i was also wondering if you had thoughts re: https://github.com/mysociety/popit/issues/234 | |
13:00 <evdb> It's an interesting one. One solution is to create a position with no person - currently I think that is not allowed by the validation. | |
13:01 <evdb> Also bad in that you'd have to remember to create the vacant positions everytime someone leaves the position. | |
13:01 <jpmckinney> yeah, i think having both a "posts" and an "appointments" (positions) model may be easier in the long-run | |
13:02 <jpmckinney> are you familiar with http://www.w3.org/TR/vocab-org/ ? they get into the different ways of modelling memberships in orgs | |
13:02 <jpmckinney> * and to also delete or update the vacant positions when someone takes the position | |
13:03 <evdb> vocab-org <-- I was not, will look at that, thank you. | |
13:04 <jpmckinney> from my reading of vocab-org, any system modelling people+orgs would probably need two ways to represent memberships - one where the "post" exists without anyone holding it, a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(mzalendo-virtualenv)evdb@custard-2 ~/git/mzalendo_root/mzalendo/mzalendo $ ./manage.py migrate core | |
Running migrations for core: | |
- Migrating forwards to 0037_migrate_data_for_parliamentary_sessions. | |
> core:0034_auto__add_blank_trues | |
> core:0035_auto__add_parliamentarysession | |
> core:0036_auto__add_field_place_parliamentary_session | |
> core:0037_migrate_data_for_parliamentary_sessions | |
Saving Senate (Governmental) to the database | |
Saving National Assembly 2007-2013 to the database | |
Saving National Assembly 2013- to the database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var assert = require('assert'), | |
JSV = require("JSV").JSV; | |
function formatError (error) { | |
if (error) { | |
return error.message + ': ' + error.schemaUri; | |
} else { | |
return 'expected errors but got none'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evdb@custard-2 ~/5501489 $ python xml-test.py | |
--- running tostring | |
--- result is: | |
This is | |
some | |
text… | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(virtualenv-citizenconnect)evdb@custard-2 ~/mysociety/citizenconnect/citizenconnect $ python | |
Python 2.7.3 (default, Aug 8 2012, 14:50:51) | |
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import urlparse | |
>>> o = urlparse.urlparse('http://foo.com/foo/bar?baz=bundy') | |
>>> o | |
ParseResult(scheme='http', netloc='foo.com', path='/foo/bar', params='', query='baz=bundy', fragment='') | |
>>> o.path = o.path + '.html' | |
Traceback (most recent call last): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/node | |
var _ = require('underscore'), | |
rest = require('restler'), | |
async = require('async'); | |
// Get the mapit ids from command line | |
var ids = _.rest(process.argv, 2); | |
console.log(ids); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if 53255 %} | |
<style> | |
.pds-box { width: 100% !important; } | |
#polldaddy { margin-bottom: 30px; } | |
</style> | |
<div id="polldaddy"> | |
<h2>Latest Poll</h2> | |
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/w/53255.js"></script> | |
<noscript><a href="http://polldaddy.com/w.php?p=53255/">Take Our Poll</a></noscript> |
OlderNewer