Skip to content

Instantly share code, notes, and snippets.

<!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="-
@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;
@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
<?php
function fizzbuzz ($first, $last) {
$current = $first;
while ($current <= $last) {
if (($current % 3 == 0) && ($current % 5 == 0)) {
yield "fizzbuzz";
} else if ($current % 3 == 0) {
yield "fizz";
} else if ($current % 5 == 0) {
import { NgModule, Component } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
@Component({
selector: 'racing-app',
template: '<h1>{{heading}}</h1>'
})
class AppComponent {
heading = "Ultra Racing Schedule"
.devhub-wrap #content-area.has-sidebar {
width: auto;
}
.devhub-wrap #content-area, .devhub-wrap .inner-wrap {
max-width: none;
}
.devhub-wrap .has-sidebar main {
width: 79%;
<?php
/*
Plugin Name: Custom Post Type - Events
Version: 0.0.1
Plugin URI: http://ukyrgf.com
Description: Defines a custom post type for an event calendar
Author URI: https://epatr.com
Author: Eric Patrick
*/
@epatr
epatr / _reboot-variables.scss
Created June 14, 2017 22:51
A Sass file to @import before importing Bootstrap 4's Reboot file. Uses Bootstrap defaults.
// Required mixin
$enable-hover-media-query: false;
@mixin hover-focus {
@if $enable-hover-media-query {
&:focus { @content }
@include hover { @content }
}
@else {
&:focus,
&:hover {
00 01 10 11
00000 NUL Spc @ `
00001 SOH ! A a
00010 STX " B b
00011 ETX # C c
00100 EOT $ D d
00101 ENQ % E e
00110 ACK & F f
00111 BEL ' G g
01000 BS ( H h
import os
import urllib2
print("Opening urls.txt...")
for url in open('urls.txt'):
filename = url.split('/')[-1].rstrip()
if not os.path.exists(filename):
print("Downloading"),
print filename