Prerequisites:
- Heroku CLI installed on your computer
- A project deployed to Heroku
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# -- navigation ---------------------------------------------------------------- | |
# if you're running tmux within iTerm2 | |
# - and tmux is 1.9 or 1.9a |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/tinot/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
version: 2.1 | |
orbs: | |
heroku: circleci/heroku@0.0.4 | |
references: | |
container_setup: &container_setup | |
docker: # run the steps with Docker | |
- image: circleci/ruby:2.6.0-rc1-node # ...with this image as the primary container; this is where all `steps` will run | |
environment: # environment variables for primary container |
/* | |
In this scenario you could just use `vm.$emit` to communicate to `Container` from `CustomButton. | |
In reality, this pattern will shine when your component is nested inside some more components and | |
you can't really emit event to the `Container` quite easily. | |
*/ | |
<template> | |
<custom-button label='Click me and the I will update the container state' /> | |
</template> | |
<script> |
import Vue from 'vue' | |
export const EventBus = new Vue() |
// Bind it to click event of that specific button. | |
const buildFormFromTemplateBtn = (evt: Event, | |
addBtn: HTMLAnchorElement, | |
editorIdx: number, | |
isNewVersion: boolean = false) => { | |
if (evt.target instanceof window.HTMLAnchorElement) { | |
// Swap in the time to generate new unique key for a form input. | |
const time: number = new Date().getTime() |
# frozen_string_literal: true | |
module DynamicFormHelper | |
def link_to_add_association(label, options = {}, partial:, form:, association:, association_type:) | |
format = options.fetch(:format, '') | |
new_object = form.object.send(association).klass.new | |
template_opts = { | |
locals: { | |
form: form, | |
format: format, |
Prerequisites:
for f in *.csv; do | |
mv -- "$f" "${f%.csv}.txt" | |
done |