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
.p-0 { | |
padding: 0px; | |
} | |
.p-3 { | |
padding: 3px; | |
} | |
.p-5 { | |
padding: 5px; |
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
rails generate versionist:new_api_version v1.0 Api::V1a --path=value:api/v1.0 --defaults=format:json | |
rails generate versionist:new_controller products Api::V1 | |
rails generate versionist:new_controller users Api::V1a |
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
$('#resultJSON').html(JSON.stringify(JSON.parse($('form#formQuestion').serializeJSON()),null,2)); |
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
var $note_html = $(data); | |
if($note_html.hasClass('user_prospects_note')) { | |
$('#prospectsEmptyNotes').remove(); //if this is first note, delete empty node. | |
if($('#'+$note_html.attr('id')).length == 0) { | |
$('#user_prospects_notes .sp-container').prepend(data); | |
} else { | |
$('#'+$note_html.attr('id')).replaceWith(data); | |
} | |
$('#as-modal').modal('hide'); | |
} else { |
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
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional, | |
# Only full ruby name is supported here, for short names use: | |
# echo "rvm use 2.0.0" > .rvmrc | |
environment_id="ruby-2.0.0-p247@project88" |
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
//Default sqlite | |
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 | |
//Default mysql2 |
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
/* Wrapper for page content to push down footer */ | |
#wrapper { | |
min-height: 100%; | |
height: auto !important; | |
height: 100%; | |
/* Negative indent footer by it's height */ | |
margin: 0 auto -60px; | |
} | |
#header { |
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
$('a[data-remote=true]').live('ajax:before', function () { | |
if ($(this).attr('ajax-loading')) { | |
return false; | |
} else { | |
$(this).attr('ajax-loading', true); | |
} | |
}).live('ajax:complete', function () { | |
$(this).removeAttr('ajax-loading'); | |
}); |