Skip to content

Instantly share code, notes, and snippets.

View peterfication's full-sized avatar

Peter Morgenstern peterfication

View GitHub Profile
// This file has to be required before rails-ujs
// To use it change `data-confirm` of your links to `data-confirm-swal`
(function() {
const handleConfirm = function(element) {
if (!allowAction(this)) {
Rails.stopEverything(element)
}
}
const allowAction = element => {
@peterfication
peterfication / welcome_mail.js
Last active May 21, 2018 17:47
welcome_mail.js
import { generateFetchLocale } from 'lib/utils'
import * as React from 'react'
import Button from 'templates/html/snippets/Button'
import Closing from 'templates/html/snippets/Closing'
import Footer from 'templates/html/snippets/Footer'
import FullWidthBorder from 'templates/html/snippets/FullWidthBorder'
import Greeting from 'templates/html/snippets/Greeting'
import Header from 'templates/html/snippets/Header'
import Layout from 'templates/html/snippets/Layout'
jobs:
build:
docker:
...
- image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2