Skip to content

Instantly share code, notes, and snippets.

View Toddses's full-sized avatar

Todd Miller Toddses

  • TriComB2B
  • Dayton, OH
View GitHub Profile
@Toddses
Toddses / ems-email-sig.html
Created January 9, 2015 19:58
EM Specialists Email Signature
<div>
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="http://tinyurl.com/oacdd7n" color="#7bceeb"/>
</v:background>
<![endif]-->
<table cellpadding="0" cellspacing="0" border="0" style="width: 422px; height: 147px;">
<tr>
<td valign="top" align="left" background="http://tinyurl.com/oacdd7n">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: 'Arial'; font-weight: 700; font-size: 16px; color: white;">
@Toddses
Toddses / iis-web.config
Last active July 14, 2023 04:29
Example web.config for WordPress on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
@Toddses
Toddses / rdm-email-sig.html
Created February 3, 2015 19:04
RDM Email Sig
<html>
<style type="text/css">
body {
background-color:#e2e2e2;
font-family:Helvetica, Arial, sans-serif;
font-size: 12px;
}
a:hover, a:visited, a:link {
text-decoration:none;
@Toddses
Toddses / .functions
Created March 16, 2015 14:18
Automatically pygmentize more output
# Automatically pygmentize 'more' output
function moar() {
local file=$1;
local ext=${file##*.};
# if it’s a dotfile, treat it as shell script
if [[ $file == .* ]]; then
more $file | pygmentize -l sh;
# if a lexer exists for the file ext, use that
@Toddses
Toddses / .bash_profile
Created March 16, 2015 15:38
Start ssh-agent and force passphrase to start a terminal
#
# SSH Agent
#
# force ssh passphrase to start terminal
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/local/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
@Toddses
Toddses / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Toddses
Toddses / mobile-menu.html
Last active August 29, 2015 14:17
RDM Mobile Menu - Two lines animated to an X on click. Use JS or Gumby toggle to add/remove the is-active class.
<a href="#" class="mobile-menu-button">
<div class="mobile-menu-button-wrapper">
<div class="line one"><span></span></div>
<div class="line two"><span></span></div>
</div>
</a>
@Toddses
Toddses / index.html
Created March 25, 2015 16:51
jQuery MagicLine Using Transforms
<div class="nav-wrap">
<ul class="group" id="example-one">
<li class="current_page_item"><a href="#">Home</a></li>
<li><a href="#">Buy Tickets</a></li>
<li><a href="#">Group Sales</a></li>
<li><a href="#">Reviews</a></li>
<li><a href="#">The Show</a></li>
<li><a href="#">Videos</a></li>
<li><a href="#">Photos</a></li>
<li><a href="#">Magic Shop</a></li>
@Toddses
Toddses / flux-touch.directive.js
Created August 14, 2016 01:14
Touch directive for AngularJS that allows you to bind touchstart and touchend events.
/**
* @name fluxTouchDirective
* @description
* Simple directive for adding touchstart and touchend events to an element
*
* @author Todd Miller
* @version 1.0.0
*/
(function () {
@Toddses
Toddses / gulpfile.babel.js
Last active February 27, 2017 14:49
GulpFile for typescript projects
'use strict';
// Proxy URL (optional)
const proxyUrl = '';
// paths to relevant directories
const dirs = {
src: './src',
dest: './dist'
};