Skip to content

Instantly share code, notes, and snippets.

View kevin-cantwell's full-sized avatar
🙃
cOmpUTerZ

Kevin Cantwell kevin-cantwell

🙃
cOmpUTerZ
View GitHub Profile
$(document).ready(function() {
$('a').webmailto();
});
<script src="jquery.webmailto.js" type="text/javascript"></script>
$('a').webmailto( { className : 'mymailto' } );
ul.webmailto {
list-style : none;
margin : 0;
padding : 0;
background-image : url('img/webmails.png');
}
ul.webmailto li {
display : inline;
}
ul.webmailto li a {
ul.mymailto {
list-style : none;
margin : 0;
padding : 0;
background-color : #dcdcdc;
border : 1px solid #7166fb;
}
ul.mymailto li {
display : inline;
}
$('a').webmailto(
{
className : 'custom',
callback : function(newWindow) {
// This may not work well in IE, sorry...
newWindow.confirm('Destroy the warp core?');
}
}
);
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.chatcoyote.js"></script>

Keybase proof

I hereby claim:

  • I am kevin-cantwell on github.
  • I am kvn (https://keybase.io/kvn) on keybase.
  • I have a public key whose fingerprint is B4CD E7D8 1A51 4507 F4E4 617F 0D83 475C EA4A 2B28

To claim this, I am signing this object:

package myjson
import (
"fmt"
"strings"
)
type JsonData map[string]interface{}
func (d JsonData) Int64(dotPath string) (int64, error) {
class Budget < ActiveRecord::Base
attr_accessible :budget, :expenses, :start_date, :end_date, :purchases_attributes
has_many :purchases
accepts_nested_attributes_for :purchases, :allow_destroy => true
def perdiem
if remaining_days > 0
((projected_spend_so_far - actual_spend_so_far) / remaining_days) + initial_perdiem
else