Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View chrisroos's full-sized avatar

Chris Roos chrisroos

View GitHub Profile
@chrisroos
chrisroos / README.md
Created May 18, 2015 20:28
Error message I received when trying to export all my Google data

Error message seen on my archives page.

I've since increased my storage to 100GB (from the free 15GB) and am trying again.

Sorry, but we weren't able to fetch all of the data that you requested. Products with incomplete data are indicated below. Also, your archive contains a list of the missing files. Please try to create your archive again. We were unable to move one or more of your archives to Drive. We either experienced an unexpected error or you do not have sufficient storage quota to store the archive in Drive.

@chrisroos
chrisroos / Gemfile
Last active August 29, 2015 14:23
Testing the difference between ActiveSupport::SafeBuffer#gsub! and String#gsub!
source 'https://rubygems.org'
gem 'activesupport'
gem 'minitest'
@chrisroos
chrisroos / README.md
Created July 21, 2015 14:45
Spike into ways of visualising Smart Answers

The print_graph method displays the Smart Answer as a tree.

The print_questions_and_possible_next_nodes method displays the questions and their possible next nodes.

The extraction of possible next nodes is horrible in the case where the Smart Answer uses the block syntax of next_node. I'm getting the source of the block and extracting things that look like symbols.

@chrisroos
chrisroos / Gemfile
Last active August 29, 2015 14:25
Investigating WebMock and Net::HTTP.start
source 'https://rubygems.org'
gem 'webmock', '1.20.4', require: false
gem 'test-unit', require: false
[
:how_old_are_you?,
:how_old_were_you?
].each do |age_question_name|
context "for #{age_question_name}" do
setup do
@question = @flow.questions.find { |question| question.name == age_question_name }
@state = SmartAnswer::State.new(@question)
end
@chrisroos
chrisroos / 2015-08-18-stale-branches-deleted-from-smart-answers.md
Last active August 29, 2015 14:27
List of stale branches I removed from the Smart Answers project on GitHub

These branches were between 7 months and 2 years old (ordered from oldest to newest)

  • report_a_passport_form_links
  • maternity_paternity_calculator_update
  • state_pension_update
  • state_pension_topup
  • hotfix_release_1584
  • static-next-node
  • traffic-simulator
  • marriage_abroad_same_sex_updates
@chrisroos
chrisroos / 2015-08-19-investigating-rubocop-differences-between-govuk-lint-and-styleguides.md
Last active August 29, 2015 14:27
Investigation into differences between Rubocop rules in govuk-lint and styleguides
From:
Then /^the "([^\"]*)" checkbox should be checked$/ do |label|
field_labeled(label).should be_checked
end
Then /^the "([^\"]*)" checkbox should not be checked$/ do |label|
field_labeled(label).should_not be_checked
end
#!/usr/bin/env perl
#
# http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
use open IO => ":utf8", # UTF8 by default
":std"; # Apply to STDIN/STDOUT/STDERR