Skip to content

Instantly share code, notes, and snippets.

💭
Busy typing a status #SoMeta

Daniel Steele dansteele

💭
Busy typing a status #SoMeta
Block or report user

Report or block dansteele

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mid-level-backend-dev.md

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 / create_review_app_subdomain.rake
Last active Aug 20, 2019
Use a sub-subdomain on Heroku review apps with DNSimple. Run this task from your app.json in your postdeploy script.
View create_review_app_subdomain.rake
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
View corner_ribbin.css
.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 Jan 12, 2016
Dynamic stuff for Austin
View demo.rb
class Person
def initialize(name)
@name = name
end
end
austin = Person.new("Austin")
austin.define_singleton_method "speak" do
"Hi, my name is #{@name}"
You can’t perform that action at this time.