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
[user] | |
name = Matt Di Pasquale | |
email = [email protected] | |
[alias] | |
br = branch | |
ci = commit -am | |
co = checkout | |
df = diff | |
lg = log | |
ll = log -p |
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
http://www.flotcharts.org/ | |
http://www.highcharts.com/ | |
http://www.jscharts.com/ | |
http://oesmith.github.com/morris.js/ | |
http://raphaeljs.com/ | |
http://g.raphaeljs.com/ | |
http://www.rgraph.net/examples/ | |
http://code.shutterstock.com/rickshaw/ | |
http://xaviershay.github.com/tufte-graph/ |
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
module ErrorMessagesHelper | |
# Render error messages for the given objects. The :message and :header_message options are allowed. | |
def error_messages_for(*objects) | |
options = objects.extract_options! | |
options[:header_message] ||= t(:"errors.template.header", model: t(:"activerecord.models.#{objects.compact.first.class.name.downcase}"), count: objects.compact.first.errors.messages.size) | |
options[:message] ||= t(:"errors.template.body") | |
messages = objects.compact.map { |o| o.errors.full_messages }.flatten | |
unless messages.empty? | |
content_tag(:div, id: "error_explanation") do | |
list_items = messages.map { |msg| content_tag(:li, msg) } |
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
#!/bin/bash | |
# paths | |
LIVESTREAMER="livestreamer" | |
FFMPEG="ffmpeg" | |
##### | |
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
# Send password reset notification | |
# path: app/mailers/user_mailer.rb | |
class UserMailer < ActionMailer::Base | |
default :from => "[email protected]" | |
def password_reset(user, token) | |
@resource = user | |
@token = token | |
mail(:to => user.email, | |
:subject => 'Password Reset Notification') |
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
<html> | |
<head> | |
<style> | |
.item {width:300px; display: inline-block; } | |
.item .itemtitle {font-weight:bold; font-size:2em;} | |
.hidden {display:none;} | |
</style> | |
</head> | |
<body> | |
<h1>Amalgam Comics Characters</h1> |