I hereby claim:
- I am mmichael0413 on github.
- I am vich (https://keybase.io/vich) on keybase.
- I have a public key ASBo0ptX8oL8roHxBxquVQ32ALDAZ2KEfJZpEvABtdWvpQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
rm -r services/defenestration && rm -r services/delayed-jobs && rm -r services/erudition && rm -r services/procrastination && rm -r services/rabbit-monitor && rm -r services/stores && rm -r services/supplication && rm -r third-party/memcached && rm -r third-party/postgres && rm -r third-party/rabbitmq && rm -r third-party/redis |
namespace :calculate do | |
task checkin_images_geo_data: :environment do | |
headers_success = ['Checkin ID'] | |
headers_error = ['Checkin ID', 'Error'] | |
checkins_with_geo_images = [] | |
other_checkins = [] | |
checkins = Checkin.includes(:submissions, { submissions: :images }) | |
.where('created_at >= ?', (1.month + 1.day).ago.to_datetime) |
require 'active_record/connection_adapters/abstract_mysql_adapter' | |
module ActiveRecord | |
module ConnectionAdapters | |
class AbstractMysqlAdapter | |
NATIVE_DATABASE_TYPES[:string] = { :name => "varchar", :limit => 191 } | |
end | |
end | |
end |
# Code for creating a list of 400 movie ids (most popular) | |
# And then creating a local movie object (along with genres and movie_genres) | |
api_ids = [] | |
20.times do |i| | |
resp = HTTParty.get("http://api.themoviedb.org/3/movie/popular?api_key=#{ENV['TMDB_API_KEY']}&page=#{i+1}") | |
data = JSON.parse(resp.body) | |
data['results'].each do |movie| | |
api_ids << movie['id'] |
<!-- STRIPE CUSTOM CHECKOUT FORM --> | |
<div> | |
<script src="https://checkout.stripe.com/checkout.js"></script> | |
<a class="cta-red-copy" id="customButton">Pay with Card</a> | |
<script> | |
var amountValue; | |
var handler = StripeCheckout.configure({ | |
key: '<%= Rails.configuration.stripe[:publishable_key] %>', |
rails add NewModelNameToUsers new_model_name:string |
rails generate controller home index | |