This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { pipe } from '../utilities' | |
import { Model } from './model' | |
import { HyperScriptView } from './view' | |
import { | |
MessageObject, Updater, MSG, Dispatcher, dispatchList | |
} from './update' | |
import createElement from 'virtual-dom/create-element' | |
import { diff, patch } from 'virtual-dom' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#is-contact-form { | |
input { | |
@extend .input; | |
} | |
textarea { | |
@extend .textarea; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/node | |
const https = require('https') | |
const options = { | |
headers: { | |
'Accept': 'application/json' | |
} | |
} | |
https.get('https://icanhazdadjoke.com', options, req => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Pool Safety Covers", | |
"settings": [ | |
{ | |
"type": "paragraph", | |
"content": "Set up safety covers for your pool covers and steps." | |
} | |
], | |
"blocks": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { task, src, dest, series, watch } = require('gulp') | |
const sass = require('gulp-sass') | |
const autoprefixer = require('gulp-autoprefixer') | |
const rename = require('gulp-rename') | |
sass.compiler = require('node-sass') | |
function scss() { | |
return src('./src/sass/main.scss') | |
.pipe(sass({ outputStyle: 'compressed' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuggestionsData { | |
constructor() { | |
this.$CF = document.querySelector('form[data-cf-form]') | |
this.liquid_data = JSON.parse( | |
document.getElementById('dog_customer_details').innerText | |
) | |
this.storage = null | |
this.init_data() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [ | |
"@babel/env", | |
"@vue/babel-preset-jsx", | |
[ | |
"babel-preset-minify", { | |
"mangle": true | |
} | |
] | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mailer = require('nodemailer'); | |
const validator = require('validator'); | |
class Email { | |
constructor() { | |
this.config = { | |
host: 'host', | |
port: 465, | |
secure: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $mailer = new Mailer(Obj). Obj is expected to be a parsed JSON object from the front end | |
// Example {"email": "person@mailing.com", "name": "Person Mailing", "message": "Hello"} | |
// you decode_json(Obj, true); first before instantiating the mail object with it. | |
// Mailer will echo a JSON string of either a success message or an array of errors after attempting | |
// to sanitize, validate and send mail. use $mailer->send(); to run the module after instantiating it. | |
class Mailer { | |
function __construct($envelope) { |