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
@import compass/css3/box-shadow | |
@import compass/css3/border-radius | |
@import compass/css3/images | |
#activity-filter | |
min-width: 350px | |
.hd .btn.btn-filter | |
padding: 0 | |
/* Resets */ |
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
@import compass/css3/box-shadow | |
@import compass/css3/border-radius | |
@import compass/css3/user-interface | |
@import compass/css3/images | |
@import compass/css3/transition | |
@import compass/css3/transform | |
@import keybridge/theme | |
+keyframes(loading) | |
0% |
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
<% | |
title = (title.blank?) ? t('shared.activity_list.title') : title | |
is_empty = (activities.size == 0) | |
has_pagination = (activities.size > 0) | |
type = controller_name.singularize | |
action_path = activities_path(:type => type, | |
:id => params[:id], | |
:start_date => params[:start_date] ) | |
if activities.try(:last) | |
query = params.except(:controller, :action).merge(:last_timestamp => activities.last.try(:created_at).to_i).to_query |
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 TranslationHelper | |
def trans(key, options = {}) | |
root_path = "#{Dir.pwd}/app/views/" | |
path = caller.first.sub(root_path, '').split(':')[0] | |
extension = '.html.erb' | |
segments = path.sub(extension, '').split('/') | |
segments.map! do |segment| | |
(segment.index('_') == 0) ? segment.sub('_', '') : segment | |
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
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
guard 'livereload' do | |
watch(%r{app/views/.+\.(erb|haml|slim)$}) | |
watch(%r{app/helpers/.+\.rb}) | |
watch(%r{public/.+\.(css|js|html)}) | |
watch(%r{spec/.+\.(css|js|html)}) | |
watch(%r{config/locales/.+\.yml}) | |
# Rails Assets Pipeline |
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
# use pbcopy and pbpaste | |
# need preinstall the reattach-to-user-namespace 'brew install reattach-to-user-namespace' | |
# | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
bind C-c run "tmux show-buffer | reattach-to-user-namespace pbcopy" | |
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
set -g default-shell /bin/zsh | |
# start window index of 1 | |
set -g base-index 1 |
http://www.tripadvisor.com/Attraction_Review-g293913-d552573-Reviews-Taipei_101-Taipei.html
Restaurant, Shop, Shows