Skip to content

Instantly share code, notes, and snippets.

View erino's full-sized avatar

Erin Raj-Staniland erino

View GitHub Profile
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.gra.fo/schema/untitled-ekg#"
xml:base="http://www.gra.fo/schema/untitled-ekg"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:gf="http://www.gra.fo/schema/untitled-ekg#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:foaf="http://xmlns.com/foaf/spec/"
@erino
erino / rubocoper
Last active December 12, 2019 15:53 — forked from deivid-rodriguez/rubocoper
Adds RuboCop to a project, one commit per cop
#!/usr/bin/env ruby
require 'open3'
#
# Adds RuboCop to a project, one cop per commit
#
class RuboCoper
FILES_AND_DIRECTORIES = "app config Gemfile lib spec test".freeze
BIN = "bundle exec govuk-lint-ruby".freeze
@erino
erino / example.rb
Created January 15, 2016 11:29
Page and Slice localizer
Page.all.each do |page|
Slices::PageLocalizer.new(page).localize
page.save
end
function p {
cd "`find ~/Projects -iname \"*$1*\" -type d -maxdepth 2 | sort | head -1`"
}
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export EDITOR="/usr/bin/mate -w"
export HISTIGNORE="&:ls:[bf]g:exit"
export HISTSIZE=10000000
if [ -f /opt/local/etc/bash_completion ]; then
. /opt/local/etc/bash_completion
fi
# Get the name of the branch we are on