Skip to content

Instantly share code, notes, and snippets.

View ebrett's full-sized avatar

Brett McHargue ebrett

View GitHub Profile
@ebrett
ebrett / index.html
Created July 24, 2023 16:32
UK clickable map
<div class="cta-map-container">
<!-- REMOVE THIS SECTION BELOW?-->
<a id="img_map" href="/ADD-HYPERLINK-HERE"><img src="http://news.cliniccompare.co.uk/sites/default/files/filemanager/UK%20Taboola%20Map%204.png" alt="UK map"></a>
<!-- REMOVE THIS SECTION ABOVE?-->
<svg version="1.1" id="svg_map" xmlns="http://www.w3.org/2000/svg" xmlns:x="&amp;ns_extend;" xmlns:i="&amp;ns_ai;" xmlns:graph="&amp;ns_graphs;" x="0px" y="0px" viewBox="125 -1112 1450.9 2375" xml:space="preserve" width="305px" height="500px">
<metadata id="metadata211">
<sfw xmlns="&amp;ns_sfw;">
<slices></slices>
@ebrett
ebrett / gist:3720fae50de4c38c92413e5222094dac
Created February 13, 2019 16:10
Error message from running commit...
16:02 $ gs
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: frontend/init/index.css
new file: frontend/init/index.js
deleted: frontend/packs/application.css

Keybase proof

I hereby claim:

  • I am ebrett on github.
  • I am ebrett (https://keybase.io/ebrett) on keybase.
  • I have a public key ASApN-pjgWHujBYwbpNv5xPZiwGI9u4clh8x63-_oVoaQQo

To claim this, I am signing this object:

class FullNameValidator < ActiveModel::Validator
def validate(person)
error_string = ''
error_string += blank_name?(person.title, person.first_name, person.last_name)
error_string += first_name_too_long(person.first_name)
error_string += first_name_too_short(person.first_name)
error_string += last_name_too_long(person.last_name)
return true if error_string == ''

Keybase proof

I hereby claim:

  • I am ebrett on github.
  • I am brettshane (https://keybase.io/brettshane) on keybase.
  • I have a public key whose fingerprint is DFF2 8071 4D35 0C4D 4D28 AEA8 5D1B DA2E B767 DF92

To claim this, I am signing this object: