Skip to content

Instantly share code, notes, and snippets.

View jeremybise's full-sized avatar

Jeremy Bise jeremybise

View GitHub Profile
@jeremybise
jeremybise / _vars-mixins.scss
Last active May 13, 2019 15:08
Colors SCSS Vars
// BREAKPOINTS
// from https://tailwindcss.com/docs/breakpoints
$bp-sm: 640px;
$bp-md: 768px;
$bp-lg: 1024px;
$bp-xl: 1200px;
// LINE HEIGHT
//from https://tailwindcss.com/docs/line-height
@jeremybise
jeremybise / baseof.html
Last active March 12, 2024 08:10
Google Fonts via config with Hugo
<!-- Wherever your head tag is located, add the new partial -->
<head>
{{ partial "google-fonts" . }}
</head>
@maciejmatu
maciejmatu / email-response.js
Created May 3, 2018 21:01
Lambda function I use for email auto-response with Netlify forms.
require("dotenv").config(); // read .env file if present.
const nodemailer = require("nodemailer");
const createHtmlMail = require("./modules/mail-template"); // this function returns html email code
exports.handler = function(event, context, callback) {
const user = process.env.MAIL_USER; // some@mail.com
const pass = process.env.MAIL_PASSWORD; // 42isthecoolestnumber
let transporter = nodemailer.createTransport({