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
// Requires the following attributes be set: step, min, and max on the input | |
input_number: function() { | |
if (!$('input[type=number]').length) { | |
return; | |
} | |
function getStep(el) { | |
return parseInt($(el).attr('step')) || 1; | |
} | |
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) |
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
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
<!-- 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
/* | |
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
// 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
#!/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
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
<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"> |
OlderNewer