This file contains 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
# Color Terminal | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# Local Settings | |
alias ebash='vim ~/.bash_profile' # Edit bash | |
alias sbash='source ~/.bash_profile' # Source Bash | |
alias evars='vim ~/.rbenv/vars' # Edit rbenv Variables | |
alias pvars='rbenv vars' # Print rbenv Variables |
This file contains 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
###* | |
# | |
# Loadmore Mixin | |
# It works with limit/skip & max_id | |
# | |
# SETUP: To Use it add this mixin to both View & Controller | |
# | |
# HOW IT WORKS: | |
# It binds the view to scroll, and if user scrolled to the | |
# bottom it sends modelName to controller. |
This file contains 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
###* | |
* Authentication Initializer | |
### | |
Authorizer = Ember.SimpleAuth.Authorizers.Base.extend( | |
authorize: (jqXHR, requestOptions) -> | |
unless Ember.isEmpty @get('session.auth_token') | |
jqXHR.setRequestHeader 'x-authentication-token', @get('session.auth_token') | |
) |
This file contains 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 PromiseAction is an action set on the controller, | |
// but not in the actions hash, which allows it to be | |
// passed in directly to the component. The component | |
// just sees it as a function that it can call that | |
// returns a promise. This is nice for when the component | |
// needs to emit some action that can fail; if it fails | |
// it can clean up after itself. | |
// Example: | |
// export default Controller.extend({ |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer