Skip to content

Instantly share code, notes, and snippets.

@benbartling
benbartling / WordRotater.vue
Created February 11, 2022 23:05
Vue Word Rotation Component w/ TailwindCSS
<template>
<span class="word-wrapper">
<span class="filler">---</span>
<span class="word" v-for="(word, index) in words" :key="index">
{{ word }}
</span>
</span>
</template>
<script>
@benbartling
benbartling / db.rake
Created November 17, 2017 21:24
Rake Task - Restore Heroku Postgres to Local DB - Ruby on Rails
#CAPTURE NEW: rails db:restore_from_production\[capture\]
#DOWNLOAD LATEST: rails db:restore_from_production\[download\]
#RESTORE: rails db:restore_from_production
#[HEROKU_APP_NAME] = Name of your heroku app.
#[NUMBER_OF_CORES] = Number of concurrent jobs to run for pg_restore.
namespace :db do
desc 'Pull down the latest backup from Heroku and rebuild your local database with it.'
task :restore_from_production, [:process] => :environment do |task, args|