Skip to content

Instantly share code, notes, and snippets.

content:
title: "Coronavirus (COVID-19): guidance and support"
meta_description: "Find information on coronavirus, including guidance, support, announcements and statistics."
page_header: "Coronavirus (COVID‑19)"
header_section:
title: There are three simple actions we must all do to keep on protecting each other
list:
- instruction: wash hands
detail: keep washing your hands regularly
- instruction: cover face
content:
title: "Coronavirus (COVID-19): guidance and support"
meta_description: "Find information on coronavirus, including guidance, support, announcements and statistics."
page_header: "Coronavirus (COVID‑19)"
header_section:
title: There are three simple actions we must all do to keep on protecting each other
list:
- instruction: wash hands
detail: keep washing your hands regularly
- instruction: cover face
content:
title: "Coronavirus (COVID-19): guidance and support"
meta_description: "Find information on coronavirus, including guidance, support, announcements and statistics."
page_header: "Coronavirus (COVID‑19)"
header_section:
title: There are three simple actions we must all do to keep on protecting each other
list:
- instruction: wash hands
detail: keep washing your hands regularly
- instruction: cover face
require 'csv'
namespace :education do
desc "generate governance csv"
task governance: [:environment] do
# open new csv for writing
CSV.open("school-governance-results.csv", "wb") do |csv|
# iterating existing csv rows
CSV.foreach('school-governance.csv') do |row|
c = ContentItem.find_by title: row.join(',')
arr = []
vagrant@ /var/govuk/development (master) $ bowl whitehall www --without rummager-publishing-listener --without panopticon --without rummager
I, [2016-12-15T09:24:46.778237 #19623] INFO -- : Starting static, content-store, draft-content-store, router-api, publishing-api-worker, publishing-api, rummager-sidekiq, whitehall, router, www...
09:24:46 rummager-sidekiq.1 | started with pid 19669
09:24:46 static.1 | started with pid 19672
09:24:46 whitehall.1 | started with pid 19675
09:24:46 router.1 | started with pid 19679
09:24:46 router-api.1 | started with pid 19682
09:24:46 content-store.1 | started with pid 19687
09:24:46 publishing-api.1 | started with pid 19695
09:24:46 publishing-api-worker.1 | started with pid 19698
<% if i == truncate_at_count - 1 %>
<tr class="table-header">
<td colspan="3" class="js-toggle-target text-center">
<strong><a href="#expand-table" class="js-toggle">…and
<%= attachments.count - (truncate_at_count - 1) %> more</a>
</strong>
</td>
</tr>
<% end %>
<% presenter = ActionsPresenter.new(@document, policy(@document)) %>
<div class="row">
<div class="col-md-8">
<h2>Actions</h2>
<div class="well">
<%= link_to "Edit document", presenter.edit_path, class: "btn btn-success" %>
</div>
<%= render partial: "attachments/breadcrumbs"%>
<h1 class="page-header">Edit attachment</h1>
<%= render(partial: "shared/attachments_form", locals: {
attachment: @attachment,
url: document_attachment_path(
params[:document_type_slug],
params[:document_content_id],
params[:attachment_content_id]
@Rosa-Fox
Rosa-Fox / gist:eec4ecb0a82c15766eb3
Last active October 9, 2015 14:41
She Codes Brighton - Lets Get Physical - Arduino Workshop

Lets Get Physical - Arudino Workshop

She Codes Brighton is a social meet up group for female developers co-organised by Happy Bear Software developer Rosa (me) along with Wendy Armstrong and Seren Matthews. In September 2015 She Codes held an event under the umbrella of The Brighton Digital Festival..

Entering its 5th year, the Brighton Digital festival aggregated more than 140 events across the course of September. The festival makes for a great opportunity to meet like minded people and delve into something new, as there are multiple events held every night across the city.

In discussing ideas for our event, She Codes members expressed that they wanted to learn hardware skills to couple with their coding knowledge. Having an understanding of how to build projects with hardware would mean that we could diverge from creating interactions solely via screen which would open up new development possibilities.

The Internet of Things