Skip to content

Instantly share code, notes, and snippets.

View dansteele's full-sized avatar
💭
Busy typing a status #SoMeta

Daniel Steele dansteele

💭
Busy typing a status #SoMeta
View GitHub Profile
@dansteele
dansteele / create_review_app_subdomain.rake
Last active September 15, 2022 23:45
Use a sub-subdomain on Heroku review apps with DNSimple. Run this task from your app.json in your postdeploy script.
namespace :staging do
desc 'create subdomain DNS record for Heroku review app'
task :publish_dns do
require 'dnsimple'
require 'platform-api'
STAGING_DOMAIN = 'mystagingdomain.com'.freeze
DNSIMPLE_ACCOUNT_ID = .freeze
heroku_app_name = ENV['HEROKU_APP_NAME']
subdomain = heroku_app_name.match(/.*(pr-\d+)/).captures.first

Mid-level backend Rails developer

eola are looking for a mid-level Rails dev to start immediately.

As always, we're mainly looking for the right attitude rather than an exact set of experiences

Location

Tech Hub London. May accept remote developer living in the UK.

Benefits

  • High-priority given to testing and code quality
@dansteele
dansteele / corner_ribbin.css
Created January 13, 2016 16:00
corner_ribbon
.corner-ribbon{
width: 200px;
background: #e43;
position: absolute;
top: 25px;
left: -50px;
text-align: center;
line-height: 2.5rem;
letter-spacing: 1px;
color: #f0f0f0;
@dansteele
dansteele / demo.rb
Last active January 12, 2016 17:10
Dynamic stuff for Austin
class Person
def initialize(name)
@name = name
end
end
austin = Person.new("Austin")
austin.define_singleton_method "speak" do
"Hi, my name is #{@name}"