##mailinglists
##list of speakers
| # Call scopes directly from your URL params: | |
| # | |
| # @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
| module Filterable | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| # Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
| # with their associated values. For example, "{ status: 'delayed' }" would call |
| #!/usr/bin/env ruby -wKU | |
| # Comments added 6 March 2014. | |
| # Implementation of the MetaWeblog API for my personal Ruby static blog generator. | |
| # This is not even nearly idiomatic Ruby. There are all kinds of issues. | |
| # (What's with the method interiors all being mushed-up together?) | |
| # But -- it's also worked flawlessly for five years without my having to edit it. | |
| # It won't work for anyone else as-is — but if it helps anyone | |
| # to do a MetaWeblog API implementation, then cool. |
##mailinglists
##list of speakers
| #!/bin/bash | |
| set -ex | |
| bundle install --standalone | |
| digest=$(md5 -q Gemfile) | |
| cmd="raise \"Gemfile changed\" if %x[md5 -q Gemfile].chomp != \"${digest}\"" | |
| echo $cmd > bundle/bundler/setup.rb.new | |
| cat bundle/bundler/setup.rb >> bundle/bundler/setup.rb.new |
| group :development do | |
| # Replace the old aws gem with this one (or newer): | |
| gem "aws-sdk-core", "2.0.0.rc15" | |
| end |
These are the Kickstarter Engineering and Data role definitions for both teams.
| #!/bin/bash | |
| # rubygem is required | |
| # yard is required: gem install yard | |
| # doc_to_dash is required: gem install doc_to_dash | |
| GEM_NAME_PREFIX=$1 | |
| DOCSET_DIR=$2 | |
| TMP_DIR=$(mktemp -d) |
Suppose you have weird taste and you absolutely want:
| """ | |
| When run in cron, automatically adds compliant alias names to local DNS. | |
| Use at your own risk. | |
| Patrick Fuller, 25 June 17 | |
| """ | |
| import re | |
| import paramiko | |
| import pymongo |