Skip to content

Instantly share code, notes, and snippets.

View asdf.rb
bad = { |le| !le.promo_image.file.exists? }
bad.each do |le|
next unless le.promo_image.present?
good_url = le.promo_image_url.sub('resource_library/library_entry', 'blog/blog_entry').sub('//', 'https://')
puts good_url
le.update_column(:promo_image, nil)
le = RL::LibraryEntry.find(
le.remote_promo_image_url = good_url
benhutton / 0_reuse_code.js
Created Feb 23, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View come_thou_fount_of_every_blessing.txt
Come Thou Fount of Every Blessing
Come Thou Fount of every blessing
Tune my heart to sing Thy grace;
Streams of mercy, never ceasing,
Call for songs of loudest praise
Teach me some melodious sonnet,
Sung by flaming tongues above.
Praise the mount! I’m fixed upon it,
Mount of God’s unchanging love.
View volunteer_opportunities.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
Bulletin stuffing,Office Help,Usually Friday mornings,stuff inserts into Sunday bulletins,,,Dot Boersma,
Cook for Fellowship Bible Study large group,ACTS,"1 Sunday/month, 4:30-6pm",Provide food prep for 20-30 homeless guests,"Be part of our ministry team which includes music leaders, Bible teachers, table hosts, and cooks.",Ability to cook for large group,Mike Waltz/David Apple,
Fellowship Bible Study teacher,ACTS,"1 Sunday /month, 4:30-6pm ",Lead a weekly Bible study with our homeless neighbors,Teach the Word to Bible students who are homeless or poor. Be part of a team rotation. ,Member of Tenth with gift of compassion,David Apple,
Youth Group Leader,Maranatha,"2-5 hours/week, Sunday 6PM plus monthly meetings, plus special events","Be a part of a team of adults who love teens and desire to love them and walk with them through such a cruci
View angie.txt
Dining Room
* Bars on windows
* Bars on windows
* HVAC soffit
Living Room
* Bars on windows
* Security system
View scripture_hash.rb
"ROOT" => {
"Old Testament" => [
View topics_hash.rb
"ROOT" => {
"Theology" => {
"General Theology" => [],
"God" => [
"The Nature of God",
"The Sovereignty of God",
"The Foreknowledge of God",
"The Grace of God",
"The Glory of God",
View How Deep The Father's Love For Us
How deep the Father's love for us,
How vast beyond all measure
That He should give His only Son
To make a wretch His treasure
How great the pain of searing loss,
The Father turns His face away
As wounds which mar the chosen One,
Bring many sons to glory
View All To Us
All To Us
Verse 1
Precious Cornerstone, Sure Foundation
You are faithful to the end
We are waiting on you Jesus
We believe You're all to us
Let the glory of Your name be the passion of the church
View gist:3041864
undefined method `underscored_resource_name' for #<ActiveAdmin::Page:0x007fc66d4185a8>
/home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/active_admin-73b051f89520/lib/active_admin/router.rb:60:in `block (4 levels) in apply'
/home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/active_admin-73b051f89520/lib/active_admin/router.rb:59:in `each'
/home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/active_admin-73b051f89520/lib/active_admin/router.rb:59:in `block (3 levels) in apply'
/home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/active_admin-73b051f89520/lib/active_admin/router.rb:96:in `instance_eval'
/home/ben/.rvm/gems/ruby-1.9.3-p194/bundler/gems/active_admin-73b051f89520/lib/active_admin/router.rb:96:in `block (4 levels) in apply'
actionpack (3.2.3) lib/action_dispatch/routing/mapper.rb:688:in `block in namespace'