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 your workers are inactive for a long period of time, they'll lose | |
# their MySQL connection. | |
# | |
# This hack ensures we re-connect whenever a connection is | |
# lost. Because, really. why not? | |
# | |
# Stick this in RAILS_ROOT/config/initializers/connection_fix.rb (or somewhere similar) | |
# | |
# From: | |
# http://coderrr.wordpress.com/2009/01/08/activerecord-threading-issues-and-resolutions/ |
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
<div class="row"> | |
<header class="small-12 columns table" role="heading"> | |
<div class="table"> | |
<div class="col shrink"> | |
<h2>@Model.Description</h2> | |
</div> | |
<div class="col collapse-left-10"> | |
@if (Model.Active) | |
{ | |
<span class="label success round uppercase"> |
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
window.FooView = Backbone.View.extend({ | |
el: 'body', | |
events: { | |
'a.bar click': 'save' | |
}, | |
save: function(event) { | |
event.preventDefault(); | |
var src = $(event.currentTarget); | |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
// Note: This file is dependent on Sass and Compass. | |
// Sass = http://sass-lang.com | |
// Compass = http://compass-style.org | |
@import compass/css3 | |
// `Form Element Reset. | |
//---------------------------------------------------------------------------------------------------- | |
::-moz-focus-inner |
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
/* | |
CSS to style the placeholder text. | |
Separate rule for Firefox. | |
Cannot stack with WebKit's. | |
*/ | |
input.placeholder_text, | |
textarea.placeholder_text { | |
color: #777; | |
} |
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
<!-- layout file --> | |
<% if current_user %> | |
Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %> | |
<% else %> | |
<%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>. | |
<% end %> |
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 Scopes | |
def self.included(klass) | |
klass.class_eval do | |
attr_writer :church_id | |
end | |
end | |
end | |
class User < ActiveRecord::Base | |
include Scopes |
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
init_charts: function() { | |
Highcharts.setOptions({ | |
colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'], | |
tooltip: { | |
shadow: false, | |
backgroundColor: 'rgba(0, 0, 0, .85)', | |
borderRadius: 3, | |
borderWidth: 0, | |
style: { | |
padding: 5, |
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
git tag $(date +%Y-%m-%d_release) | |
git push origin $(date +%Y-%m-%d_release) |
NewerOlder