Skip to content

Instantly share code, notes, and snippets.

@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 */
@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%
<%
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
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
# 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
# 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
@josephj
josephj / happy-designer-mini-2.md
Last active December 19, 2015 22:58
Happy Designer Mini #2 相關資源

Happy Designer Mini #2 相關資源

Prototyping tool - janetyc

mockup 人生 - ETBlue

@josephj
josephj / dropform.md
Last active December 19, 2015 21:18
Dropform Utility for Keybridge

Dropform

Dropform Screenshot

Why?

  • Popover can't maintain state. It always destroys its content.
  • Dropdown disappears when user clicks.

Markup