Skip to content

Instantly share code, notes, and snippets.

@benhutton
benhutton / asdf.rb
Last active December 20, 2018 15:51
bad = the_lantern.library_entries.to_a.select { |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.id)
le.remote_promo_image_url = good_url
@benhutton
benhutton / 0_reuse_code.js
Created February 23, 2016 19:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
title,ministry.ministry_name,commitment_level,description,role,requirements,contact_person,contact_info
Bulletin stuffing,Office Help,Usually Friday mornings,stuff inserts into Sunday bulletins,,,Dot Boersma,dboersma@tenth.org
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,mwaltz@acninc.net/dapple@tenth.org
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,dapple@tenth.org
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
Dining Room
* Bars on windows
Kitchen
* Bars on windows
* HVAC soffit
Living Room
* Bars on windows
* Security system
{
"ROOT" => {
"Old Testament" => [
'Genesis',
'Exodus',
'Leviticus',
'Numbers',
'Deuteronomy',
'Joshua',
'Judges',
{
"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",
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
@benhutton
benhutton / All To Us
Created August 18, 2012 13:53
Lyrics for 8/18
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
Chorus:
Let the glory of Your name be the passion of the church
NoMethodError
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'