This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.chart{ | |
width: 100%; | |
height: 100px; | |
overflow: hidden; | |
} | |
.chart_icon{ | |
position: absolute; | |
font-size: 25px; | |
right: 5px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from Frank: | |
# https://github.com/blahed/frank/ | |
# Copyright (c) 2010 Travis Dunn | |
# | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has("gui_macvim") | |
macmenu &File.New\ Tab key=<nop> | |
map <D-t> :CommandT<CR> | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/concern' | |
module FrontMatter | |
extend ActiveSupport::Concern | |
included do | |
helper_method :front_matter | |
end | |
def front_matter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yaml' | |
namespace :pg do | |
namespace :mac do | |
def conf | |
@conf ||= YAML.load_file("#{Rails.root}/config/database.yml") | |
end | |
def username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
filetype off " required! | |
call pathogen#infect() | |
if has("gui_macvim") | |
" let Vundle manage Vundle | |
" set rtp+=~/.vim/bundle/vundle/ | |
" call vundle#rc() | |
" Bundle 'gmarik/vundle' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. # last edit (magic dot) | |
:& # last substitute | |
:%& # last substitute every line | |
:%&gic # last substitute every line confirm | |
g% # normal mode repeat last substitute | |
g& # last substitute on all lines | |
@@ # last recording | |
@: # last command-mode command | |
:!! # last :! command | |
:~ # last substitute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- To be included directly before closing body tag --> | |
<script> | |
$(document).ready(function(){ | |
var client_ids = $('select#ctl00_ctl00_placeHolderMain_cphMainContent_cbClient option').map(function() { | |
return /\d+/.exec($(this).val()); | |
}).get().join(',') | |
var sp = document.createElement('script'); | |
sp.type = 'text/javascript'; | |
sp.src = "//www.paycor.com/syndicated/online-home.js?client_ids=" + client_ids; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.each($('textarea.textile'),function(i,el){ | |
TextileEditor.initialize($(el).attr('id')); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if /Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent) | |
ffversion = new Number(RegExp.$1) | |
if ffversion < 3.5 | |
head = document.getElementsByTagName("head")[0] | |
el = document.createElement("link") | |
el.type = "text/css" | |
el.rel = "stylesheet" | |
el.href = "/assets/firefox.css" | |
el.media = "screen" | |
head.appendChild el |