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
# Setting up environment configuration on Heroku. | |
heroku config --app myapp | |
heroku config:add ENV_VAR=somevalue --app myapp | |
# Apply SSL Certs to Heroku | |
heroku certs --app myapp | |
heroku certs:add ssl.crt ssl.key --app myapp | |
# Generally useful commands for Heroku | |
heroku logs --tail --app myapp |
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
# Description: Add the nestCollection method to the Backbone.Model prototype. | |
# | |
# This method accepts an attribute name on the model you're currently referencing, | |
# along with a collection that you would like to use the attributes of. Making it | |
# easier to bubble events between a collection/model. | |
# | |
# TODO: Fix comparator issues that could be introduced if the dependent collection changes sort order. | |
Backbone.Model::nestCollection = (attribute_name, collection_to_nest) -> | |
# Make sure that there is an array available in the attribute_name that hsa been passed. |
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
# The MIT License | |
# Copyright (c) 2012 Christopher WJ Rueber | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | |
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or substantial | |
# portions of the Software. |
NewerOlder