- HMG Digital engagement Blog - Calling Open Data Developers: We need your help
- Show Us A Better Way
- Data all the way down - Jeni Tennison
- Power of Information Review - Ed Mayo and Tom Steinberg
- Directgov Innovate
- BarCamp UKGovWeb 2009 writeup - Jonathan Gray
- 'Berlin in August' edomocracy conference 2007
- [Interview with Robert McKinnon - Berlin in August edomocracy conferen
This file contains hidden or 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
{% macro render_field(field) %} | |
<div class="form-group {% if field.errors %}has-error{% endif %}"> | |
{{ field.label(class_="control-label") }} | |
{{ field(class_="form-control", **kwargs)|safe }} | |
{% if field.errors %} | |
{% for error in field.errors %} | |
<span class="help-block">{{error}}</span> | |
{% endfor %} | |
{% endif %} | |
</div> |
This file contains hidden or 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 form.errors %} | |
<div class="alert alert-danger"> | |
<ul> | |
{% for field_name, field_errors in form.errors|dictsort if field_errors %} | |
{% for error in field_errors %} | |
<li>{{ form[field_name].label }}: {{ error }}</li> | |
{% endfor %} | |
{% endfor %} | |
</ul> | |
</div> |
This file contains hidden or 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
def string_to_colour(s): | |
s = s.lower() | |
r = ((ord(s[0])-96.0)/26)*255 | |
g = ((ord(s[int(len(s)/2)])-96.0)/26)*255 | |
b = ((ord(s[len(s)-1])-96.0)/26)*255 | |
return '#%02X%02X%02X' % (r,g,b) |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am memespring on github. | |
* I am memespring (https://keybase.io/memespring) on keybase. | |
* I have a public key whose fingerprint is 190E 773E 1D53 996A AE42 0F30 1B5D 919C B3D0 024C | |
To claim this, I am signing this object: |
This file contains hidden or 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
#http://www.nhs.uk/NHSEngland/Healthcosts/Pages/Prescriptioncosts.aspx | |
Given a user is dispensed a prescription | |
When their age is >= 60 | |
Then the prescription cost should be 0 | |
Given a user is dispensed a prescription | |
And their age is < 16 | |
Then the prescription cost should be 0 |
This file contains hidden or 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
#https://www.gov.uk/national-minimum-wage-rates | |
def minimum_wage(age, apprentice=False, apprenticeship_year=None): | |
if apprentice: | |
if age < 19 or apprenticeship_year == 1: | |
return 2.73 | |
if age < 18: | |
return 3.79 |
This file contains hidden or 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
def recommend_union(job, employer): | |
results = [] | |
job = job.lower() | |
employer = employer.lower() | |
if 'journalist' in job: | |
results.append(models.Union.objects.get(name='National Union of Journalists')) | |
if 'uber' in employer: | |
results.append(models.Union.objects.get(name='GMB')) |
This file contains hidden or 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
{ | |
"privacyStatement": "https://example.org/privacy.html", | |
"countriesDataHeld": ["IE", "LU"], | |
"portability": { | |
"description": "You can download your raw account data", | |
"url": "https://example.org/give-me-my-data.html" | |
}, | |
"deletion": { | |
"description": "To delete your data, you must contact our support team", | |
"url": "mailto:[email protected]" |
OlderNewer