Skip to content

Instantly share code, notes, and snippets.

View connordoner's full-sized avatar

Connor Gurney connordoner

View GitHub Profile
@connordoner
connordoner / widgets_controller_test.rb
Created February 16, 2023 15:37
Rails CRUD controller test
require "test_helper"
class WidgetsControllerTest < ActionDispatch::IntegrationTest
setup do
@widget = widgets(:one)
end
test "should get index" do
get widgets_url
assert_response :success
@connordoner
connordoner / .editorconfig
Last active May 22, 2023 12:13 — forked from phanviet/.editorconfig
Ruby editor configuration
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
@connordoner
connordoner / constituencies.csv
Created September 1, 2022 17:26
UK Parliamentary constituencies and their corresponding International Territorial Level codes
code name itl_code
W07000049 Aberavon TLL17
W07000058 Aberconwy TLL17
S14000001 Aberdeen North TLM50
S14000002 Aberdeen South TLM50
S14000003 Airdrie and Shotts TLM84
E14000530 Aldershot TLJ37
E14000531 Aldridge-Brownhills TLG38
E14000532 Altrincham and Sale West TLD34
W07000043 Alyn and Deeside TLL23