Skip to content

Instantly share code, notes, and snippets.

@epatr
epatr / bootstrap-responsive-carousel.html
Created February 7, 2018 15:14
Responsive images for carousel, so it doesn't get too tiny on mobile
@epatr
epatr / bootstrap-4-sass-mixins-cheat-sheet.scss
Created February 23, 2018 16:19 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// @author http://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/v4-dev/scss/mixins
/* -------------------------------------------------------------------------- */
// Grid variables
$grid-columns: 12 !default;
$grid-gutter-width: 30px !default;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width"><title>Xactimate Training Courses Available Now</title><style>@media only screen{html{min-height:100%;background:#8C8979}}@media only screen and (max-width:696px){table.body img{width:auto;height:auto}table.body center{min-width:0!important}table.body .container{width:95%!important}table.body .columns{height:auto!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px!important;padding-right:16px!important}table.body .collapse .columns{padding-left:0!important;padding-right:0!important}th.small-12{display:inline-block!important;width:100%!important}}@media only screen and (max-width:696px){.bg-dark .month{border-right:none}}</style></head><body style="-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width"><title>Drone Training Courses Available Now</title><style>@media only screen{html{min-height:100%;background:#8C8979}}@media only screen and (max-width:696px){table.body img{width:auto;height:auto}table.body center{min-width:0!important}table.body .container{width:95%!important}table.body .columns{height:auto!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px!important;padding-right:16px!important}table.body .collapse .columns{padding-left:0!important;padding-right:0!important}th.small-12{display:inline-block!important;width:100%!important}}</style></head><body style="-moz-box-sizing:border-box;-ms-text-size-adjust:100%;-webkit-box-sizing:border-bo
<div class="clearfix" id="assessors-in-action">
<a href="http://www.jmrodkey.com/" target="_blank"><img class="img-fluid float-lg-right p-3-3" src="/wp-content/uploads/2018/06/JMR_Inspections-300x151.png" alt="" width="300" height="151" /></a>
<h2>Assessors in Action</h2>
<em>A quick glance at the Home Energy Score Home Inspectors who are makin’ it work! </em>
<h5><strong>Inspector:</strong></h5>
John Rodkey
<h5><strong>Company:</strong></h5>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>New message from AmeriPro Inspection Corporation</title>
<style>@media only screen{html{min-height:100%;background:#f3f3f3}}@media only screen and (max-width:656px){table.body img{width:auto;height:auto}table.body center{min-width:0!important}table.body .container{width:95%!important}table.body .columns{height:auto!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px!important;padding-right:16px!important}table.body .columns .columns{padding-left:0!important;padding-right:0!important}th.small-12{display:inline-block!important;width:100%!important}.columns th.small-12{display:block!important;width:100%!important}}<
<%@ Page Title="Calculator" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Calculator.aspx.vb" Inherits="Fishbowl.Contact" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: Title %>: Gallons of water to fill my aquarium.</h2>
<table class="nav-justified">
<tr>
<td style="width: 136px">Length (inches):</td>
<td style="width: 200px">
<asp:TextBox ID="txtLength" runat="server" Width="50px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;

Keybase proof

I hereby claim:

  • I am epatr on github.
  • I am epatr (https://keybase.io/epatr) on keybase.
  • I have a public key whose fingerprint is E518 A6D6 A78E 35B8 DB8D E103 374D DDA2 3D0E 5DEE

To claim this, I am signing this object:

@epatr
epatr / scrollspy.html
Created October 12, 2018 16:47
Bootstrap Scrollspy Stylized
<body data-spy="scroll" data-target="#navbar-submenu" >
<nav id="navbar-submenu" class="navbar navbar-light bg-light py-0">
<ul class="nav m-auto justify-content-center">
<li class="nav-item"><a class="nav-link page-scroller" href="#understanding-the-home-energy-score">Understanding the Score</a></li>
<li class="nav-item"><a class="nav-link page-scroller" href="#realtors-and-agents-sell-homes-faster">Real Estate</a></li>
<li class="nav-item"><a class="nav-link page-scroller" href="#become-a-certified-assessor">Become an Assessor</a></li>
</ul>
</nav>
@epatr
epatr / 7zextract.bat
Created November 13, 2018 23:19
Recursively extract and delete compressed files
:: To actually include the path expansion character (tilde), I had to give valid numbers; see http://ss64.com/nt/rem.html for bug reference. Also, try call /? for more info.
@REM The %~n0 extracts the name sans extension to use as output folder. If you need full paths, use "%~dpn0". The -y forces overwriting by saying yes to everything. Or use -aoa to overwrite.
@REM Using `x` instead of `e` maintains dir structure (usually what we want)
:: If you want recursive, use FOR /R
@FOR /R %%a IN (*.zip) DO @(
@if [%1] EQU [/y] (
@7z x "%%a" -o"%%~dpa" -aoa
) else if [%1] EQU [/yd] (
@7z x "%%a" -o"%%~dpa" -aoa