- bootstrap with typeahead
- jquery
This will use bootstrap with typeahead to create an autocomplete search.
@-webkit-keyframes fadeIn | |
from | |
opacity: 0 | |
to | |
opacity: 1 | |
@-moz-keyframes fadeIn | |
from | |
opacity: 0 | |
to |
class EpisodeSearch | |
attr_reader :ability, :options | |
delegate :sanitize, to: Episode | |
def initialize(ability, options = {}) | |
@ability = ability | |
@options = options.dup | |
end | |
def tag |
#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 |
-- AppleScript -- | |
-- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
-- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
-- This method is as good as its JXA counterpart. | |
-- Webkit variants include "Safari", "Webkit", "Orion". | |
-- Specific editions are valid, including "Safari Technology Preview". | |
-- "Safari" Example: | |
tell application "Safari" to return name of front document |
require "sinatra" | |
require "google/api_client" | |
require "data_mapper" | |
require "twilio-ruby" | |
require 'rack-ssl-enforcer' | |
DataMapper::setup(:default, ENV["DATABASE_URL"] || "sqlite3://#{Dir.pwd}/dev.db") | |
class TokenPair | |
include DataMapper::Resource |
# List of environments and their heroku git remotes | |
ENVIRONMENTS = { | |
:staging => 'myapp-staging', | |
:production => 'myapp-production' | |
} | |
namespace :deploy do | |
ENVIRONMENTS.keys.each do |env| | |
desc "Deploy to #{env}" | |
task env do |
Updated for Rails 4.0.0+
Set up the bower
gem.
Follow the Bower instructions and list your dependencies in your bower.json
, e.g.
// bower.json
{
#!/bin/bash | |
NAME="hello_app" # Name of the application | |
DJANGODIR=/webapps/hello_django/hello # Django project directory | |
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
USER=hello # the user to run as | |
GROUP=webapps # the group to run as | |
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |