Skip to content

Instantly share code, notes, and snippets.

View tbisaacs's full-sized avatar

Travis Isaacs tbisaacs

View GitHub Profile
@mixin arrow-box($direction, $color, $size)
&:after, &:before
@if $direction == top
bottom: 100%
@if $direction == bottom
top: 100%
@if $direction == left
right: 100%
@if $direction == right
left: 100%
@mixin max_height($size)
max-height: $size
height: auto !important
height: $size
@tbisaacs
tbisaacs / Preferences.sublime-settings
Created November 17, 2012 01:25
Travis's Sublime Config
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
"bold_folder_labels": true,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"dump.rdb"
],
@tbisaacs
tbisaacs / gist:4110857
Created November 19, 2012 14:13
Github Error
fatal: bad config value for 'core.precomposeunicode' in .git/config
(32768)
@tbisaacs
tbisaacs / gist:4163243
Created November 28, 2012 18:54
color generator
$services: 50
$colors: $blue $green $red $grayLight $purple
@for $i from 1 through 10
@each $color in $colors
.service_#{$services}
$computed: adjust-hue($color, $i*4)
@if $i == 10
// background: rgba($color, .8)
+contrasted($color)
@tbisaacs
tbisaacs / gist:4163246
Created November 28, 2012 18:55
service classes
$services: 50
$colors: $blue $green $red $grayLight $purple
@for $i from 1 through 10
@each $color in $colors
.service_#{$services}
$computed: adjust-hue($color, $i*4)
@if $i == 10
+contrasted($color)
border-color: shade($color, 25%)
nv.addGraph(function() {
var chart = nv.models.linePlusBarChart()
.margin({top: 0, right: 50, bottom: 25, left: 50})
.x(function(d,i) { return i })
.color(d3.scale.category10().range());
chart.xAxis.tickFormat(function(d) {
var dx = testdata[0].values[d] && testdata[0].values[d].x || 0;
return dx ? d3.time.format('%x')(new Date(dx)) : '';
});
.report_summaries
display: table
width: 100%
+mobile-only
@extend .flat_summaries
.report_row
display: table-row
.report_cell
width: 50%
display: table-cell
$(document).on('fastclick', 'a[data-seenit]', function(evt){
var key = $(this).attr('data-seenit');
var after = $(this).attr('data-after-seenit-id')
$("[data-seenit-target=" + key + "]").fadeOut();
$.ajax('/seenit', {
type : 'post',
data : {
key : key
<table cellspacing="0" cellpadding="0" border="0" width='100%' style="padding-top: 10px; ">
<tr valign="middle">
<td><a href="http://frontdeskhq.com"><img src="https://d255l8dnt407au.cloudfront.net/email/signatures/alex-20150908-1.png" width="32" height="32" alt="Alex Gamoran"></a></td>
<td width="100%" style="padding-left: 10px">
<h3 style="margin: 0 0 5px 0; padding: 3px 0 0 0; line-height: 1em; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px; color: #3e3e3e; font-weight: bold">
Alex Gamoran
</h3>
<small style="font-size: 11px; color: #555; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">
Account Executive at <a style="color: #1b74b1; text-decoration: none" href="http://frontdeskhq.com">Front Desk</a> <span style="color: rgba(0,0,0,.3)">&bull;</span> <a style="color: #1b74b1; text-decoration: none" href="tel:206-388-0864">206-388-0864</a>
</small>