- bootstrap with typeahead
- jquery
This will use bootstrap with typeahead to create an autocomplete search.
| #inspired by: http://www.reddit.com/r/dataisbeautiful/comments/19tgz2/one_of_the_worst_graphs_ive_ever_seen_courtesy_of/ | |
| #data from: http://www.lakemerrittinstitute.org/abt_lake_watershed_trash.htm | |
| library(plyr) | |
| library(reshape2) | |
| library(zoo) | |
| library(ggplot2) | |
| library(scales) | |
| df <- read.csv(textConnection("Month,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000,1999,1998,1997 |
| class EpisodeSearch | |
| attr_reader :ability, :options | |
| delegate :sanitize, to: Episode | |
| def initialize(ability, options = {}) | |
| @ability = ability | |
| @options = options.dup | |
| end | |
| def tag |
| @-webkit-keyframes fadeIn | |
| from | |
| opacity: 0 | |
| to | |
| opacity: 1 | |
| @-moz-keyframes fadeIn | |
| from | |
| opacity: 0 | |
| to |
| require 'bundler/capistrano' | |
| # This capistrano deployment recipe is made to work with the optional | |
| # StackScript provided to all Rails Rumble teams in their Linode dashboard. | |
| # | |
| # After setting up your Linode with the provided StackScript, configuring | |
| # your Rails app to use your GitHub repository, and copying your deploy | |
| # key from your server's ~/.ssh/github-deploy-key.pub to your GitHub | |
| # repository's Admin / Deploy Keys section, you can configure your Rails | |
| # app to use this deployment recipe by doing the following: |
| <% flash.each do |type, message| %> | |
| <div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
| <button class="close" data-dismiss="alert">×</button> | |
| <%= message %> | |
| </div> | |
| <% end %> |
| /* | |
| On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
| and don't need to be repeated here. Anything listed here will take precedence, however. | |
| */ | |
| [ | |
| { "keys": ["super+shift+n"], "command": "new_window" }, | |
| { "keys": ["super+shift+w"], "command": "close_window" }, | |
| { "keys": ["super+o"], "command": "prompt_open" }, | |
| { "keys": ["super+shift+t"], "command": "reopen_last_file" }, | |
| { "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }, |