This file contains 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
namespace :bundler do | |
desc "Install bundles into application" | |
task :install, :roles => [:app] do | |
from = source.next_revision(current_revision) | |
if capture("cd #{latest_release} && #{source.local.log(from)} Gemfile Gemfile.lock | wc -l").to_i > 0 | |
run "cd #{latest_release} && #{try_sudo} bundle install --without test" | |
else | |
logger.info "Skipping Bundle install because there were no asset changes" | |
end | |
end |
This file contains 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
.twitter-typeahead .tt-query, | |
.twitter-typeahead .tt-hint { | |
margin-bottom: 0; | |
} | |
.tt-dropdown-menu { | |
@extend .dropdown-menu; | |
} | |
.tt-suggestion { |
This file contains 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
<FONT SIZE="4"><FONT COLOR="#0b5394">A.K.M. Ashrafuzzaman</FONT></FONT><BR> | |
<BR> | |
<IMG SRC="http://www.sympaticosoftware.com/assets/SympaticoLogoSignature.png" ALIGN="bottom" BORDER="0"><BR> | |
111 West 10th Street <BR> | |
Kansas City, MO 64105<BR> | |
Office <A HREF="tel:913-491-3366">913-491-3366</A><BR> | |
Mobile <A HREF="tel:%2B880-1755-592433">+880-1755-592433</A><BR> | |
<A HREF="mailto:asraf@sympaticosoftware.com">asraf@sympaticosoftware.com</A><BR> | |
<A HREF="http://www.sympaticosoftware.com/">www.sympaticosoftware.com</A> |
This file contains 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>A.K.M. Ashrafuzzaman</div> | |
<div>Lead Software Engineer</div> | |
<div><a href="http://www.newscred.com/" target="_blank">NewsCred</a></div> | |
<div><br></div> | |
<div>(M) 880-175-5592433</div> | |
<div><a href="https://twitter.com/ashrafuzzaman" target="_blank">Twitter</a> | <a | |
href="http://jitu-blog.blogspot.com/" target="_blank">Blog</a> | <a | |
href="https://www.facebook.com/ashrafuzzaman.jitu" target="_blank">Facebook</a></div> | |
<div><br></div> | |
<div><font color="#ff0000">Check out The <a href="http://newscred.com/theacademy" target="_blank">Academy</a>, |
This file contains 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
en: | |
attributes: | |
first_name: First name | |
activerecord: | |
models: | |
person: | |
first_name: First name |
This file contains 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
Person.human_attribute_name("first_name") # => "First name" |
This file contains 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="header"> | |
<h1>Rails widget</h1> | |
</div> | |
<div class="wrapper"> | |
<h2> | |
Title | |
</h2> | |
<div class="content"> | |
Content |
This file contains 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 WidgetHelper | |
def header(&block) | |
content_tag :div, class: 'header', &block | |
end | |
def widget(options={}, &block) | |
w = Widget.new(options, self) | |
widget_content = capture(w, &block) | |
content_tag :div, class: 'wrapper' do | |
widget_content |
This file contains 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
<%= header do %> | |
<h1>Rails widget</h1> | |
<% end %> | |
<%= widget do |w| %> | |
<%= w.title do %> | |
Title | |
<% end %> | |
<%= w.content do %> | |
Content |
This file contains 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
var $injector = angular.injector(['ng', 'custom_directives']); | |
var controllerDiv = $j(wrapper.find('div[ng-controller]')[0]); | |
$injector.invoke(function($rootScope, $compile, $document){ | |
$compile(controllerDiv)($rootScope); | |
$rootScope.$digest(); | |
}); |