Skip to content

Instantly share code, notes, and snippets.

View kimardenmiller's full-sized avatar

Kim Miller kimardenmiller

View GitHub Profile
@kimardenmiller
kimardenmiller / application.js
Created August 29, 2014 17:55
Rails JavaScript Assets passed to Karma
/* ========================================================================
* Bootstrap: transition.js v3.1.1
* http://getbootstrap.com/javascript/#transitions
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
@kimardenmiller
kimardenmiller / README.controller.js
Created August 19, 2014 19:53
Vote Forking in Spokenvote
// Generated by CoffeeScript 1.6.3
(function() {
var FireCtrl;
FireCtrl = function($sce, $scope, $interval) {
var timer;
$scope.options = {
initialID: 1,
width: 960,
height: 440,
@kimardenmiller
kimardenmiller / site.js
Created March 8, 2013 22:54
navCreateHub
app.navCreateHub = function(e) {
// e.preventDefault();
var searchGroup = $('.select2-input').val();
$('#s2id_hub_filter').select2('close');
$('#hubModal').find('#hub_group_name').val(searchGroup);
$('#hubModal').modal();
}
#hubModal.modal.hide{data: {width: '400px'}}
.modal-header
.pull-right= link_to raw('×'), '#', class: 'close', data: {dismiss: 'modal'}
%h3 Create a new Group
.modal-body
= form_for Hub.new, data: {remote: true} do |f|
%fieldset
.control-group
.controls
= f.text_field :group_name, :class => 'input-xlarge', data: {location_input: '#formatted_location', location_id: '#location_id'}, placeholder: 'Enter the Name'
class app.Views.Hubs extends Backbone.View(
template: JST["hubs/new"]
initialize: ->
@model.on "reset", @render.bind(this)
render: ->
@$el.html @template(hubs: @model.toJSON())
this
@kimardenmiller
kimardenmiller / gist:5109760
Created March 7, 2013 17:07
spec/models/proposal_spec.rb Run
/Users/kimardenmiller/.rvm/rubies/ruby-1.9.3-p286/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/kimardenmiller/.rvm/gems/ruby-1.9.3-p286@spokenvote/bin/rspec /Users/kimardenmiller/Dropbox/Spokenvote/Git/spokenvote/spec/models/proposal_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter
Testing started at 9:01 AM ...
Rack::File headers parameter replaces cache_control after Rack 1.5.
ActiveRecord::StatementInvalid: PG::Error: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d