Skip to content

Instantly share code, notes, and snippets.


Todd Miller Toddses

  • TriComB2B
  • Dayton, OH
View GitHub Profile
Toddses / gulpfile.babel.js
Last active Feb 27, 2017
GulpFile for typescript projects
View gulpfile.babel.js
'use strict';
// Proxy URL (optional)
const proxyUrl = '';
// paths to relevant directories
const dirs = {
src: './src',
dest: './dist'
Toddses / flux-touch.directive.js
Created Aug 14, 2016
Touch directive for AngularJS that allows you to bind touchstart and touchend events.
View flux-touch.directive.js
* @name fluxTouchDirective
* @description
* Simple directive for adding touchstart and touchend events to an element
* @author Todd Miller
* @version 1.0.0
(function () {
Toddses / index.html
Created Mar 25, 2015
jQuery MagicLine Using Transforms
View index.html
<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 / mobile-menu.html
Last active Aug 29, 2015
RDM Mobile Menu - Two lines animated to an X on click. Use JS or Gumby toggle to add/remove the is-active class.
View mobile-menu.html
<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>
Toddses / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Toddses / .bash_profile
Created Mar 16, 2015
Start ssh-agent and force passphrase to start a terminal
View .bash_profile
# SSH Agent
# force ssh passphrase to start terminal
function start_agent {
echo "Initialising new SSH agent..."
/usr/local/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
Toddses / .functions
Created Mar 16, 2015
Automatically pygmentize more output
View .functions
# 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
View rdm-email-sig.html
<style type="text/css">
body {
font-family:Helvetica, Arial, sans-serif;
font-size: 12px;
a:hover, a:visited, a:link {
Toddses / iis-web.config
Last active Jan 17, 2022
Example web.config for WordPress on IIS
View iis-web.config
<?xml version="1.0" encoding="UTF-8"?>
<clear />
<add value="index.php" />
Toddses / ems-email-sig.html
Created Jan 9, 2015
EM Specialists Email Signature
View ems-email-sig.html
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="" color="#7bceeb"/>
<table cellpadding="0" cellspacing="0" border="0" style="width: 422px; height: 147px;">
<td valign="top" align="left" background="">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: 'Arial'; font-weight: 700; font-size: 16px; color: white;">