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
| Connecting to database specified by database.yml | |
| (2.0ms) ALTER TABLE "answers" DISABLE TRIGGER ALL;ALTER TABLE "admin_users" DISABLE TRIGGER ALL;ALTER TABLE "question_groups" DISABLE TRIGGER ALL;ALTER TABLE "subjects" DISABLE TRIGGER ALL;ALTER TABLE "active_admin_comments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "assessments" DISABLE TRIGGER ALL;ALTER TABLE "billings" DISABLE TRIGGER ALL;ALTER TABLE "free_response_sections" DISABLE TRIGGER ALL;ALTER TABLE "friendly_id_slugs" DISABLE TRIGGER ALL;ALTER TABLE "lessons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages" DISABLE TRIGGER ALL;ALTER TABLE "contacts" DISABLE TRIGGER ALL;ALTER TABLE "assessment_items" DISABLE TRIGGER ALL;ALTER TABLE "packages" DISABLE TRIGGER ALL;ALTER TABLE "settings" DISABLE TRIGGER ALL;ALTER TABLE "shippings" DISABLE TRIGGER ALL;ALTER TABLE "questions" DISABLE TRIGGER ALL;ALTER TABLE "transactions" DISABLE TRIGGER ALL;ALTER TABLE "user_assessment_responses" |
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 StrongAdmin | |
| extend ActiveSupport::Concern | |
| def initialize | |
| @instance_name = active_admin_config.resource_name.downcase | |
| @klass = active_admin_config.resource_name.constantize | |
| @column_names = @klass.columns.map do |column| | |
| unless [:id, :created_at, :updated_at].include?(column.name.to_sym) |
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 ApplicationHelper | |
| def event_autolink(event_parts) | |
| event_parts.map do |part| | |
| case part.content | |
| when Hash | |
| link_to part.content['name'], send("admin_#{part.content['class_name'].underscore}_path", part.content['id']) | |
| else | |
| part.content | |
| 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
| app/views/credits/new.html.haml:22:in `block in _app_views_credits_new_html_haml___2861429593078620750_74935680' | |
| vendor/bundle/ruby/1.9.1/gems/haml-3.2.0.rc.1/lib/haml/helpers/action_view_mods.rb:133:in `call' | |
| vendor/bundle/ruby/1.9.1/gems/haml-3.2.0.rc.1/lib/haml/helpers/action_view_mods.rb:133:in `block (2 levels) in form_for_with_haml' | |
| vendor/bundle/ruby/1.9.1/gems/haml-3.2.0.rc.1/lib/haml/helpers.rb:278:in `with_tabs' | |
| vendor/bundle/ruby/1.9.1/gems/haml-3.2.0.rc.1/lib/haml/helpers/action_view_mods.rb:133:in `block in form_for_with_haml' | |
| vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.6/lib/action_view/helpers/capture_helper.rb:40:in `block in capture' | |
| vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.6/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' | |
| vendor/bundle/ruby/1.9.1/gems/haml-3.2.0.rc.1/lib/haml/helpers/xss_mods.rb:110:in `with_output_buffer_with_haml_xss' | |
| vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.6/lib/action_view/helpers/capture_helper.rb:40:in `capture' | |
| vendor/bundle/ruby/1.9.1/ |
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
| production_app_name="getafive" | |
| pg_dev_db="gaf_development" | |
| function LastBackupName() { | |
| heroku pgbackups --app="$production_app_name" | grep '(DATABASE_URL)' | tail -n 1 | cut -d " " -f 1 | |
| } | |
| # delete last manual backup and create new one | |
| old_backup=$(LastBackupName) | |
| heroku pgbackups:destroy $old_backup --app="$production_app_name" |
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
| Process: org.eyebeam.SelfControl [26418] | |
| Path: /Applications/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl | |
| Identifier: org.eyebeam.SelfControl | |
| Version: ??? | |
| Code Type: X86-64 (Native) | |
| Parent Process: SelfControl [26414] | |
| User ID: 0 | |
| Date/Time: 2013-03-04 11:11:41.694 -0600 | |
| OS Version: Mac OS X 10.8.2 (12C3104) |
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
| [{ | |
| "id": "view", | |
| "children": [{ | |
| "id": "layout", | |
| "children": [{ | |
| "command": "set_layout", | |
| "caption" : "1-2 Grid", | |
| "keys": ["super+alt+shift+5"], | |
| "args": | |
| { |
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
| vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1147:in `translate_exception' | |
| vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:284:in `rescue in log' | |
| vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' | |
| vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/instrumentation/active_record.rb:32:in `block in log_with_newrelic_instrumentation' | |
| vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped' | |
| vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.5.3.25/lib/new_relic/agent/instrumentation/active_record.rb:29:in `log_with_newrelic_instrumentation' | |
| vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:659:in `exec_query' | |
| vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection |
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
| jQuery -> | |
| $.ajax | |
| url: "//connect.facebook.net/en_US/all.js" | |
| dataType: 'script' | |
| cache: true | |
| $('a.requires-fb').click (e) -> | |
| e.preventDefault() | |
| return_to = $(this).attr('href') | |
| ask_for_fb(return_to) |
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
| class @VideoProgressTracker | |
| constructor: (@video) -> | |
| @played_five_seconds = 0 | |
| @checkpoints = [0, 25, 50, 75, 95] | |
| track: -> | |
| @played_five_seconds += 1 | |
| @triggerCheckpoints(500 * @played_five_seconds / @duration) | |
| start: -> |