Skip to content

Instantly share code, notes, and snippets.

View stevenday's full-sized avatar

Steve Day stevenday

  • Kaluza
  • Cornwall, UK
View GitHub Profile
@stevenday
stevenday / two-or-more-name-differences.json
Created February 4, 2019 15:20
Two or more name differences (diff)
{
"/company/00941664/persons-with-significant-control/individual/IeN-FlIAhJzifzEHAWc7oguXRDw": [
[
"~",
"forename",
"Philip",
"Carol"
],
[
"~",

Keybase proof

I hereby claim:

  • I am stevenday on github.
  • I am stevenday (https://keybase.io/stevenday) on keybase.
  • I have a public key ASALA8Tt7QuZTcuxZ0m4iBzDkLCwP0c6qWU1QAVdbwynLQo

To claim this, I am signing this object:

What we've done
===============
Added countries to import script
Added activity log to studies and shown on study page
Added more models to admin
Added forms to study page to submit stuff
What they still need to comment on/respond to
=============================================
Data model/import questions
@stevenday
stevenday / mapit-example.json
Last active September 30, 2015 13:02
Example mapit postcode JSON output
{
wgs84_lat: 51.121736288836274,
coordsyst: "G",
shortcuts: {
WMC: 65717,
ward: {
county: 53220,
district: 7803
},
council: {
@stevenday
stevenday / bson_document_bug.rb
Created September 18, 2015 11:28
BSON::Document bug?
attributes = BSON::Document.new
attributes["test"] = nil
(attributes["test"] ||= {}).merge!({"test" => "test})
# You'd expect attributes["test"] to be {"test" => "test"}
# here, but it's actually {}
@stevenday
stevenday / gist:21873f6b30d89acf93fa
Created February 10, 2015 15:21
Count a second level
context['more_questions_count'] = 0
for group, measures in question_choices[1:]:
context['more_questions_count'] += len(measures)
package org.something.yourname;
import android.os.Bundle;
import org.apache.cordova.*;
public class HelloCordovaActivity extends DroidGap {
/** Called when the activity is first created **/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);