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
""" | |
1. Inherit from the normal RadioInput and copy the RadioInput __unicode__ method. Then change it up how you please: | |
""" | |
class RadioInputNoWrap(RadioInput): | |
def __unicode__(self): | |
if 'id' in self.attrs: | |
label_for = ' for="%s_%s"' % (self.attrs['id'], self.index) | |
else: | |
label_for = '' | |
choice_label = conditional_escape(force_unicode(self.choice_label)) |
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
//jQuery UI Button: | |
$("a.my-button" ).button({ disabled: true }); | |
//Normal Button: | |
$("#button").attr("disabled",true); |
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
curl -Lo- http://bit.ly/janus-bootstrap | bash | |
#errored out...had to install git first, derrr | |
sudo apt-get install git | |
curl -Lo- http://bit.ly/janus-bootstrap | bash | |
# error! had to install rake next | |
sudo apt-get install rake | |
curl -Lo- http://bit.ly/janus-bootstrap | bash |
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
Links: | |
http://devcenter.heroku.com/articles/custom-domains | |
http://joshkim.org/2010/03/15/custom-domain-names-on-heroku-via-namecheap/ | |
Run the heroku commands to add custom domains | |
$ heroku addons:add custom_domains:basic | |
Adding custom_domains to myapp...done. | |
$ heroku domains:add www.example.com |
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
.fluid-row { | |
div, section, article, li { /* Needs testing on li's */ | |
&:first-child { /* using first child and margin-left for IE support */ | |
margin-left: 0; | |
} | |
} | |
} | |
.fluid-column(@columns: 1, @offset: 0, @reset: default) { | |
.input-block-level(); |
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
%section.component{class: defined?(main_classes) && main_classes, id: defined?(id) && id} | |
%h1.component-header{class: defined?(header_classes) && header_classes, id: defined?(header_id) && header_id}= header | |
.component-content{class: defined?(content_classes) && content_classes, id: defined?(content_id) && content_id} | |
=body |
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 QueryParamConstraint | |
extend self | |
def matches?(request) | |
request.query_parameters["view"] == request.path_parameters[:action] | |
end | |
end | |
MyPortal::Application.routes.draw do |
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
$(document).on("page:change", function(){ | |
window.prevPageYOffset = window.pageYOffset; | |
window.prevPageXOffset = window.pageXOffset; | |
}); | |
//fix-scroll want needed for me | |
$(document).on("page:load", function(){ | |
window.scrollTo(window.prevPageXOffset, window.prevPageYOffset); | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" /> | |
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" /> | |
<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.6/ember.min.js"></script> | |
<script src="http://builds.emberjs.com.s3.amazonaws.com/ember-data-latest.js"></script> |
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 ruby | |
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/poltergeist' | |
require 'json' | |
filename = ARGV[0] || false | |
if filename |
OlderNewer